Main Koha release repository https://koha-community.org
Find a file
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
acqui
admin Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-07-29 17:15:30 +00:00
api Bug 30780: Librarians with only "place_holds" permissions can not update holds data via REST API 2022-07-13 19:39:25 +00:00
authorities
basket
bin Bug 20582: Turn Koha into a Mojolicious application 2020-10-06 12:00:04 +02:00
C4 Bug 30327: Fix tests 2022-07-29 16:33:21 +00:00
catalogue Bug 30327: Add options for sorting components 2022-07-29 16:33:03 +00:00
cataloguing Bug 29963: Do not prefill empty date fields with today's date 2022-07-13 20:31:23 +00:00
circ Bug 30409: barcodedecode() should always trim barcode 2022-07-13 19:44:18 +00:00
clubs Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
course_reserves Bug 30409: barcodedecode() should always trim barcode 2022-07-13 19:44:18 +00:00
debian Bug 30511: Don't lock up entire database while running koha-dump 2022-05-10 23:09:09 -10:00
docs
errors
etc
ill
installer Bug 30889: DBRev 22.05.03.002 2022-07-29 17:10:58 +00:00
Koha Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-07-29 17:15:30 +00:00
koha-tmpl Bug 26486: Group edit buttons in reports toolbar 2022-07-29 16:50:00 +00:00
labels
lib/CGI/Session/Serialize
members
misc Bug 30889: (follow-up) Record and use context in background_jobs 2022-07-29 17:05:26 +00:00
offline_circ
opac Bug 30327: Add options for sorting components 2022-07-29 16:33:03 +00:00
patron_lists
patroncards
plugins
pos Bug 28481: (RM follow-up) formatting 2021-12-16 12:13:51 -10:00
recalls Bug 30924: Add missing branchtransfers.reason value for recall cancellation 2022-07-13 19:13:33 +00:00
reports
reserve
reviews
rotating_collections
serials
services
skel
suggestion
svc Bug 30924: Add missing branchtransfers.reason value for recall cancellation 2022-07-13 19:13:33 +00:00
t Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-07-29 17:15:30 +00:00
tags
tmp/modified_authorities
tools Bug 22659: (follow-up) Add category to redirect 2022-07-29 16:06:44 +00:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap
.perlcriticrc Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
.proverc.dist
.scss-lint.yml
about.pl
app.psgi
changelanguage.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
cpanfile Bug 25669: (follow-up) Minor fixes 2022-07-29 15:28:00 +00:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 30889: DBRev 22.05.03.002 2022-07-29 17:10:58 +00:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl Bug 29020: Add link on the mainpage for users without admin access 2021-10-19 09:29:09 +02:00
Makefile.PL
MANIFEST.SKIP Bug 9546 : Updating make manifest tardist 2013-02-06 23:54:46 -05:00
package.json
README
README.md
README.robots
rewrite-config.PL
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo