'coust', 'description'),
'string', null)
+,( 'opac.patron.custom_jquery', 'opac',
+ oils_i18n_gettext('opac.patron.custom_jquery',
+ 'Custom jQuery for the OPAC',
+ 'coust', 'label'),
+ oils_i18n_gettext('opac.patron.custom_jquery',
+ 'Custom jQuery for the OPAC',
+ 'coust', 'description'),
+ 'string', NULL)
+
,( 'org.patron_opt_boundary', 'sec',
oils_i18n_gettext('org.patron_opt_boundary',
'Patron Opt-In Boundary',
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+( 'opac.patron.custom_jquery', 'opac',
+ oils_i18n_gettext('opac.patron.custom_jquery',
+ 'Custom jQuery for the OPAC',
+ 'coust', 'label'),
+ oils_i18n_gettext('opac.patron.custom_jquery',
+ 'Custom jQuery for the OPAC',
+ 'coust', 'description'),
+ 'string', NULL);
+
+COMMIT;
</script>
[% END %]
+[% IF ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_jquery') %]
+[% custom_jquery = ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_jquery') %]
+[% '<script>'; custom_jquery ; '</script>' %]
+[% END %]
+
<!-- DOB validation for Patron Registration in OPAC -->
<script >
function dobValidate(input) {
</script>
[% END %]
+[% IF ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_jquery') %]
+[% custom_jquery = ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_jquery') %]
+[% '<script>'; custom_jquery ; '</script>' %]
+[% END %]
+
<!-- DOB validation for Patron Registration in OPAC -->
<script type="text/javascript">
function dobValidate(input) {
--- /dev/null
+jQuery OPAC Library Setting
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+A new setting entitled opac.patron.custom_jquery has been added to library settings. Using this does require that the ctx.want_jquery be uncommented and set to 1 (true) in the opac/parts/config.tt2 file. Using this setting will allow OPACs to run jQuery without customizing server side templates. For example adding the following:
+
+$(document).ready(function(){ $("a:contains(Link 2)").text('Kafka'); });
+
+Will change the text of 'Link 2' in the link bar to say 'Kafka'. See the Evergreen WIKI (https://wiki.evergreen-ils.org/) for examples.