Bug 13282: t/Message.t shouldn't depend on the DB
[koha.git] / rotating_collections / addItems.pl
index 9ef4f39..6286a40 100755 (executable)
@@ -30,7 +30,7 @@ my $query = new CGI;
 
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {
-        template_name   => "rotating_collections/addItems.tmpl",
+        template_name   => "rotating_collections/addItems.tt",
         query           => $query,
         type            => "intranet",
         authnotrequired => 0,
@@ -48,13 +48,14 @@ if ( $query->param('action') eq 'addItem' ) {
 
     my ( $success, $errorCode, $errorMessage );
 
+    $template->param( barcode => $barcode );
+
     if ( !$removeItem ) {
         ( $success, $errorCode, $errorMessage ) =
           AddItemToCollection( $colId, $itemnumber );
 
         $template->param(
             previousActionAdd => 1,
-            addedBarcode      => $barcode,
         );
 
         if ($success) {
@@ -72,7 +73,6 @@ if ( $query->param('action') eq 'addItem' ) {
 
         $template->param(
             previousActionRemove => 1,
-            removedBarcode       => $barcode,
             removeChecked        => 1,
         );
 
@@ -95,11 +95,6 @@ if ($collectionItems) {
 }
 
 $template->param(
-    intranetcolorstylesheet =>
-      C4::Context->preference("intranetcolorstylesheet"),
-    intranetstylesheet => C4::Context->preference("intranetstylesheet"),
-    IntranetNav        => C4::Context->preference("IntranetNav"),
-
     colId          => $colId,
     colTitle       => $colTitle,
     colDescription => $colDescription,