File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -605,6 +605,22 @@ function exhibit_builder_search_record_types($recordTypes)
605605 return $ recordTypes ;
606606}
607607
608+ /**
609+ * Show the Exhibits that each item is included in on the Item Browse page
610+ *
611+ * @param array $args An array of parameters passed by the hook
612+ * @return void
613+ */
614+ function exhibit_builder_item_detail ($ args )
615+ {
616+ $ item = $ args ['item ' ];
617+ $ exhibits = get_db ()->getTable ('Exhibit ' )->findAll ();
618+ foreach ($ exhibits as $ exhibit ){
619+ if ($ exhibit ->hasItem ($ item ))
620+ echo ('<p class="in-exhibit">Appears in Exhibit: <a href=" ' .admin_url ('exhibits/edit/ ' .$ exhibit ->id ).'"> ' .$ exhibit ->title .'</a></p> ' );
621+ }
622+ }
623+
608624/**
609625 * Add exhibit title to item search filters.
610626 */
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ link="http://omeka.org/codex/Plugins/ExhibitBuilder_3.0"
77support_link =" http://omeka.org/forums/forum/plugins"
88omeka_minimum_version =" 2.3"
99omeka_target_version =" 2.3"
10- version =" 3.2.1 "
10+ version =" 3.2.2 "
1111tags =" exhibit, pages, presentation"
Original file line number Diff line number Diff line change 2323add_plugin_hook ('admin_items_search ' , 'exhibit_builder_items_search ' );
2424add_plugin_hook ('public_items_search ' , 'exhibit_builder_items_search ' );
2525add_plugin_hook ('html_purifier_form_submission ' , 'exhibit_builder_purify_html ' );
26+ add_plugin_hook ('admin_items_browse_detailed_each ' , 'exhibit_builder_item_detail ' );
2627
2728add_filter ('public_navigation_main ' , 'exhibit_builder_public_main_nav ' );
2829add_filter ('admin_navigation_main ' , 'exhibit_builder_admin_nav ' );
You can’t perform that action at this time.
0 commit comments