The indexes 'arl' (Accelerated reading level) and 'arp' (Accelerated reading point) are not listed in C4::Search::getIndexes, and therefore cannot be used in the koha drop down menus. To re-create: Find a bib with 526$c and 526$d populated, e.g. +---------------+--------------+-------------+-------------+ | title | biblionumber | 526$c (arl) | 526$d (arp) | +---------------+--------------+-------------+-------------+ | Star flight / | 1347 | 5.5 | 14 | +---------------+--------------+-------------+-------------+ Entering the following in the search bar works: arl:5.5 as does arp:14 However entering the following in intranetuserjs: $(document).ready(function(){ // Add Accelerated Reading Level to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arl">Accelerated Reading Level</option>'); } // Add Accelerated Reading Point to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arp">Accelerated Reading Point</option>'); } }); Then running an advanced search using the respective values of Accelerated Reading Level and Accelerated Reading Point will fail.
Created attachment 71439 [details] [review] Bug 20078: Add accelerated reading indexes to getIndexes To test: 1 - Find a bib with 526$c and 526$d populated, or populate them e.g. 526$a 5.5 | 526$d 14 2 - Try searching for 'arl:5.5' or 'arp:14' 3 - Your record should be returned in results 4 - Add the indexes as dropdowns by entering the following in intranetuserjs: $(document).ready(function(){ // Add Accelerated Reading Level to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arl">Accelerated Reading Level</option>'); } // Add Accelerated Reading Point to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arp">Accelerated Reading Point</option>'); } }); 5 - Search using these in the dropdown, your record will not be found 6 - Apply patch 7 - Repeat searches directly and by using dropdown, your record should be returned. 8 - prove t/db_dependent/Search.t
Created attachment 79431 [details] [review] Bug 20078: Add accelerated reading indexes to getIndexes To test: 1 - Find a bib with 526$c and 526$d populated, or populate them e.g. 526$a 5.5 | 526$d 14 2 - Try searching for 'arl:5.5' or 'arp:14' 3 - Your record should be returned in results 4 - Add the indexes as dropdowns by entering the following in intranetuserjs: $(document).ready(function(){ // Add Accelerated Reading Level to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arl">Accelerated Reading Level</option>'); } // Add Accelerated Reading Point to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arp">Accelerated Reading Point</option>'); } }); 5 - Search using these in the dropdown, your record will not be found 6 - Apply patch 7 - Repeat searches directly and by using dropdown, your record should be returned. 8 - prove t/db_dependent/Search.t
Created attachment 79434 [details] [review] Bug 20078: (follow-up) Prevent conflict from attribute duplication To test: 1 - Apply first patch 2 - Attempt searching by arp, no results 3 - Apply this patch 4 - Copy bib1.att and ccl.properties to the correct locations 5 - Restart zebra 6 - Rebuild indexes 7 - Search agian, success!
Created attachment 80646 [details] [review] Bug 20078: Add accelerated reading indexes to getIndexes To test: 1 - Find a bib with 526$c and 526$d populated, or populate them e.g. 526$a 5.5 | 526$d 14 2 - Try searching for 'arl:5.5' or 'arp:14' 3 - Your record should be returned in results 4 - Add the indexes as dropdowns by entering the following in intranetuserjs: $(document).ready(function(){ // Add Accelerated Reading Level to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arl">Accelerated Reading Level</option>'); } // Add Accelerated Reading Point to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arp">Accelerated Reading Point</option>'); } }); 5 - Search using these in the dropdown, your record will not be found 6 - Apply patch 7 - Repeat searches directly and by using dropdown, your record should be returned. 8 - prove t/db_dependent/Search.t Signed-off-by: Margie Sheppard - Central Kansas Library System CKLS <msheppard@ckls.org>
Created attachment 80647 [details] [review] Bug 20078: (follow-up) Prevent conflict from attribute duplication To test: 1 - Apply first patch 2 - Attempt searching by arp, no results 3 - Apply this patch 4 - Copy bib1.att and ccl.properties to the correct locations 5 - Restart zebra 6 - Rebuild indexes 7 - Search agian, success! Signed-off-by: Margie Sheppard - Central Kansas Library System CKLS <msheppard@ckls.org>
Created attachment 81308 [details] [review] Bug 20078: Add accelerated reading indexes to getIndexes To test: 1 - Find a bib with 526$c and 526$d populated, or populate them e.g. 526$a 5.5 | 526$d 14 2 - Try searching for 'arl:5.5' or 'arp:14' 3 - Your record should be returned in results 4 - Add the indexes as dropdowns by entering the following in intranetuserjs: $(document).ready(function(){ // Add Accelerated Reading Level to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arl">Accelerated Reading Level</option>'); } // Add Accelerated Reading Point to advanced search if (window.location.href.indexOf("catalogue/search.pl") > -1) { $(".advsearch").append('<option value="arp">Accelerated Reading Point</option>'); } }); 5 - Search using these in the dropdown, your record will not be found 6 - Apply patch 7 - Repeat searches directly and by using dropdown, your record should be returned. 8 - prove t/db_dependent/Search.t Signed-off-by: Margie Sheppard - Central Kansas Library System CKLS <msheppard@ckls.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 81309 [details] [review] Bug 20078: (follow-up) Prevent conflict from attribute duplication To test: 1 - Apply first patch 2 - Attempt searching by arp, no results 3 - Apply this patch 4 - Copy bib1.att and ccl.properties to the correct locations 5 - Restart zebra 6 - Rebuild indexes 7 - Search agian, success! Signed-off-by: Margie Sheppard - Central Kansas Library System CKLS <msheppard@ckls.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 81310 [details] [review] Bug 20078: (QA follow-up) Correct attribute in PQF.pm
It looks li
Awesome work all! Pushed to master for 18.11
Enhancement, will not be backported to 18.05.x series.
*** Bug 17832 has been marked as a duplicate of this bug. ***
*** Bug 16924 has been marked as a duplicate of this bug. ***