4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Add or remove items › Collection [% colTitle | html %] › Rotating collections › Tools › Koha</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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
16 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
22 <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a>
25 <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]">Collection <em>[% colTitle | html %]</em></a>
28 <a href="#" aria-current="page">
35 <div class="main container-fluid">
37 <div class="col-sm-10 col-sm-push-2">
39 <h1>Add/remove items from collection</h1>
42 <div class="dialog message">
43 <p>Invalid collection id</p>
44 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
47 [% INCLUDE 'rotating-collections-toolbar.inc' %]
48 <h2>Collection <em>[% colTitle | html %]</em></h2>
50 [% IF ( previousActionAdd ) %]
51 [% IF ( addSuccess ) %]
52 <div class="dialog message">Item with barcode '[% barcode | html %]' added successfully</div>
54 <div class="dialog alert">
55 <p>Failed to add item with barcode <em>[% barcode | html %]</em>:
57 [% IF failureMessage == "NO_ITEM" %]
58 <span>No item with matching barcode found</span>
59 [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
60 <span>Item is already in a different rotating collection</span>
61 [% ELSIF failureMessage == "IN_COLLECTION" %]
62 <span>Item is already in this collection</span>
64 [% failureMessage | html %]
71 [% IF ( previousActionRemove ) %]
72 [% IF ( removeSuccess ) %]
73 <div class="dialog message">Item with barcode <em>[% barcode | html %]</em> removed successfully</div>
75 <div class="dialog alert">
76 Failed to remove item with barcode <em>[% barcode | html %]</em>:
78 [% IF failureMessage == "NO_ITEM" %]
79 <span>No item with matching barcode found</span>
80 [% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
81 <span>Item is not in this collection</span>
83 [% failureMessage | html %]
91 <form action="addItems.pl" method="post">
92 <fieldset class="brief">
93 <legend>Add or remove items</legend>
96 <label for="barcode">Barcode: </label>
97 <input type="text" id="barcode" name="barcode" />
98 [% IF ( removeChecked ) %]
99 <label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> Remove item from collection</label>
101 <label class="inline"><input type="checkbox" name="removeItem" /> Remove item from collection</label>
106 <input type="hidden" id="colId" name="colId" value="[% colId | html %]" />
107 <input type="hidden" name="action" value="addItem" />
108 <input type="submit" value="Submit" />
116 <h2>Items in <em>[% colTitle | html %]</em></h2>
117 [% IF ( collectionItemsLoop ) %]
118 <h3>Total items: [% collectionItemsLoop.size | html%]</h3>
126 [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
128 <td>[% INCLUDE 'biblio-title.inc' biblio=collectionItemsLoo link = 1 %]</td>
129 <td>[% collectionItemsLoo.itemcallnumber | html %]</td>
130 <td>[% collectionItemsLoo.barcode | html %]</td>
131 <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]&barcode=[% collectionItemsLoo.barcode | uri %]&removeItem=1&action=addItem">Remove</a></td>
136 <div class="dialog message">There are no items in this collection.</div>
142 </div> <!-- /.col-sm-10.col-sm-push-2 -->
144 <div class="col-sm-2 col-sm-pull-10">
146 [% INCLUDE 'tools-menu.inc' %]
148 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
149 </div> <!-- /.row -->
151 [% MACRO jsinclude BLOCK %]
152 [% Asset.js("js/tools-menu.js") | $raw %]
153 [% Asset.js("js/rotating-collections.js") | $raw %]
156 [% INCLUDE 'intranet-bottom.inc' %]