Bug 18499: Use items cn_source in cn_browser.pl
authorNick Clemens <nick@bywatersolutions.com>
Thu, 6 Feb 2020 13:14:30 +0000 (13:14 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 5 Mar 2020 01:33:19 +0000 (01:33 +0000)
commit0f7d7a8c2faf5777655a9b67c8cea8ffade56071
treeafee92e0694595c2ed22f66c2647d963b71b98fc
parenteae26a21671e800d7d9ca822fa00561dc10e781d
Bug 18499: Use items cn_source in cn_browser.pl

This does a few things:
 * We fetch the cn_sort from the DB and use this rather than calculating based on DefaultClassificationSource
   We were already pulling based on the items source, so this should not change things
 * Rather than using JS to submit the form, it submits via html
 * Fix subtitle display and add barcode (it was retrieved in one query but not used)
 * Add option to apply different classification scheme to the search

To test:
 1 - Add cn_browser.pl to the 'plugin' field in a framework for 952$o
 2 - Edit an item on a record in that framework
 3 - Enter an itemcallnumber
 4 - Click the two dots to launch the callnumber browser
 5 - Note the results
 6 - Apply patch
 7 - Repeat
 8 - Note subtitles and barcodes are displayed in results
 9 - Note callnumbers are appropriate
10 - Try changing the class source used
11 - Try this with differing dewey,lcc, and other callnumbers
12 - Ensure results are as expected

Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
cataloguing/value_builder/cn_browser.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/cn_browser.tt