)
);
+INSERT INTO config.org_unit_setting_type (name, grp, label, description, datatype) VALUES
+(
+ 'opac.allow_phone_notifications',
+ 'opac',
+ oils_i18n_gettext(
+ 'opac.allow_phone_notifications',
+ 'Enable phone notification features.',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'opac.allow_phone_notifications',
+ 'Enabling this setting exposes the notify by phone options for hold pickup in the OPAC. If this setting is not enabled, the phone options will not be offered to the user.',
+ 'coust',
+ 'description'
+ ),
+ 'bool'
+);
+
--- /dev/null
+BEGIN;
+
+--SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO config.org_unit_setting_type (name, grp, label, description, datatype) VALUES
+(
+ 'opac.allow_phone_notifications',
+ 'opac',
+ oils_i18n_gettext(
+ 'opac.allow_phone_notifications',
+ 'Enable phone notification features.',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'opac.allow_phone_notifications',
+ 'Enabling this setting exposes the notify by phone options for hold pickup in the OPAC. If this setting is not enabled, the phone options will not be offered to the user.',
+ 'coust',
+ 'description'
+ ),
+ 'bool'
+);
+
+COMMIT;
[% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/>
</td>
</tr>
- [%- IF allow_phone_notifications == 'true';
+ [%- IF ctx.get_org_setting(ctx.search_ou, 'opac.allow_phone_notifications') == 1;
setting = 'opac.hold_notify';
-%]
<tr>
# Some libraries do not do notifications by phone; if not true, then this
# hides the user preference for phone notifications as well as the phone
# notification portion of the hold dialogue
+#
+# The allow_phone_notificaitons setting has moved to the Library Settings in
+# the staff client. It is no longer set here.
##############################################################################
-allow_phone_notifications = 'true';
##############################################################################
# Format of parts selection on Place Holds screen
# Some libraries do not do notifications by phone; if not true, then this
# hides the user preference for phone notifications as well as the phone
# notification portion of the hold dialogue
+#
+# The allow_phone_notificaitons setting has moved to the Library Settings in
+# the staff client. It is no longer set here.
##############################################################################
-allow_phone_notifications = 'true';
##############################################################################
# Format of parts selection on Place Holds screen
<p>
</p>
- [%- IF allow_phone_notifications == 'true' %]
+ [%- IF ctx.get_org_setting(ctx.search_ou, 'opac.allow_phone_notifications') == 1 %]
<div class="form-check m-2">
<input class="form-check-input" type="checkbox" id="phone_notify_checkbox" name="phone_notify_checkbox" [% IF ctx.default_phone_notify %]checked="checked"[% END %]>
<label class="form-check-label" for="phone_notify_checkbox">
'<input type="hidden" id="email_notify" name="email_notify" value="t"/>' : '' %]
[%- END -%]
- [%- IF allow_phone_notifications == 'true' -%]
+ [%- IF ctx.get_org_setting(ctx.search_ou, 'opac.allow_phone_notifications') == 1 -%]
[% IF ctx.default_phone %]
[% phone_value = ctx.default_phone %]
[% ELSE %]
[% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/>
</td>
</tr>
- [%- IF allow_phone_notifications == 'true';
+ [%- IF ctx.get_org_setting(ctx.search_ou, 'opac.allow_phone_notifications') == 1;
setting = 'opac.hold_notify';
-%]
<tr>
# Some libraries do not do notifications by phone; if not true, then this
# hides the user preference for phone notifications as well as the phone
# notification portion of the hold dialogue
+#
+# The allow_phone_notificaitons setting has moved to the Library Settings in
+# the staff client. It is no longer set here.
##############################################################################
-allow_phone_notifications = 'true';
##############################################################################
# Format of parts selection on Place Holds screen
[% IF !ctx.user.email and !ctx.is_staff; l('No configured Email address. See "My Account" for setting your Email address.');
ELSE; l('Email Address:') %] <span name="email_address">[% ctx.user.email %]</span>[% END %]
</blockquote>
- [%- IF allow_phone_notifications == 'true' %]
+ [%- IF ctx.get_org_setting(ctx.search_ou, 'opac.allow_phone_notifications') == 1 %]
<input class="hold-alert-method" type="checkbox" id="phone_notify_checkbox" name="phone_notify_checkbox"
[% IF ctx.default_phone_notify %]checked="checked"[% END %]/>
<label for="phone_notify_checkbox">[% l('Yes, by Phone') %]</label><br/>