[Koha-bugs] [Bug 30848] Introduce Koha::Filter::AuthorizedValues

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 26 12:06:30 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30848

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #135353|0                           |1
        is obsolete|                            |

--- Comment #7 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 135364
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=135364&action=edit
Bug 30848: Add an AuthorizedValues RecordProcessor filter

This patch introduces a RecordProcessor filter for MARC::Record objects
that replaces AV codes with AC 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 => ('ExpandAuthorizedValues'),
        options => {
            interface     => 'opac',
            frameworkcode => $biblio->frameworkcode
        }
    }
  );

  $processor->process( $record );

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list