|
Lines 2-8
Link Here
|
| 2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
| 3 |
[% SET footerjs = 1 %] |
3 |
[% SET footerjs = 1 %] |
| 4 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
| 5 |
<title>Koha › Tools › Rotating collections › Collection [% colTitle | html %] ’ Add or remove items</title> |
5 |
<title>Koha › Tools › Rotating collections › Collection [% collection.colTitle | html %] ’ Add or remove items</title> |
| 6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
| 7 |
</head> |
7 |
</head> |
| 8 |
|
8 |
|
|
Lines 10-30
Link Here
|
| 10 |
[% INCLUDE 'header.inc' %] |
10 |
[% INCLUDE 'header.inc' %] |
| 11 |
[% INCLUDE 'cat-search.inc' %] |
11 |
[% INCLUDE 'cat-search.inc' %] |
| 12 |
|
12 |
|
| 13 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> › <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | html %]">Collection <i>[% colTitle | html %]</i></a> › Add or remove items</div> |
13 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> › <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collection.colId %]">Collection <i>[% collection.colTitle | html %]</i></a> › Add or remove items</div> |
| 14 |
|
14 |
|
| 15 |
<div id="doc3" class="yui-t2"> |
15 |
<div id="doc3" class="yui-t2"> |
| 16 |
<div id="bd"> |
16 |
<div id="bd"> |
| 17 |
<div id="yui-main"> |
17 |
<div id="yui-main"> |
| 18 |
<div class="yui-b"> |
18 |
<div class="yui-b"> |
| 19 |
|
19 |
|
| 20 |
[% IF ( ! colId ) %] |
20 |
[% IF ( ! collection ) %] |
| 21 |
<div class="dialog message"> |
21 |
<div class="dialog message"> |
| 22 |
<p>Invalid collection id</p> |
22 |
<p>Invalid collection id</p> |
| 23 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p> |
23 |
<p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p> |
| 24 |
</div> |
24 |
</div> |
| 25 |
[% ELSE %] |
25 |
[% ELSE %] |
| 26 |
[% INCLUDE 'rotating-collections-toolbar.inc' %] |
26 |
[% INCLUDE 'rotating-collections-toolbar.inc' %] |
| 27 |
<h1>Collection <i>[% colTitle | html %]</i></h1> |
27 |
<h1>Collection <i>[% collection.colTitle | html %]</i></h1> |
| 28 |
|
28 |
|
| 29 |
[% IF ( previousActionAdd ) %] |
29 |
[% IF ( previousActionAdd ) %] |
| 30 |
[% IF ( addSuccess ) %] |
30 |
[% IF ( addSuccess ) %] |
|
Lines 82-88
Link Here
|
| 82 |
</li> |
82 |
</li> |
| 83 |
</ol> |
83 |
</ol> |
| 84 |
<p> |
84 |
<p> |
| 85 |
<input type="hidden" id="colId" name="colId" value="[% colId | html %]" /> |
85 |
<input type="hidden" id="colId" name="colId" value="[% collection.colId | html %]" /> |
| 86 |
<input type="hidden" name="action" value="addItem" /> |
86 |
<input type="hidden" name="action" value="addItem" /> |
| 87 |
<input type="submit" value="Submit" /> |
87 |
<input type="submit" value="Submit" /> |
| 88 |
</p> |
88 |
</p> |
|
Lines 92-99
Link Here
|
| 92 |
</div> |
92 |
</div> |
| 93 |
|
93 |
|
| 94 |
<div> |
94 |
<div> |
| 95 |
<h2>Items in <i>[% colTitle | html %]</i></h2> |
95 |
<h2>Items in <i>[% collection.colTitle | html %]</i></h2> |
| 96 |
[% IF ( collectionItemsLoop ) %] |
96 |
[% IF ( collection.items ) %] |
| 97 |
<table> |
97 |
<table> |
| 98 |
<tr> |
98 |
<tr> |
| 99 |
<th>Title</th> |
99 |
<th>Title</th> |
|
Lines 101-112
Link Here
|
| 101 |
<th>Barcode</th> |
101 |
<th>Barcode</th> |
| 102 |
<th> </th> |
102 |
<th> </th> |
| 103 |
</tr> |
103 |
</tr> |
| 104 |
[% FOREACH collectionItemsLoo IN collectionItemsLoop %] |
104 |
[% FOREACH item IN collection.items %] |
| 105 |
<tr> |
105 |
<tr> |
| 106 |
<td>[% INCLUDE 'biblio-default-view.inc' biblionumber = collectionItemsLoo.biblionumber %][% collectionItemsLoo.title | html %]</a></td> |
106 |
<td>[% INCLUDE 'biblio-default-view.inc' biblionumber = item.biblionumber %][% item.biblio.title |html %]</a></td> |
| 107 |
<td>[% collectionItemsLoo.itemcallnumber | html %]</td> |
107 |
<td>[% item.itemcallnumber | html%]</td> |
| 108 |
<td>[% collectionItemsLoo.barcode | html %]</td> |
108 |
<td>[% item.barcode | html %]</td> |
| 109 |
<td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | html %]&barcode=[% collectionItemsLoo.barcode | html %]&removeItem=1&action=addItem">Remove</a></td> |
109 |
<td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collection.colId | html %]&barcode=[% item.barcode | html %]&removeItem=1&action=addItem">Remove</a></td> |
| 110 |
</tr> |
110 |
</tr> |
| 111 |
[% END %] |
111 |
[% END %] |
| 112 |
</table> |
112 |
</table> |