Koha-clms/admin
Martin Renvoize 26e2f2c11a 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>
(cherry picked from commit 0a86104294)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
(cherry picked from commit 52dd29792e)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2022-08-15 22:31:46 +02:00
..
searchengine/elasticsearch Bug 30142: Remove spaces from ElasticSearch mapping MARC fields 2022-04-25 20:40:11 +00:00
add_user_search.pl Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
additional-fields.pl
…
admin-home.pl
…
adveditorshortcuts.pl
…
aqbudgetperiods.pl
…
aqbudgets.pl
…
aqcontract.pl
…
aqplan.pl
…
audio_alerts.pl
…
auth_subfields_structure.pl Bug 8976: Use existing Koha::Authority::Subfield[s] 2021-03-03 11:57:51 +01:00
auth_tag_structure.pl
…
authorised_values.pl
…
authtypes.pl
…
background_jobs.pl Bug 29020: Add link on the mainpage for users without admin access 2022-04-15 18:04:06 +00:00
biblio_framework.pl Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-08-15 22:31:46 +02:00
branch_transfer_limits.pl
…
branches.pl Bug 28567: Fix 0 vs "" vs undef on the admin library form 2021-08-06 08:14:52 -04:00
cash_registers.pl
…
categories.pl Bug 23271: Use Koha::Object::Limit::Library for Koha::Patron::Categories 2021-04-21 15:25:07 +02:00
check_budget_parent.pl
…
check_parent_total.pl
…
checkmarc.pl
…
cities.pl
…
classsources.pl
…
clone-rules.pl
…
columns_settings.pl
…
columns_settings.yml Bug 29298: Add 'Managing library' column to table settings for histsearch 2021-10-22 11:41:28 -04:00
credit_types.pl
…
currency.pl
…
debit_types.pl
…
desks.pl
…
didyoumean.pl
…
edi_accounts.pl
…
edi_ean_accounts.pl
…
import_export_framework.pl
…
item_circulation_alerts.pl Bug 23271: Replace search_limited with search_with_library_limits 2021-04-21 15:25:07 +02:00
items_search_field.pl
…
items_search_fields.pl
…
itemtypes.pl Bug 29040: Remove warning from the itemtype edit view 2021-12-17 21:01:42 +00:00
koha2marclinks.pl
…
library_groups.pl
…
localization.pl
…
marc_subfields_structure.pl Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-08-15 22:31:46 +02:00
marctagstructure.pl Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-08-15 22:31:46 +02:00
matching-rules.pl
…
oai_set_mappings.pl
…
oai_sets.pl
…
overdrive.pl
…
patron-attr-types.pl Bug 23271: (follow-up) Fix typo 'limlits' 2021-04-23 13:55:09 +02:00
preferences.pl Bug 28912: Prevent Pseudonymization to be set if bcrypt_settings not set 2021-09-10 08:06:14 -04:00
share_content.pl
…
smart-rules.pl
…
sms_providers.pl
…
smtp_servers.pl
…
sru_modmapping.pl
…
systempreferences.pl Bug 28276: Do not fetch config ($KOHA_CONF) from memcached 2021-05-10 10:28:04 +02:00
transfer_limits.pl Bug 26633: Fix indirect object notation 2021-03-16 16:08:30 +01:00
transport-cost-matrix.pl Bug 28510: Remove marking of closed branches as 'disable_transfer' 2021-10-08 08:18:45 -04:00
usage_statistics.pl
…
z3950servers.pl
…