PINES Custom - Adds several TPAC customizations to BooPAC
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 17 Nov 2022 19:40:42 +0000 (14:40 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 23 Nov 2022 18:56:53 +0000 (13:56 -0500)
This pulls together several earlier TPAC customizations into the BooPAC,
primarily to hide search and dropdown options.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates-bootstrap/opac/parts/config.tt2
Open-ILS/src/templates-bootstrap/opac/parts/misc_util.tt2
Open-ILS/src/templates-bootstrap/opac/parts/place_hold_result.tt2
Open-ILS/src/templates-bootstrap/opac/parts/qtype_selector.tt2
Open-ILS/src/templates-bootstrap/opac/parts/record/subjects.tt2

index b67d202..58cf366 100755 (executable)
@@ -145,7 +145,6 @@ search.adv_config = [
     {adv_label => l("Language"),  adv_attr => "item_lang", id => 'adv_selector_item_lang'},
     {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"], id => 'adv_selector_audience', adv_break => 1},
     {adv_label => l("Video Format"), adv_attr => "vr_format", id => 'adv_selector_video_format'},
-    {adv_label => l("Bib Level"), adv_attr => "bib_level", id => 'adv_selector_bib_level'},
     {adv_label => l("Literary Form"), adv_attr => "lit_form", id => 'adv_selector_lit_form'},
     {adv_label => l("Shelving Location"), adv_special => "copy_location", id => 'adv_copy_location_selector', js_only => 101, adv_break => 1},
     {adv_label => l("Search Library"), adv_special => "lib_selector", id => 'adv_org_selector'},
index 854a67d..fd70af9 100755 (executable)
 
         # Extract the 856 URLs that are not otherwise represented by asset.uri's
         args.online_res = [];
-        FOR node IN xml.findnodes('//*[@tag="856" and @ind1="4" and (@ind2="0" or @ind2="1")]');
+        FOR node IN xml.findnodes('//*[@tag="856" and @ind1="4" and (@ind2="0" or @ind2="1" or @ind2="2")]');
             IF node.findnodes('./*[@code="9" or @code="w" or @code="n"]'); NEXT; END; # asset.uri's
             label = node.findnodes('./*[@code="y"]');
             notes = node.findnodes('./*[@code="z" or @code="3"]');
index 6f2597d..1633285 100755 (executable)
@@ -114,7 +114,7 @@ function disable_submit() {
 
                                                 # display:
                                                 (hdata.age_protect ?
-                                                    l("All available copies are temporarily unavailable at your pickup library. Placing this hold could result in longer wait times.") :
+                                                    l("The title you have requested is not available for hold requests at this time.  Please contact your local library for assistance.") :
                                                     EVENT_MSG_MAP.$event_key ||
                                                     FAIL_PART_MSG_MAP.$fail_part_key ||
                                                     (hdata.hold_failed_event.desc ? l(hdata.hold_failed_event.desc) : '') ||
@@ -139,6 +139,7 @@ function disable_submit() {
             </tr>
         [% END %]
         </table>
+        [% IF ctx.is_staff %] <!-- In PINES, ensure that overrides are restricted to staff -->
         [% IF override_possible %]
             <br/>
             <hr/>
@@ -149,6 +150,7 @@ function disable_submit() {
                 <button id="place_hold_submit" type="submit" name="submit" class="btn btn-confirm"><i class="fas fa-save" aria-hidden="true"></i> [% l('Submit') %]</button>
             </span>
         [% END %]
+        [% END %]
 
         [% IF any_failures OR ctx.general_hold_error %]
         <span><a class="btn btn-confirm" href="[% CGI.param('redirect_to') || CGI.referer | html %]"><i class="fas fa-arrow-circle-left" aria-hidden="true"></i> [% l('Back To Search') %]</a></span>
index ecb7e0e..e2c1e23 100755 (executable)
@@ -1,7 +1,6 @@
 [%  query_types = [
     {value => "keyword", label => l("Keyword")},
     {value => "title", label => l("Title"), plural_label => l("Titles"), browse => 1},
-    {value => "jtitle", label => l("Journal Title")},
     {value => "author", label => l("Author"), plural_label => l("Authors"), browse => 1},
     {value => "subject", label => l("Subject"), plural_label => l("Subjects"), browse => 1},
     {value => "series", label => l("Series"), plural_label => l("Series"), browse => 1}
index d397be7..36f798a 100755 (executable)
@@ -35,6 +35,7 @@
     BLOCK render_subject;
         xpath = s.xpath || '//*[starts-with(@tag,"6")]';
         FOR node IN ctx.marc_xml.findnodes(xpath);
+            NEXT IF node.findnodes('./*[@code="2" and (text()="fast")]');
             '<span property="about">';
             all_terms = [];
             graphics = [];