Koha/cataloguing
Nick Clemens 2aa49ebab4
Bug 3426: Allow for multiple fields in itemcallnumber syspref
Note that we change both cataloguing/additem.pl and C4/Items->PrepareItemrecordfordisplay

I can find no code that uses callnumber from the C4/Items sub, except for the itemrecorddisplay script
which is not called with an itemnumber from Koha and should be deprecated for REST or ILSDI or OAI (imho)

To test:
 1 - Define itemcallnumber syspref as "082ab,092ab,9520,245a"
 2 - Find a record with no items
 3 - Ensure it has no 082 field, but an 092 field
 4 - Go to add an item - itemcallnumber is empty
 5 - Apply patch
 6 - Go to add item, itemcallnumber should be the 092ab fields
 7 - Delete the 092 field
 8 - Go to add item, itemcallnumber should be the 245a
 9 - Edit the callnumber to be "testing" and save item
10 - For should now show itemcallnumber="testing" as default
11 - Browse to http://localhost:8081/cgi-bin/koha/services/itemrecorddisplay.pl?itemnumber=## subbing the correct itemnumber
12 - Ensure the callnumber is defaulting to testing
13 - delete the item you created
14 - browse to URL above - callnumber should now be 245 again
15 - Add an 092 field to record and ensure it is now default callnumber
16 - Add an 082 field, it should now be default

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-21 11:26:18 +00:00
..
value_builder Bug 11500: Use dateformat syspref and datepicker on additems.pl (and other item cataloguing pages) 2019-12-23 12:01:45 +00:00
addbiblio.pl Bug 7882: Add ability to move and reorder fields in MARC editor 2020-01-03 16:27:59 +00:00
addbooks.pl Bug 14385: Extend OpacHiddenItems to allow specifying exempt borrower categories 2018-11-02 10:33:09 +00:00
additem.pl Bug 3426: Allow for multiple fields in itemcallnumber syspref 2020-01-21 11:26:18 +00:00
editor.pl Bug 21411: Advanced cataloging editor - rancor - Allow configuration of Keyboard 2019-05-10 18:59:39 +00:00
linkitem.pl
merge.pl Bug 18593: Move suggestions when bibliographic records are merged 2018-03-26 17:01:10 -03:00
merge_ajax.pl
moveitem.pl Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
plugin_launcher.pl
ysearch.pl
z3950_auth_search.pl Bug 23997: Escape z3950servers.rank as it's a new MySQL 8 kw 2019-11-08 11:22:31 +00:00
z3950_search.pl