LP#1701001: add "patron search" button to OPAC place hold form
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 28 Jul 2017 20:54:55 +0000 (16:54 -0400)
committerJason Etheridge <jason@EquinoxInitiative.org>
Mon, 14 Aug 2017 19:58:23 +0000 (15:58 -0400)
This button is displayed only when the public catalog is embedded
in the web staff client and the iframe's controller explicitly
unhides the button.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/src/templates/opac/parts/place_hold.tt2

index c9f1d99..73192ba 100644 (file)
@@ -84,7 +84,11 @@ function toggleActivationDate() {
             <span id="patron_name"></span>
             <span id="patron_usr_barcode_not_found" style="display: none">
               [% l('Patron barcode was not found') %]
-            </span><br />
+            </span>
+            [% IF ctx.is_browser_staff %]
+            <button id="hold_usr_search" type="button" class="opac-button" style="display: none;">[% l('Patron Search') %]</button>
+            [% END %]
+            <br />
             <input type="hidden" id="staff_barcode" 
               value="[% ctx.staff_recipient.card.barcode | html %]"/>
             <span>