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

--- Comment #15 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211471
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211471&action=edit
Bug 39287: (QA follow-up) Complete the rcn-volumes index

The rcn-volumes index was only partly added:

* The Elasticsearch mapping only had 773$w and 830$w, so volumes linked
  through 800, 810 or 811 were found with Zebra but not with
  Elasticsearch. Map the same fields as Zebra, with the settings the
  other mappings have.
* The OPAC "Show volumes" link still searched the rcn index, while
  whether to show the link is decided with get_marc_volumes, which uses
  rcn-volumes. Use rcn-volumes there too, as the staff interface does.
* Add rcn-volumes to getIndexes in C4::Search, so that a query using it
  is recognised as a CCL query with Zebra.
* Update the get_volumes_query tests for the new index, and add a test
  that checks that Zebra and Elasticsearch index the same fields for
  rcn-volumes, and that ccl.properties and bib1.att agree.
* Correct the POD of get_marc_volumes.

To test:
1. Set UseControlNumber to Use
2. Create a set record (Leader/19 'a', 001 S1) and volumes of it that
   link with 773$w, 800$w, 810$w, 811$w and 830$w S1, and records that
   link with 775$w, 776$w, 780$w and 785$w S1
3. Rebuild the search index (with Elasticsearch, with --reset)
   With Zebra, copy etc/zebradb/biblios/etc/bib1.att,
   etc/zebradb/ccl.properties and
   etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl to
   your Zebra configuration first
4. In the staff interface, open the set record and click Show volumes
   => Only the volumes are found
5. In the OPAC, open the set record and click Show volumes
   => The same records are found
   => The link searches rcn-volumes
6. Run
   $ prove t/Koha_SearchEngine_rcn_volumes.t t/db_dependent/Koha/Biblio.t
   => SUCCESS: Tests pass!
7. Sign off

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to