Lines 24-29
use C4::Context;
Link Here
|
24 |
use C4::RotatingCollections; |
24 |
use C4::RotatingCollections; |
25 |
use C4::Items; |
25 |
use C4::Items; |
26 |
|
26 |
|
|
|
27 |
use Koha::RotatingCollections; |
28 |
|
27 |
use CGI qw ( -utf8 ); |
29 |
use CGI qw ( -utf8 ); |
28 |
|
30 |
|
29 |
my $query = new CGI; |
31 |
my $query = new CGI; |
Lines 87-104
if ( $query->param('action') eq 'addItem' ) {
Link Here
|
87 |
} |
89 |
} |
88 |
} |
90 |
} |
89 |
|
91 |
|
90 |
my ( $colId, $colTitle, $colDescription, $colBranchcode ) = |
92 |
my $colId = $query->param('colId'); |
91 |
GetCollection( $query->param('colId') ); |
93 |
my $collection = Koha::RotatingCollections->find($colId); |
|
|
94 |
|
92 |
my $collectionItems = GetItemsInCollection($colId); |
95 |
my $collectionItems = GetItemsInCollection($colId); |
93 |
if ($collectionItems) { |
96 |
if ($collectionItems) { |
94 |
$template->param( collectionItemsLoop => $collectionItems ); |
97 |
$template->param( collectionItemsLoop => $collectionItems ); |
95 |
} |
98 |
} |
96 |
|
99 |
|
97 |
$template->param( |
100 |
$template->param( |
98 |
colId => $colId, |
101 |
colId => $collection->colId, |
99 |
colTitle => $colTitle, |
102 |
colTitle => $collection->colTitle, |
100 |
colDescription => $colDescription, |
103 |
colDescription => $collection->colDesc, |
101 |
colBranchcode => $colBranchcode, |
104 |
colBranchcode => $collection->colBranchcode, |
102 |
); |
105 |
); |
103 |
|
106 |
|
104 |
output_html_with_http_headers $query, $cookie, $template->output; |
107 |
output_html_with_http_headers $query, $cookie, $template->output; |