diff --git a/web/app/plugins/mitlib-multisearch-widget/class-multisearch-widget.php b/web/app/plugins/mitlib-multisearch-widget/class-multisearch-widget.php
index e3873dd2..4bdda903 100644
--- a/web/app/plugins/mitlib-multisearch-widget/class-multisearch-widget.php
+++ b/web/app/plugins/mitlib-multisearch-widget/class-multisearch-widget.php
@@ -45,6 +45,9 @@ public function widget( $args, $instance ) {
$articles_tab_name = 'Articles + chapters';
$more_template = 'templates/tab-more-alma.php';
}
+ if ( 'use' == $instance['targets'] ) {
+ $all_template = 'templates/tab-all-use.php';
+ }
// Strip initial arguments.
$args = null;
@@ -84,27 +87,44 @@ public function widget( $args, $instance ) {
include( 'templates/form_nojs.html' );
echo '';
echo '
';
- echo '
-
+ echo '';
+
+ // Render the search tabs only when "Unified Search" option is not selected
+ if ( $instance['targets'] != 'use' ) {
+
+ echo '';
- echo '';
- include( $all_template );
- echo '
';
- echo '';
- include( $books_template );
- echo '
';
- echo '';
- include( $articles_template );
- echo '
';
- echo '';
- include( $more_template );
- echo '
';
+
';
+
+ // Render the individual tab panes
+ echo '
';
+ include( $all_template );
+ echo '
';
+ echo '
';
+ include( $books_template );
+ echo '
';
+ echo '
';
+ include( $articles_template );
+ echo '
';
+ echo '
';
+ include( $more_template );
+ echo '
';
+
+ };
+
+ if ( $instance['targets'] == 'use' ) {
+
+ echo '
';
+ include( $all_template );
+ echo '
';
+
+ };
+
if ( $instance['banner_text'] ) {
$allowed = array(
'a' => array(
@@ -186,6 +206,21 @@ class="widefat"
Alma and Primo
+
+
+