+[%-
+ opac_root = ctx.opac_root;
+ IF ctx.kpac_root;
+ opac_root = ctx.kpac_root;
+ END;
+-%]
<div id="content-wrapper">
<div id="main-content" class="content-wrapper-library-page" vocab="http://schema.org/" typeof="Library">
<h1 property="name">[% ctx.library.name | html %]</h1>
[%- IF ctx.library.parent_ou; %]
<h2>Branch relationship</h2>
<div id="branch-info">[% l('Parent library: ') %]
- <a property="branchOf" href="[% mkurl(ctx.opac_root _ '/library/' _ ctx.parent.shortname, {}, 1) %]">[% ctx.parent.name | html %]</a>
+ <a property="branchOf" href="[% mkurl(opac_root _ '/library/' _ ctx.parent.shortname, {}, 1) %]">[% ctx.parent.name | html %]</a>
</div>
[% END; -%]
[%-
+ opac_root = ctx.opac_root;
+ IF ctx.kpac_root;
+ opac_root = ctx.kpac_root;
+ END;
+
org_name = ctx.get_aou(copy_info.circ_lib).name;
org_sname = ctx.get_aou(copy_info.circ_lib).shortname;
lib_url = ctx.get_org_setting(copy_info.circ_lib, 'lib.info_url');
prefer_external_url = ctx.get_org_setting(copy_info.circ_lib, 'lib.prefer_external_url');
UNLESS lib_url && prefer_external_url;
- lib_url = mkurl(ctx.opac_root _ '/library/' _ ctx.get_aou(copy_info.circ_lib).shortname, {}, 1);
+ lib_url = mkurl(opac_root _ '/library/' _ ctx.get_aou(copy_info.circ_lib).shortname, {}, 1);
END;
IF lib_url; '<a property="seller" typeof="Library" href="'; lib_url | url; '">'; END;
'<span property="name">'; org_name | html; '</span>';