]> git.koha-community.org Git - koha.git/commit
Bug 30879: Add biblionumber as a sorting option in MARC21
authorNick Clemens <nick@bywatersolutions.com>
Wed, 22 Jun 2022 14:37:23 +0000 (14:37 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 2 Aug 2022 12:33:12 +0000 (09:33 -0300)
commit230bae0b02875dc25abe8ba71f6e7217fce80b76
tree9b672d9fdb4dd039f3d7775b2c2be025673cefb5
parent494a6d7863493c4777d26b4dbc0ea0c4d32c2d0b
Bug 30879: Add biblionumber as a sorting option in MARC21

This patch updates the Local-Number indexing by adding a zeropad option
to Zebra indexing and adding this to the mapping files

It also updates C4/Search.pm to allow biblionumber as an option

To test:
1 - Apply patches
2 - copy etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl to /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
3 - Restart all, reindex zebra
4 - Browse to: http://localhost:8081/cgi-bin/koha/catalogue/search.pl?idx=kw&q=a&sort_by=biblionumber_dsc&count=20
5 - Confirm records sorted correctly
6 - Browse to http://localhost:8081/cgi-bin/koha/catalogue/search.pl?idx=kw&q=a&sort_by=biblionumber_asc&count=20
7 - Confirm records sorted correctly

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Search.pm
etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml
etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl