Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / misc / maintenance / process_record_through_filter.pl
blobbaf137aeb6532eab3d99144c88794140decd6e1e
1 #!/usr/bin/perl
3 # This script is intended for testing RecordProcessor filters. To use it
4 # run the script like so:
5 # > perl process_record_through_filter.pl ${BIBLIONUMBER} ${FILTER}
7 use strict;
8 use warnings;
9 use Koha::RecordProcessor;
10 use Data::Dumper;
11 use C4::Biblio;
13 my $record = GetMarcBiblio({ biblionumber => $ARGV[0] });
15 print "Before: " . $record->as_formatted() . "\n";
16 my $processor = Koha::RecordProcessor->new( { filters => ( $ARGV[1] ) });
17 $record = $processor->process($record);
18 print "After : " . $record->as_formatted() . "\n";