Koha-clms/opac
Fridolin Somers 56054e34a6 Bug 14721: OAI-PMH must return error when no results
When getting records from OAI-PMH, an error must be returned if there is no results.

See : http://www.openarchives.org/OAI/openarchivesprotocol.html#ErrorConditions

Test plan :
- Enable OAI webservice
- Perform a query that will return no results. ie : /cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml&from=2099-12-30&until=2099-12-31
=> Without patch you get a response with :
   <ListRecords/>
=> With patch you get a response with error code :
   <error code="noRecordsMatch">No records match the given criteria</error>
- Check a good query returns still results
- Same test with ListIdentifiers verb

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 64992a05ce)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
(cherry picked from commit 3d8e059513)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
2015-09-29 01:07:35 +13:00
..
errors Bug 4330 Fixing FSF statements 2012-05-28 17:53:51 +02:00
rss adding file just for creating the rss directory 2007-08-02 08:50:43 +00:00
sco Bug 11773: fix crash in sco-main.pl if no active currency is set 2014-02-18 21:03:30 +00:00
svc Bug 12114: (QA Followup) Use JSON instead of JSON::XS 2014-04-25 15:32:06 +00:00
ilsdi.pl Bug 10549: (follow-up) make sure ILS-DI GetAvailability response is emitted as UTF-8 2013-07-17 19:14:37 +00:00
maintenance.pl Bug 7853 - opac-maintanance.pl should correctly redirect back to opac-main.pl, if no updates are outstanding 2013-04-07 13:34:12 -04:00
oai.pl Bug 14721: OAI-PMH must return error when no results 2015-09-29 01:07:35 +13:00
opac-ISBDdetail.pl Bug 10584 - Hide OPAC biblio details if all items are hidden 2013-09-18 15:31:04 +00:00
opac-MARCdetail.pl Bug 11242: fix opac-MARCdetail.pl display and warnings 2013-11-29 14:52:13 +00:00
opac-account.pl Bug 4330 : Fixing FSF address and copyright statements 2012-05-28 17:53:46 +02:00
opac-addbybiblionumber.pl Bug 5894: Display all titles when confirming copy of items from cart to list 2013-07-05 07:04:02 -07:00
opac-alert-subscribe.pl Bug 11647: (follow-up) add comment expressing that user must be logged in 2014-03-13 14:57:04 +00:00
opac-authorities-home.pl Bug 10807: Add an authority search history for the OPAC 2014-05-05 02:32:27 +00:00
opac-authoritiesdetail.pl Bug 8981 follow-up: case 2012-11-29 22:07:29 -05:00
opac-basket.pl Bug 10026 - OPAC cart not showing location anymore 2013-04-23 08:43:50 -04:00
opac-blocked.pl Bug 10195: (follow-up) update license; use Modern::Perl 2014-05-05 15:37:20 +00:00
opac-browser.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-changelanguage.pl Bug 4330 Fixing FSF statements 2012-05-28 17:53:51 +02:00
opac-course-details.pl bug 8215: (followup) don't allow deleting course reserves from OPAC 2013-05-21 15:51:02 -07:00
opac-course-reserves.pl bug 8215: (followup) make sure C4::CourseReserves doesn't export anything 2013-05-21 15:51:01 -07:00
opac-detail.pl Bug 14496 : Improving opac-detail.pl performances 2015-07-26 01:20:18 +12:00
opac-downloadcart.pl Bug 10853: All existing routing to get a CSV should return a MARC csv 2013-10-11 02:16:33 +00:00
opac-downloadshelf.pl Bug 10853: All existing routing to get a CSV should return a MARC csv 2013-10-11 02:16:33 +00:00
opac-export.pl Bug 3652: close XSS vulnerabilities in opac-export 2012-10-24 15:40:18 +02:00
opac-ics.pl Bug 5549 : GetPendingIssues now returns DateTime objects 2012-03-20 12:33:37 +13:00
opac-image.pl Bug 8255: allow local cover images to be cached 2012-06-25 18:12:29 +02:00
opac-imageviewer.pl Bug 4321: clean C4::Biblio::GetBiblio and uses 2012-09-18 12:11:54 +02:00
opac-main.pl Bug 7567 - Use, display, filter News by library 2014-04-07 18:14:19 +00:00
opac-memberentry.pl Bug 11693: Default emailing preferences not loaded for self registering patron 2015-08-28 14:55:24 +12:00
opac-messaging.pl Talking Tech Support - Phase I 2012-06-10 17:46:52 +02:00
opac-modrequest-suspend.pl Bug 12876 - Reserve in waiting/transfer status may be cancelled by user 2014-10-01 21:43:27 +00:00
opac-modrequest.pl Bug 12876 - Reserve in waiting/transfer status may be cancelled by user 2014-10-01 21:43:27 +00:00
opac-mymessages.pl Bug 4330 : Fixing FSF address and copyright statements 2012-05-28 17:53:46 +02:00
opac-overdrive-search.pl Bug 10320: (follow-up) correct license statement 2013-09-08 07:04:45 +00:00
opac-passwd.pl Bug 9611: (follow-up) move new password hashing routines to separate module 2013-10-09 03:29:22 +00:00
opac-patron-image.pl Bug 10636 - patronimage should have borrowernumber as PK, not cardnumber 2013-10-14 21:08:02 +00:00
opac-privacy.pl Bug 6506: When AnonymousPatron not set, deletion of issue history silently failed. 2013-05-01 08:44:11 -04:00
opac-ratings-ajax.pl Bug 8315 - fix 'C4::Output 3.02' errors in Koha 2012-06-29 11:59:13 +02:00
opac-ratings.pl Bug 14440: get_template_and_user can not have an empty template_name (opac-ratings.pl) 2015-07-26 01:20:10 +12:00
opac-readingrecord.pl Bug 14185: Undefined $limit causes warn in opac/opac-readingrecord.pl 2015-07-25 16:21:31 +12:00
opac-registration-verify.pl Bug 11693: Default emailing preferences not loaded for self registering patron 2015-08-28 14:55:24 +12:00
opac-renew.pl Bug 6739: (follow-up) fix various issues 2014-05-05 01:51:24 +00:00
opac-reserve.pl Bug 14186 [QA Followup]: Undefined $reservedfor causes warn in opac-reserve.pl 2015-07-25 16:21:17 +12:00
opac-review.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-search-history.pl Bug 10807: Add an authority search history for the OPAC 2014-05-05 02:32:27 +00:00
opac-search.pl Bug 13428: Fix regression on deleting facets 2014-12-23 12:46:06 +13:00
opac-sendbasket.pl Bug 13343: Embed items when send a basket/shelf 2015-02-26 18:05:16 +13:00
opac-sendshelf.pl Bug 13343: Embed items when send a basket/shelf 2015-02-26 18:05:16 +13:00
opac-serial-issues.pl Bug 11647: (follow-up) test if user is logged in before proposing to subscribe or unsubcribe from serial routing list 2014-03-13 14:54:42 +00:00
opac-shareshelf.pl Bug 14266: Trim the email address in the pl script 2015-07-25 16:43:53 +12:00
opac-shelves.pl Bug 7310: Code changes for Improving list permissions 2012-03-21 16:46:40 +01:00
opac-showmarc.pl Bug 10647 - Make OPAC MARC plain view work for all flavours of MARC 2014-03-14 14:50:13 +00:00
opac-showreviews.pl Bug 6679 :[SIGNED-OFF] Fixing some perlcritic violations in the opac 2012-04-10 13:45:00 +02:00
opac-suggestions.pl Bug 3144 - anti-spam for opac-suggestions 2014-06-09 16:01:35 +00:00
opac-tags.pl bug 9401: remove direct reads of CGISESSID cookie by JavaScript 2013-02-01 11:05:35 -05:00
opac-tags_subject.pl Bug 14412 : SQL injection possible 2015-06-23 15:30:07 +12:00
opac-topissues.pl Bug 11692: fix display of additional bib information in OPAC "most popular" pag 2014-02-10 15:17:50 +00:00
opac-user.pl Bug 12336: Author of reserved book is not displayed in opac-user.pl 2014-06-04 21:15:47 +00:00
search.pl Bug 8233 : SearchEngine: Add a Koha::SearchEngine module 2012-07-06 16:51:58 +02:00
tracklinks.pl Bug 8917 : Shifting db dependent code to a module 2013-03-07 11:14:25 -05:00
unapi Bug 13469 - Unapi path to XSLTs is wrong in OPAC 2015-01-23 19:57:56 +13:00