The PrepareItemrecordDisplay sub builds an item framework for later use in ACQ Some cases were missing : item subfield connected to a plugin, hidden subfield, long size subfield. Steps to reproduce : * attach a plugin to the ACQ framework, * AcqCreateItems is set to "ordering" * the "..." does not appear on the right of the subfield when ordering
Created attachment 3771 [details] [review] proposed patch
The ... appear now, but they don't seem to work. I was testing 952$d date acquired. The current date was not added into the field.
yikes ! This did not work because the plugin dateaccessioned is wrong, not because of this patch ! dateaccessioned relies on a javascript sub (set_to_today) that is defined in additem.pl ! For acquisition (and serials), the set_to_today is not defined. I propose : * to signoff this patch (katrin ?) * to file another bug to move set_to_today to the plugin itself instead of additem
Created attachment 3811 [details] [review] Signed off patch
This bug does not fix the plugin for dateaccessioned, but other plugins like barcode work. I will file a separate bug for the problem with dateaccessioned like Paul suggested.
Pushed, please test
Tested: - mandatory (item type) - plugin (barcode with AutoBarcode activated) - hiding several subfields This works nicely. Date accessioned is still broken, see bug 6125.
*** Bug 5955 has been marked as a duplicate of this bug. ***