Bug 20287: (follow-up) Test exception DuplicateID for Koha::Patron->store
[koha.git] / tags / list.pl
index 2d5c5c8..8623278 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use warnings;
-use strict;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 
 use C4::Auth qw(:DEFAULT check_cookie_auth);
 use C4::Biblio;
 use C4::Context;
-use C4::Dates qw(format_date);
 use C4::Items;
 use C4::Koha;
 use C4::Tags qw(get_tags remove_tag get_tag_rows);
@@ -63,7 +61,7 @@ else {
         my $taglist = get_tag_rows( { term => $tag } );
         for ( @{$taglist} ) {
             my $dat    = &GetBiblioData( $_->{biblionumber} );
-            my $record = &GetMarcBiblio( $_->{biblionumber} );
+            my $record = &GetMarcBiblio({ biblionumber => $_->{biblionumber} });
             $dat->{'subtitle'} =
               GetRecordValue( 'subtitle', $record,
                 GetFrameworkCode( $_->{biblionumber} ) );