yaous for my account url

Bug #1904593 reported by Rogan Hamby
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned

Bug Description

There should be an org unit setting for defining a URL for My Account, presumably Evergreen's though not necessarily. It should be usable in print receipts and A/Ts.

Patch forthcoming.

Changed in evergreen:
assignee: nobody → Rogan Hamby (rogan-hamby)
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

Andrea Neiman (aneiman)
Changed in evergreen:
status: New → Confirmed
tags: added: pullrequest
Revision history for this message
Jennifer Bruch (jbruchpails) wrote :

This work also included getting the library info url setting to show in the receipts.

After entering the coding for the receipt templates, it requires logging out and then back in to see in the receipt preview and on the printed receipts because this info is fetched during the log in process.

I have tested and it works for the PaILS system on Evergreen 3.3.

I sign off on this fix.

tags: added: signedoff
Changed in evergreen:
milestone: none → 3.next
Andrea Neiman (aneiman)
Changed in evergreen:
milestone: 3.next → 3.8-beta
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master for inclusion in 3.8. Thanks, Rogan and Jennifer!

Changed in evergreen:
assignee: Rogan Hamby (rogan-hamby) → nobody
status: Confirmed → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.