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 <nav 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">
41 <div class="dialog message">
42 <p>Invalid collection id</p>
43 <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
46 [% INCLUDE 'rotating-collections-toolbar.inc' %]
47 <h1>Collection <em>[% colTitle | html %]</em></h1>
49 [% IF ( previousActionAdd ) %]
50 [% IF ( addSuccess ) %]
51 <div class="dialog message">Item with barcode '[% barcode | html %]' added successfully</div>
53 <div class="dialog alert">
54 <p>Failed to add item with barcode <em>[% barcode | html %]</em>:
56 [% IF failureMessage == "NO_ITEM" %]
57 No item with matching barcode found
58 [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
59 Item is already in a different rotating collection
60 [% ELSIF failureMessage == "IN_COLLECTION" %]
61 Item is already in this collection
63 [% failureMessage | html %]
70 [% IF ( previousActionRemove ) %]
71 [% IF ( removeSuccess ) %]
72 <div class="dialog message">Item with barcode <em>[% barcode | html %]</em> removed successfully</div>
74 <div class="dialog alert">
75 Failed to remove item with barcode <em>[% barcode | html %]</em>:
77 [% IF failureMessage == "NO_ITEM" %]
78 No item with matching barcode found
79 [% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
80 Item is not in this collection
82 [% failureMessage | html %]
90 <form action="addItems.pl" method="post">
91 <fieldset class="brief">
92 <legend>Add or remove items</legend>
95 <label for="barcode">Barcode: </label>
96 <input type="text" id="barcode" name="barcode" />
97 [% IF ( removeChecked ) %]
98 <label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> Remove item from collection</label>
100 <label class="inline"><input type="checkbox" name="removeItem" /> Remove item from collection</label>
105 <input type="hidden" id="colId" name="colId" value="[% colId | html %]" />
106 <input type="hidden" name="action" value="addItem" />
107 <input type="submit" value="Submit" />
115 <h2>Items in <em>[% colTitle | html %]</em></h2>
116 [% IF ( collectionItemsLoop ) %]
117 <h3>Total items: [% collectionItemsLoop.size | html%]</h3>
125 [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
127 <td>[% INCLUDE 'biblio-title.inc' biblio=collectionItemsLoo link = 1 %]</td>
128 <td>[% collectionItemsLoo.itemcallnumber | html %]</td>
129 <td>[% collectionItemsLoo.barcode | html %]</td>
130 <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId | uri %]&barcode=[% collectionItemsLoo.barcode | uri %]&removeItem=1&action=addItem">Remove</a></td>
135 <div class="dialog message">There are no items in this collection.</div>
141 </div> <!-- /.col-sm-10.col-sm-push-2 -->
143 <div class="col-sm-2 col-sm-pull-10">
145 [% INCLUDE 'tools-menu.inc' %]
147 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
148 </div> <!-- /.row -->
150 [% MACRO jsinclude BLOCK %]
151 [% Asset.js("js/tools-menu.js") | $raw %]
152 [% Asset.js("js/rotating-collections.js") | $raw %]
155 [% INCLUDE 'intranet-bottom.inc' %]