'circ.staff_placed_holds_fallback_to_ws_ou',
'For staff-placed holds, in the absence of a patron preferred pickup location, fall back to using the staff workstation OU (rather than patron home OU)',
'coust', 'description'),
- 'bool', null)
+ 'bool', null),
+( 'opac.uri_default_note_text', 'opac',
+ oils_i18n_gettext('opac.uri_default_note_text',
+ 'Default text to appear for 856 links if none is present',
+ 'coust', 'label'),
+ oils_i18n_gettext('opac.uri_default_note_text',
+ 'When no value is present in the 856$z this string will be used instead',
+ 'coust', 'description'),
+ 'string', null)
;
UPDATE config.org_unit_setting_type
--- /dev/null
+BEGIN;
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+( 'opac.uri_default_note_text', 'opac',
+ oils_i18n_gettext('opac.uri_default_note_text',
+ 'Default text to appear for 856 links if none is present',
+ 'coust', 'label'),
+ oils_i18n_gettext('opac.uri_default_note_text',
+ 'When no value is present in the 856$z this string will be used instead',
+ 'coust', 'description'),
+ 'string', null)
+;
+
+COMMIT;
+
END;
-%]
</a>
- [%- ' - <span property="description">' _ uri.note _ '</span>' IF uri.note %]
+ [%- IF uri.note -%]
+ [%- '- <span property="description">' _ uri.note _ '</span>' %]
+ [%- ELSE -%]
+ [% IF ctx.get_org_setting(ctx.search_ou, 'opac.uri_default_note_text') %]
+ [% link_note = ctx.get_org_setting(ctx.search_ou, 'opac.uri_default_note_text') %]
+ [% '<span property="description">'; link_note | html; '</span>' %]
+ [% END %]
+ [%- END -%]
+
+
+
<link property="availability" href="http://schema.org/OnlineOnly" />
[%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
[%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
--- /dev/null
+New Setting for Default URI Notes
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+If a URI does not have a 856$z defining a note to display next to
+it in the OPAC you can use the opac.uri_default_note_text setting
+to define one.