Koha-clms/Koha/OAI/Server
Nick Clemens 178e8c6d20
Bug 39857: Fix expanded_avs option for OAI
This patch correct the call to filter the record

To test:
1 - Enable OAI
2 - Set  OAI-PMH:ConfFile to '/var/lib/koha/kohadev/OAI.yaml'
3 - Edit/create the file above to have content:
format:
  marcxml:
    metadataPrefix: marcxml
    metadataNamespace: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim
    schema: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
    include_items: 1
    expanded_avs: 1
4 - save and restart_all
5 - View some records:
    http://localhost:8080/cgi-bin/koha/oai.pl?verb=ListRecords&metadataPrefix=marcxml
6 - Note the items show coded values
7 - Apply the regressions tests patch
8 - Run:
    $ ktd --shell
   k$ prove t/db_dependent/Koha/OAI/Server/Repository.t
=> FAIL: Tests fail!
9 - Apply this patch
10 - Restart all
11 - Refresh and confirm items now have descriptions
12 - Repeat 8
=> SUCCESS: Tests pass!

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit (tcohen): Amended the test plan to include the added regression
tests run
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6130a072d3)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-05-17 21:05:56 +02:00
..
DeletedRecord.pm Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
Description.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
GetRecord.pm Bug 31161: Mark hidden records as deleted 2024-09-16 10:40:57 +02:00
Identify.pm Bug 21105: (QA follow-up) Avoid MySQL-ism 2021-11-15 12:38:39 +01:00
ListBase.pm Bug 31161: Mark hidden records as deleted 2024-09-16 10:40:57 +02:00
ListIdentifiers.pm Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ListMetadataFormats.pm Bug 15108: OAI-PMH provider improvements 2017-05-08 09:27:20 -04:00
ListRecords.pm Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ListSets.pm Bug 29484: Make ListSets return noSetHierarchy when no sets defined 2021-12-10 21:14:59 -10:00
Record.pm Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
Repository.pm Bug 39857: Fix expanded_avs option for OAI 2025-05-17 21:05:56 +02:00
ResumptionToken.pm Bug 28741: (follow-up) Silence warning 2021-08-04 09:14:46 +02:00