Bug 27050: Allow multiple category_codes in delete_patrons.pl
[koha-ffzg.git] / cataloguing / moveitem.pl
index 697057e..c5e6bca 100755 (executable)
@@ -52,7 +52,6 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user(
         template_name   => "cataloguing/moveitem.tt",
         query           => $query,
         type            => "intranet",
-        authnotrequired => 0,
         flagsrequired   => { editcatalogue => 'edit_items' },
         debug           => 1,
     }
@@ -61,7 +60,7 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user(
 
 
 my $biblio = Koha::Biblios->find( $biblionumber );
-$template->param(bibliotitle => $biblio->title);
+$template->param(biblio => $biblio);
 $template->param(biblionumber => $biblionumber);
 
 # If we already have the barcode of the item to move and the biblionumber to move the item to
@@ -79,7 +78,7 @@ if ( $barcode && $biblionumber ) {
         if ($moveresult) {
             $template->param(
                 success => 1,
-                from_biblio => scalar Koha::Biblios->find($frombiblionumber),
+                from_biblio => Koha::Biblios->find($frombiblionumber),
             );
         }
         else {