Add ident and Identifier-standard to known indexes in C4::Search::getIndexes(). Those indexes can be very useful, for example for IdRef feature.
Created attachment 54290 [details] [review] Bug 17107 - Add ident and Identifier-standard to known indexes Add ident and Identifier-standard to known indexes in C4::Search::getIndexes(). Those indexes can be very useful, for example for IdRef feature. Test plan : - Make sure some records have a field indexed with Identifier-standard, ISBN=1234 for example - Perform a search /cgi-bin/koha/opac-search.pl?idx=ident,phr&q=1234 => you find the record - Perform a search /cgi-bin/koha/opac-search.pl?q=ident:1234 => Without patch : you get no results => With patch : you find the record Idem for 'Identifier-standard'
Created attachment 54292 [details] [review] Bug 17107 - Add ident and Identifier-standard to known indexes Add ident and Identifier-standard to known indexes in C4::Search::getIndexes(). Those indexes can be very useful, for example for IdRef feature. Test plan : - Make sure some records have a field indexed with Identifier-standard, ISBN=1234 for example - Perform a search /cgi-bin/koha/opac-search.pl?idx=ident,phr&q=1234 => you find the record - Perform a search /cgi-bin/koha/opac-search.pl?q=ident:1234 => Without patch : you get no results => With patch : you find the record Idem for 'Identifier-standard'
It works as described
Created attachment 54375 [details] [review] Bug 17107 - Add ident and Identifier-standard to known indexes Add ident and Identifier-standard to known indexes in C4::Search::getIndexes(). Those indexes can be very useful, for example for IdRef feature. Test plan : - Make sure some records have a field indexed with Identifier-standard, ISBN=1234 for example - Perform a search /cgi-bin/koha/opac-search.pl?idx=ident,phr&q=1234 => you find the record - Perform a search /cgi-bin/koha/opac-search.pl?q=ident:1234 => Without patch : you get no results => With patch : you find the record Idem for 'Identifier-standard' Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 16.11, thanks Frido!
Pushed in 16.05. Will be in 16.05.03.
Pushed to 3.22.x, will be in 3.22.10