4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Tools › Rotating collections › Collection [% colTitle | html %] ’ Add or remove items</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="rcoll_addItems" class="tools rcoll">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'cat-search.inc' %]
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>
15 <div class="main container-fluid">
17 <div class="col-sm-10 col-sm-push-2">
21 <div class="dialog message">
22 <p>Invalid collection id</p>
23 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
26 [% INCLUDE 'rotating-collections-toolbar.inc' %]
27 <h1>Collection <i>[% colTitle | html %]</i></h1>
29 [% IF ( previousActionAdd ) %]
30 [% IF ( addSuccess ) %]
31 <div class="dialog message">Item with barcode '[% barcode | html %]' added successfully</div>
33 <div class="dialog alert">
34 <p>Failed to add item with barcode <i>[% barcode | html %]</i>:
36 [% IF failureMessage == "NO_ITEM" %]
37 No item with matching barcode found
38 [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
39 Item is already in a different rotating collection
40 [% ELSIF failureMessage == "IN_COLLECTION" %]
41 Item is already in this collection
43 [% failureMessage | html %]
50 [% IF ( previousActionRemove ) %]
51 [% IF ( removeSuccess ) %]
52 <div class="dialog message">Item with barcode <i>[% barcode | html %]</i> removed successfully</div>
54 <div class="dialog alert">
55 Failed to remove item with barcode <i>[% barcode | html %]</i>:
57 [% IF failureMessage == "NO_ITEM" %]
58 No item with matching barcode found
59 [% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
60 Item is not in this collection
62 [% failureMessage | html %]
70 <form action="addItems.pl" method="post">
71 <fieldset class="brief">
72 <legend>Add or remove items</legend>
75 <label for="barcode">Barcode: </label>
76 <input type="text" id="barcode" name="barcode" />
77 [% IF ( removeChecked ) %]
78 <label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> Remove item from collection</label>
80 <label class="inline"><input type="checkbox" name="removeItem" /> Remove item from collection</label>
85 <input type="hidden" id="colId" name="colId" value="[% colId | html %]" />
86 <input type="hidden" name="action" value="addItem" />
87 <input type="submit" value="Submit" />
95 <h2>Items in <i>[% colTitle | html %]</i></h2>
96 [% IF ( collectionItemsLoop ) %]
104 [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
106 <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = collectionItemsLoo.biblionumber %][% collectionItemsLoo.title | html %]</a></td>
107 <td>[% collectionItemsLoo.itemcallnumber | html %]</td>
108 <td>[% collectionItemsLoo.barcode | html %]</td>
109 <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]&barcode=[% collectionItemsLoo.barcode | uri %]&removeItem=1&action=addItem">Remove</a></td>
114 <div class="dialog message">There are no items in this collection.</div>
120 </div> <!-- /.col-sm-10.col-sm-push-2 -->
122 <div class="col-sm-2 col-sm-pull-10">
124 [% INCLUDE 'tools-menu.inc' %]
126 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
127 </div> <!-- /.row -->
129 [% MACRO jsinclude BLOCK %]
130 [% Asset.js("js/tools-menu.js") | $raw %]
131 [% Asset.js("js/rotating-collections.js") | $raw %]
134 [% INCLUDE 'intranet-bottom.inc' %]