PINES Fix to custom holdings list
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 26 Dec 2019 18:12:09 +0000 (13:12 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 16 Mar 2020 21:15:49 +0000 (17:15 -0400)
Corrects system name not showing up on record detail screen in
holdings copy table. Also adds system name to the linked up library
info page.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/library/core_info.tt2
Open-ILS/src/templates/opac/parts/library_name_link.tt2

index c635fcd..52a3116 100644 (file)
@@ -6,6 +6,11 @@
 -%]
 <div id="content-wrapper">
     <div id="main-content" class="content-wrapper-library-page" vocab="http://schema.org/" typeof="Library">
+    
+    [%- IF ctx.library.parent_ou; %]
+        <b>[% ctx.parent.name | html %]:</b>
+    [%  END; -%]
+    
     <h1 property="name">[% ctx.library.name | html %]</h1>
 
     [%-
index 60ae4c8..faf99fa 100644 (file)
        org_sname = ctx.get_aou(org_id).shortname;
     END;
 
+    org_obj = ctx.get_aou(copy_info.circ_lib);
+    parent_org_name = ctx.get_aou(org_obj.parent_ou).name;
+    
     lib_url = ctx.get_org_setting(org_id, 'lib.info_url');
     prefer_external_url = ctx.get_org_setting(org_id, 'lib.prefer_external_url');
     UNLESS lib_url && prefer_external_url;
         lib_url = mkurl(opac_root _ '/library/' _ org_sname, {}, 1);
     END; 
-    IF lib_url; '<a property="offeredBy" class="opac_links" typeof="Library" href="'; lib_url | url; '">'; END;
-    '<span property="name">'; parent_org_name _ ':' | html; '</a></span>';
+    '<span property="name">'; parent_org_name _ ':' | html;'</span>';
     '<br/> &nbsp; &nbsp; &nbsp; ';
-    IF lib_url; '<a property="offeredBy" class="opac_links" typeof="Library" href="'; lib_url | url; '">'; END;
-    org_name;
-    IF lib_url; '</a>'; END;
-
+    IF lib_url; 
+        '<a property="offeredBy" class="opac_links" typeof="Library" href="'; lib_url | url; '">'; 
+    END;
+    '<b>'; org_name; '</b>';
+    IF lib_url; 
+        '</a>';
+    END;
 -%]