[Koha-bugs] [Bug 30879] Add option to sort components by biblionumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 24 04:27:08 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30879

--- Comment #18 from David Cook <dcook at prosentient.com.au> ---
Since 30327 has been updated...

My test plan:
1 - Apply patches
2 - cp etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
/etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
3a - restart_all
3b - koha-rebuild-zebra -b -f -v kohadev
3c - koha-upgrade-schema kohadev
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

I don't know how to test the Elasticsearch or UNIMARC changes.

I've changed "SearchEngine" to "Elasticsearch" and run "koha-elasticsearch
--rebuild kohadev" which spat out the following:
Cannot determine authority type for record: 1 at
/kohadevbox/koha/Koha/SearchEngine/Elasticsearch.pm line 564.

In the logs I'm seeing this error:
[2022/06/24 02:25:42] [WARN] [Request] ** [http://es:9200]-[400]
[query_shard_exception] No mapping found for [local-number__sort] in order to
sort on, with:
{"index":"koha_kohadev_biblios","index_uuid":"CVVpzugoRfqw7zsFft1pnQ"}

Will need more specific instructions to test this one. I'll leave it as "Needs
Signoff" rather than "Failed QA" in the event that someone else can test it
correctly. 

--

The test plan for bug 30327 wasn't very specific in its instruction "Add some
components to a record by control number or title depending on above", so I
tried a lot of things... many which didn't work. Would've been nice to have
more explicit steps there. 

Additional test plan:
1 - Update ComponentSortField system preference and verify biblionumber is an
option
2 - Repeat test plan from 30327 and confirm sorting with biblionumber works

This looks OK with Zebra.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list