Koha-clms/Koha/OAI/Server
Tomas Cohen Arazi a4d285a9c4 Bug 26195: Add a way to specify authorised values should be expanded [OAI]
This patch introduces a new configuration entry for OAI so the resulting
records include authorised value descriptions instead of codes.

This is off by default.

To test:
1. Create a yaml file with the extended OAI configuration
2. Visit http://kohadev.myDNSname.org:8080/cgi-bin/koha/oai.pl
3. Browse some records
=> SUCCESS: The fields tied to AV show codes.
4. Update your configuration with 'expanded_avs: 1' for one  of the
   defined format like in:

  ---
  format:
    marc21:
      metadataPrefix: marc21
      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: 0
    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
5. restart_all
6. Repead 3
=> SUCCESS: AV descriptions are returned!
7. Sign off :-D

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-08-31 10:27:52 +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 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Identify.pm Bug 15108: OAI-PMH provider improvements 2017-05-08 09:27:20 -04:00
ListBase.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +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 28741: Fix use of resumption token params 2021-08-04 09:14:46 +02:00
Record.pm Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
Repository.pm Bug 26195: Add a way to specify authorised values should be expanded [OAI] 2021-08-31 10:27:52 +02:00
ResumptionToken.pm Bug 28741: (follow-up) Silence warning 2021-08-04 09:14:46 +02:00