return new_editor()->retrieve_actor_org_unit($org_id);
},
+ get_org_setting => sub {
+ my($org_id, $setting) = @_;
+ return $U->ou_ancestor_setting_value($org_id, $setting);
+ },
+
};
'The Photo URL field will be suggested on the patron registration screen. Suggesting a field makes it appear when suggested fields are shown. If the field is shown or required this setting is ignored.',
'coust', 'description'),
'bool', null)
+,( 'lib.my_account_url', 'lib',
+ oils_i18n_gettext('lib.my_account_url',
+ 'My Account URL (such as "https://example.com/eg/opac/login")',
+ 'coust', 'label'),
+ oils_i18n_gettext('lib.my_account_url',
+ 'URL for a My Account link. Use a complete URL, such as "https://example.com/eg/opac/login".',
+ 'coust', 'description'),
+ 'string', null)
;
UPDATE config.org_unit_setting_type
--- /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
+ ( 'lib.my_account_url', 'lib',
+ oils_i18n_gettext('lib.my_account_url',
+ 'My Account URL (such as "https://example.com/eg/opac/login")',
+ 'coust', 'label'),
+ oils_i18n_gettext('lib.my_account_url',
+ 'URL for a My Account link. Use a complete URL, such as "https://example.com/eg/opac/login".',
+ 'coust', 'description'),
+ 'string', null)
+ ;
+
+COMMIT;
'circ.staff_client.receipt.event_text',
'circ.staff_client.receipt.footer_text',
'circ.staff_client.receipt.header_text',
- 'circ.staff_client.receipt.notice_text'
+ 'circ.staff_client.receipt.notice_text',
+ 'lib.info_url',
+ 'lib.my_account_url'
]
};
-
+ color.log("service",service);
service.template_base_path = 'share/print_templates/t_';
--- /dev/null
+== Template Support for Information and My Account URLs ==
+
+A new setting has been added named lib.my_account_url to provide a path usable in templates to a patron's account login. Both this and the existing lib.info_url settings are now available in the server side processed templates, action triggers and traditional print receipts.
+
+Web side processed templates in 3.6 can be found in Administration -> Server Administration -> Print Templates.
+You can add settings using the following syntax:
+<div>[% helpers.get_org_setting(staff_org.id, 'lib.info_url'); %]</div>
+<div>[% helpers.get_org_setting(staff_org.id, 'lib.my_account_url'); %]</div>
+
+Print Receipts found in Administration -> Workstation -> Print Templates can be added with these includes:
+{{includes.info_url}}
+{{includes.my_account_url}}
+
+Action triggers can use both values with the helpers.get_org_setting include. Example:
+[% helpers.get_org_setting(circ_lib.id, 'lib.my_account_url') %]
+