Comment 1 for bug 1904593

Revision history for this message
Rogan Hamby (rogan-hamby) wrote :

The patch here provides for the following:

* a new org unit setting called lib.my_account_url similar to lib.info_url
* support for both settings in the workstation receipt templates
* adds the get org unit setting helper to the WWW Print Templates
* release notes

simple testing plan:

B = branch to test at
S = system level that branch is child of
C = consortium
register account to B and workstation to B

add settings for both org unit settings at C, S & B

under Administration -> Server Administration -> Print Templates add the following lines to a receipt :

<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>

under Administration -> Workstation -> Print Templates add the following lines to a receipt:

{{includes.info_url}}
{{includes.my_account_url}}

Testing the action triggers aren't necessary since no changes were made to action triggers themselves but both org unit settings can be fetched there as well.

Test first by logging out after you add the settings and then in the two interfaces generate previews for both receipts. Now, delete branch level settings, log out, back in and check again. Now system level settings should show.

Branch: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=commit;h=08bd9e03415fbda1e63f37de09d399b933aa0439