From: Terran McCanna Date: Tue, 17 Nov 2020 17:31:17 +0000 (-0500) Subject: OPAC: Add system to holdings table display X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=35e4fbf8319f2b4b126950be537c599ab7e26e75;p=evergreen%2Fpines.git OPAC: Add system to holdings table display By default, the copy holdings table in the OPAC only shows the branch - this adds the system as well. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/library_name_link.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/library_name_link.tt2 index dd5e469e5a..e8987744ef 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/library_name_link.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/library_name_link.tt2 @@ -15,11 +15,16 @@ 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; + ''; parent_org_name _ ':' | html;''; + '
      '; IF lib_url; ''; END; ''; org_name | html; ''; IF lib_url; ''; END;