'Library information URL (such as "http://example.com/about.html")',
'coust', 'label'),
oils_i18n_gettext('lib.info_url',
- 'URL for information on this library, such as contact information, hours of operation, and directions. If set, the library name in the copy details section links to that URL. Use a complete URL, such as "http://example.com/hours.html".',
+ 'URL for information on this library, such as contact information, hours of operation, and directions. Use a complete URL, such as "http://example.com/hours.html".',
'coust', 'description'),
'string', null)
+,( 'lib.prefer_external_url', 'lib',
+ oils_i18n_gettext('lib.prefer_external_url',
+ 'Use external "library information URL" in copy table, if available',
+ 'coust', 'label'),
+ oils_i18n_gettext('lib.prefer_external_url',
+ 'If set to true, the library name in the copy details section will link to the URL associated with the "Library information URL" library setting rather than the library information page generated by Evergreen.',
+ 'coust', 'description'),
+ 'bool', null)
+
,( 'notice.telephony.callfile_lines', 'lib',
oils_i18n_gettext('notice.telephony.callfile_lines',
'Telephony: Arbitrary line(s) to include in each notice callfile',
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');
- UNLESS lib_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);
END;
IF lib_url; '<a property="seller" typeof="Library" href="'; lib_url | url; '">'; END;