Comment 6 for bug 1825851

Revision history for this message
Bill Erickson (berick) wrote :

Updated branch pushed with loads of changes:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1825851-server-generated-print-templates-2

* Adds template helpers for date formatting (etc.)

* Adds additional data to the template environment representing information about the caller (time zone, org unit, staff info, etc.).

* Adds an implementation of the "Holds for Bib Record" template, called from the Angular staff catalog Holds tab. Template is based on wide_hash objects.

* Adds IdlService toHash() function.

* Adds combobox option to allow the caller to override the default display template, useful for appending (e.g.) the org unit shortname to a list of values that would otherwise be duplicated in the dropdown.

* Tweaks CStoreEditor so that it's possible to apply a personality (e.g. open-ils.pcrud) to a specific instance without applying the change process-globally. This fixes an issue where using the pcrud personality in a mod_perl handler affected all editor instances in the process.

* Adds template clone and delete operations to the UI.

Finally, I have removed all of the AngularJS additions from my previous branch. This may be controversial. The key use case for this feature is to support printing in Angular. As each Angular interface is migrated from AngJS, part of the process will be to migrate any related print templates to server templates.

While I can imagine a use case for porting receipts before a UI is migrated, it adds a bit of complication, so I've taken it out for now. The code lives on in the original branch, of course, so I can be easily recovered if we want to retain the functionality. Feedback always appreciated.