@@ -, +, @@
e.g. 526$a 5.5 | 526$d 14
// Add Accelerated Reading Level to advanced search
if (window.location.href.indexOf("catalogue/search.pl") > -1) {
$(".advsearch").append('');
}
// Add Accelerated Reading Point to advanced search
if (window.location.href.indexOf("catalogue/search.pl") > -1) {
$(".advsearch").append('');
}
---
C4/Search.pm | 2 ++
t/db_dependent/Search.t | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
--- a/C4/Search.pm
+++ a/C4/Search.pm
@@ -1089,6 +1089,8 @@ sub getIndexes{
'an',
'Any',
'at',
+ 'arl',
+ 'arp',
'au',
'aub',
'aud',
--- a/t/db_dependent/Search.t
+++ a/t/db_dependent/Search.t
@@ -224,6 +224,8 @@ sub run_marc21_search_tests {
my $indexes = C4::Search::getIndexes();
is(scalar(grep(/^ti$/, @$indexes)), 1, "Title index supported");
+ is(scalar(grep(/^arl$/, @$indexes)), 1, "Accelerated reading level index supported");
+ is(scalar(grep(/^arp$/, @$indexes)), 1, "Accelerated reading point index supported");
my $bibliomodule = new Test::MockModule('C4::Biblio');
@@ -929,8 +931,8 @@ sub run_unimarc_search_tests {
}
subtest 'MARC21 + DOM' => sub {
- plan tests => 108;
- run_marc21_search_tests();
+ plan tests => 110;
+ run_marc21_search_tests('dom');
};
subtest 'UNIMARC + DOM' => sub {
--