File tree 3 files changed +18
-1
lines changed
3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -605,6 +605,22 @@ function exhibit_builder_search_record_types($recordTypes)
605
605
return $ recordTypes ;
606
606
}
607
607
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
+
608
624
/**
609
625
* Add exhibit title to item search filters.
610
626
*/
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ link="http://omeka.org/codex/Plugins/ExhibitBuilder_3.0"
7
7
support_link =" http://omeka.org/forums/forum/plugins"
8
8
omeka_minimum_version =" 2.3"
9
9
omeka_target_version =" 2.3"
10
- version =" 3.2.1 "
10
+ version =" 3.2.2 "
11
11
tags =" exhibit, pages, presentation"
Original file line number Diff line number Diff line change 23
23
add_plugin_hook ('admin_items_search ' , 'exhibit_builder_items_search ' );
24
24
add_plugin_hook ('public_items_search ' , 'exhibit_builder_items_search ' );
25
25
add_plugin_hook ('html_purifier_form_submission ' , 'exhibit_builder_purify_html ' );
26
+ add_plugin_hook ('admin_items_browse_detailed_each ' , 'exhibit_builder_item_detail ' );
26
27
27
28
add_filter ('public_navigation_main ' , 'exhibit_builder_public_main_nav ' );
28
29
add_filter ('admin_navigation_main ' , 'exhibit_builder_admin_nav ' );
You can’t perform that action at this time.
0 commit comments