OPAC: Add system to holdings table display
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 17 Nov 2020 17:31:17 +0000 (12:31 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2022 19:54:20 +0000 (14:54 -0500)
By default, the copy holdings table in the OPAC only shows
the branch - this adds the system as well.

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

index dd5e469..e898774 100755 (executable)
        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;
+    '<span property="name">'; parent_org_name _ ':' | html;'</span>';
+    '<br/> &nbsp; &nbsp; &nbsp; ';
     IF lib_url; '<a target="_blank" property="offeredBy" typeof="Library" href="'; lib_url | html; '">'; END;
     '<span property="name">'; org_name | html; '</span>';
     IF lib_url; '</a>'; END;