There is a feature in the cataloguing where you can enter a placeholder in the default value of the framework that will then be replaced by a value on editing the record. At the moment we support: <<DD>> - 2 digit day of month <<MM>> - 2 digit number of month <<YYYY>> - 4 digit year <<USER>> - user adding the record And bug 24134 intends to add another useful one: <<YY>>. We should support this functionality when the ACQ framework is used within the cataloguing module as it can be helpful to set things like the date in 008 correctly. To test: - modify the default value for 008@ or another subfield in the ACQ framework using one or more of the placeholders above - activate UseACQFrameworkForBiblioRecords - create a basket - create an order from a new record - verify the values have not been replaced - create a new record from the ACQ framework in the normal editor - verify it works well there and values are replaced
Created attachment 105350 [details] [review] Bug 25599: Fix default value placeholders for UseACQFrameworkForBiblioRecords The feature was there but a condition disabled it. Test plan: - modify the default value for 008@ or another subfield in the ACQ framework using one or more of the placeholders above - activate UseACQFrameworkForBiblioRecords - create a basket - create an order from a new record - verify the values have been replaced
Created attachment 105429 [details] [review] Bug 25599: Fix default value placeholders for UseACQFrameworkForBiblioRecords The feature was there but a condition disabled it. Test plan: - modify the default value for 008@ or another subfield in the ACQ framework using one or more of the placeholders above - activate UseACQFrameworkForBiblioRecords - create a basket - create an order from a new record - verify the values have been replaced Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 105645 [details] [review] Bug 25599: Fix default value placeholders for UseACQFrameworkForBiblioRecords The feature was there but a condition disabled it. Test plan: - modify the default value for 008@ or another subfield in the ACQ framework using one or more of the placeholders above - activate UseACQFrameworkForBiblioRecords - create a basket - create an order from a new record - verify the values have been replaced Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Good catch, works as expected now.. Passing QA
Pushed to master for 20.11, thanks to everybody involved!
backported to 20.05.x for 20.05.01
enhancement, not backporting to 19.11.x
(In reply to Aleisha Amohia from comment #7) > enhancement, not backporting to 19.11.x I think this is more a bug fix than an enhancement actually.
backported to 19.11.x for 19.11.09
Not backported to oldoldstable (19.05.x). Feel free to ask if it's needed.