1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Rotating collections › Collection [% colTitle %] ’ Add or remove items</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 $( document ).ready(function() {
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
16 <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 %]">Collection <i>[% colTitle %]</i></a> › Add or remove items</div>
18 <div id="doc3" class="yui-t2">
24 <div class="dialog message">
25 <p>Invalid collection id</p>
26 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
29 [% INCLUDE 'rotating-collections-toolbar.inc' %]
30 <h1>Collection <i>[% colTitle %]</i></h1>
32 [% IF ( previousActionAdd ) %]
33 [% IF ( addSuccess ) %]
34 <div class="dialog message">Item with barcode '[% barcode %]' added successfully</div>
36 <div class="dialog alert">
37 <p>Failed to add item with barcode <i>[% barcode %]</i>:
39 [% IF failureMessage == "NO_ITEM" %]
40 No item with matching barcode found
41 [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
42 Item is already in a different rotating collection
43 [% ELSIF failureMessage == "IN_COLLECTION" %]
44 Item is already in this collection
53 [% IF ( previousActionRemove ) %]
54 [% IF ( removeSuccess ) %]
55 <div class="dialog message">Item with barcode <i>[% barcode %]</i> removed successfully</div>
57 <div class="dialog alert">
58 Failed to remove item with barcode <i>[% barcode %]</i>:
60 [% IF failureMessage == "NO_ITEM" %]
61 No item with matching barcode found
62 [% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
63 Item is not in this collection
73 <form action="addItems.pl" method="post">
74 <fieldset class="brief">
75 <legend>Add or remove items</legend>
78 <label for="barcode">Barcode: </label>
79 <input type="text" id="barcode" name="barcode" />
80 [% IF ( removeChecked ) %]
81 <label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> Remove item from collection</label>
83 <label class="inline"><input type="checkbox" name="removeItem" /> Remove item from collection</label>
88 <input type="hidden" id="colId" name="colId" value="[% colId %]" />
89 <input type="hidden" name="action" value="addItem" />
90 <input type="submit" value="Submit" />
98 <h2>Items in <i>[% colTitle %]</i></h2>
99 [% IF ( collectionItemsLoop ) %]
107 [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
109 <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = collectionItemsLoo.biblionumber %][% collectionItemsLoo.title |html %]</a></td>
110 <td>[% collectionItemsLoo.itemcallnumber %]</td>
111 <td>[% collectionItemsLoo.barcode %]</td>
112 <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]&barcode=[% collectionItemsLoo.barcode %]&removeItem=1&action=addItem">Remove</a></td>
117 <div class="dialog message">There are no items in this collection.</div>
121 </div> <!-- /.yui-b -->
122 </div> <!-- /#yui-main -->
124 [% INCLUDE 'tools-menu.inc' %]
127 [% INCLUDE 'intranet-bottom.inc' %]