2 opac_root = ctx.opac_root;
4 opac_root = ctx.kpac_root;
7 # Requires a "fleshed_ou" (aou) object defined.
8 # Allow fleshed circ_libs
9 org_id = fleshed_ou.id;
10 org_name = fleshed_ou.name;
11 org_sname = fleshed_ou.shortname;
13 lib_url = ctx.get_org_setting(org_id, 'lib.info_url');
14 prefer_external_url = ctx.get_org_setting(org_id, 'lib.prefer_external_url');
15 UNLESS lib_url && prefer_external_url;
16 lib_url = mkurl(opac_root _ '/library/' _ org_sname, {}, 1);
18 IF lib_url; '<a property="offeredBy" typeof="Library" href="'; lib_url | html; '">'; END;
19 '<span property="name">'; org_name | html; '</span>';
20 IF lib_url; '</a>'; END;