Koha/admin
Martin Renvoize 0a86104294 Bug 30848: Add an ExpandCodedFields RecordProcessor filter
This patch introduces a RecordProcessor filter for MARC::Record objects
that replaces Koha codes with descriptions in the MARC::Record passed to the processor.

Target usage:

  my $biblio = Koha::Biblios->find(
      $biblio_id,
      { prefetch => [ metadata ] }
  );

  my $record = $biblio->metadata->record;

  my $processor = Koha::RecordProcessor->new(
    {
        filters => ('ExpandCodedFields'),
        options => {
            interface     => 'opac',
            frameworkcode => $biblio->frameworkcode
        }
    }
  );

  $processor->process( $record );

Test plan
* Read the included unit test and confirm it makes sense and passes

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 62bba6d9e1)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2022-07-29 17:15:30 +00:00
..
searchengine/elasticsearch Bug 30142: Remove spaces from ElasticSearch mapping MARC fields 2022-04-13 15:55:39 +02:00
additional-fields.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
admin-home.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
adveditorshortcuts.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
aqbudgetperiods.pl Bug 29429: (bug 17600 follow-up) Fix import in aqbudgetperiods.pl 2021-11-08 12:11:44 +01:00
aqbudgets.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
aqcontract.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
aqplan.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
audio_alerts.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
auth_subfields_structure.pl Bug 30489: Convert MARC and authority subfield edit tabs to Bootstrap 2022-05-02 11:22:57 -10:00
auth_tag_structure.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
authorised_values.pl Bug 7374: Add remote image option for authorized values 2022-02-10 14:44:23 -10:00
authtypes.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
background_jobs.pl Bug 29020: Add link on the mainpage for users without admin access 2021-10-19 09:29:09 +02:00
biblio_framework.pl Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-07-29 17:15:30 +00:00
branch_transfer_limits.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
branches.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
cash_registers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
categories.pl Bug 29924: Add password expiration feature 2022-05-06 10:33:09 -10:00
check_budget_parent.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
check_parent_total.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
checkmarc.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cities.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
classsources.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
clone-rules.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
columns_settings.pl Bug 30494: Replace the use of jQueryUI Accordion on the table settings page 2022-05-02 11:22:57 -10:00
columns_settings.yml Bug 30798: Change column order on account-fines table column settings 2022-07-13 19:30:28 +00:00
credit_types.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
currency.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
debit_types.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
desks.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
didyoumean.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
edi_accounts.pl Bug 30130: Use new standard field in account definition 2022-04-13 15:55:39 +02:00
edi_ean_accounts.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
import_export_authtype.pl Bug 13952: (follow-up) JS translatability, clean warns, other 2022-04-04 16:23:46 +02:00
import_export_framework.pl Bug 13952: (follow-up) Fixing export on default biblio framework 2022-04-04 16:23:45 +02:00
item_circulation_alerts.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
items_search_field.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
items_search_fields.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
itemtypes.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
koha2marclinks.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
library_groups.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
localization.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
marc-overlay-rules.pl Bug 14957: Fix perlcritic error on admin/marc-overlay-rules.pl 2021-10-27 09:16:42 +02:00
marc_subfields_structure.pl Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-07-29 17:15:30 +00:00
marctagstructure.pl Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-07-29 17:15:30 +00:00
matching-rules.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
oai_set_mappings.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
oai_sets.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overdrive.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
patron-attr-types.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
preferences.pl Bug 29695: Make "modalselect" syspref's values translatable 2022-04-12 11:40:16 +02:00
share_content.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
smart-rules.pl Bug 19532: Database and installer stuff 2022-03-14 22:45:50 -10:00
sms_providers.pl Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
smtp_servers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
sru_modmapping.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
systempreferences.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
transfer_limits.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
transport-cost-matrix.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
usage_statistics.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
z3950servers.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00