2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Rotating collections › Collection [% colTitle %] ’ Add or remove items</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="rcoll_addItems" class="tools rcoll">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
11 <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>
13 <div id="doc3" class="yui-t2">
19 <div class="dialog message">
20 <p>Invalid collection id</p>
21 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
24 [% INCLUDE 'rotating-collections-toolbar.inc' %]
25 <h1>Collection <i>[% colTitle %]</i></h1>
27 [% IF ( previousActionAdd ) %]
28 [% IF ( addSuccess ) %]
29 <div class="dialog message">Item with barcode '[% barcode %]' added successfully</div>
31 <div class="dialog alert">
32 <p>Failed to add item with barcode <i>[% barcode %]</i>:
34 [% IF failureMessage == "NO_ITEM" %]
35 No item with matching barcode found
36 [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
37 Item is already in a different rotating collection
38 [% ELSIF failureMessage == "IN_COLLECTION" %]
39 Item is already in this collection
48 [% IF ( previousActionRemove ) %]
49 [% IF ( removeSuccess ) %]
50 <div class="dialog message">Item with barcode <i>[% barcode %]</i> removed successfully</div>
52 <div class="dialog alert">
53 Failed to remove item with barcode <i>[% barcode %]</i>:
55 [% IF failureMessage == "NO_ITEM" %]
56 No item with matching barcode found
57 [% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
58 Item is not in this collection
68 <form action="addItems.pl" method="post">
69 <fieldset class="brief">
70 <legend>Add or remove items</legend>
73 <label for="barcode">Barcode: </label>
74 <input type="text" id="barcode" name="barcode" />
75 [% IF ( removeChecked ) %]
76 <label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> Remove item from collection</label>
78 <label class="inline"><input type="checkbox" name="removeItem" /> Remove item from collection</label>
83 <input type="hidden" id="colId" name="colId" value="[% colId %]" />
84 <input type="hidden" name="action" value="addItem" />
85 <input type="submit" value="Submit" />
93 <h2>Items in <i>[% colTitle %]</i></h2>
94 [% IF ( collectionItemsLoop ) %]
102 [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
104 <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = collectionItemsLoo.biblionumber %][% collectionItemsLoo.title |html %]</a></td>
105 <td>[% collectionItemsLoo.itemcallnumber %]</td>
106 <td>[% collectionItemsLoo.barcode %]</td>
107 <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]&barcode=[% collectionItemsLoo.barcode %]&removeItem=1&action=addItem">Remove</a></td>
112 <div class="dialog message">There are no items in this collection.</div>
116 </div> <!-- /.yui-b -->
117 </div> <!-- /#yui-main -->
119 [% INCLUDE 'tools-menu.inc' %]
123 [% MACRO jsinclude BLOCK %]
124 <script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
125 <script type="text/javascript" src="[% interface %]/[% theme %]/js/rotating-collections.js"></script>
128 [% INCLUDE 'intranet-bottom.inc' %]