[Koha-bugs] [Bug 20078] New: Indexes 'arl' (Accelerated reading level) and 'arp' (Accelerated reading point) not usable in search menus.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 23 18:59:39 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20078
Bug ID: 20078
Summary: Indexes 'arl' (Accelerated reading level) and 'arp'
(Accelerated reading point) not usable in search
menus.
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Searching - Zebra
Assignee: koha-bugs at lists.koha-community.org
Reporter: barton at bywatersolutions.com
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list