Angular Holdings Editor: Save only changed Call Number fields in Item Templates

Bug #2045989 reported by Michele Morgan
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

Bug 1983156 (released in 3.12) restored the ability to save all call number attributes in item templates. The individual values, however (prefix, suffix, label class) should be stored only if they are changed by the user saving the template.

Revision history for this message
Michele Morgan (mmorgan) wrote (last edit ):

Here's a branch that saves only the changed call number fields in the template :

user/mmorgan/LP2045989_only_save_changed_callnumber_fields

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mmorgan/LP2045989_only_save_changed_callnumber_fields

Many thanks to Jane Sandberg for guidance!

tags: added: pullrequest
Michele Morgan (mmorgan)
summary: - Call Number Templates save only changed fields
+ Angular Holdings Editor: Save only changed Call Number fields in Item
+ Templates
description: updated
tags: added: cat-holdingseditor cat-templates
Revision history for this message
Jennifer Weston (jweston) wrote :

Tested in Cataloging Interest Group -- confirmed functionality

Note: This works in Holdings Editor accessed via an Item Record (not in the Admin Holdings Editor Template interface)

Confirmed we see the template saved: Classification, Prefix, and Suffix

Revision history for this message
Jennifer Weston (jweston) wrote :

I have tested this code and consent to signing off on it with my name, Jennifer Weston, and behalf of the Cataloging Interest Group and my email address, <email address hidden>

tags: added: signedoff
Revision history for this message
Galen Charlton (gmc) wrote :

Upon testing this, I have a question about the desired behavior.

Consider this workflow:

[1] Create a template that sets the circulation modifier and the classification.
[2] Create a new item, and apply the template.
[3] Realize that you wanted to add more to the template, so you set the call number prefix and the age protection fields.
[4] Save the template, then export it.
[5] Here are the results:

- circ_lib and age_protect are set
- _only_ the prefix is set, not the classificaiton

Should it not retain the values of any (unchanged) call number fields taken from an original template when saving updates back to it?

Revision history for this message
Jennifer Weston (jweston) wrote (last edit ):

Confirming behavior of editing the templates works as it has typically worked which involved a bit of a different workflow.
In the Holdings Editor,
[1] Choose option to add holdings
[2] Set desired template fields for shelving loc, classification, prefix & suffix and Save Template.
[3] Add Call Number Label and Barcode and Apply All, Save & Exit to create the item
[4] Realize that you wanted to add more to the template, so you reopen the item; add all desired template fields again by hand (not by applying previous template), set an additional field like the age protection field; selecting the same template name you want to update, choose Save Template.

Edited to add: Item Fields no longer have to be manually applied when editing a template - just applying the template works; the holdings fields now included in the templates are behaving differently but it does work with the manual update process

Revision history for this message
Jennifer Weston (jweston) wrote :

It would be nice if the Holdings Fields (classification, prefix, and suffix) turned green if they are changed when a template is applied -- like the item attributes

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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