]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt
Bug 8836 - Resurrect Rotating Collections
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / rotating_collections / addItems.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo; Add/Remove items</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
5     //<![CDATA[
6         $( document ).ready(function() {
7             $("#barcode").focus();
8         });
9     //]]>
10 </script>
11 </head>
12 <body>
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
15
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> &rsaquo; Add/Remove items</div>
17
18 <div id="doc3">
19 <div id="bd">
20         <div class="yui-gb">
21
22       <h1>Rotating collections: Add/Remove items</h1>
23
24       <div>
25           <br />
26           [% IF ( previousActionAdd ) %]
27             [% IF ( addSuccess ) %]
28               <div>Item with barcode '[% addedBarcode %]' Added successfully!</div>
29             [% ELSE %]
30               <div>Failed to add item with barcode '[% addedBarcode %]'!</div>
31               <div>Reason: <strong>[% failureMessage %]</strong></div>
32             [% END %]
33           [% END %]
34
35           [% IF ( previousActionRemove ) %]
36             [% IF ( removeSuccess ) %]
37               <div>Item with barcode '[% addedBarcode %]' Removed successfully!</div>
38             [% ELSE %]
39               <div>Failed to remove item with barcode '[% removedBarcode %]'!</div>
40               <div>Reason: <strong>[% failureMessage %]</strong></div>
41             [% END %]
42           [% END %]
43
44           <h3>Add item to <i>[% colTitle %]</i></h3>
45       </div>
46
47       <div>
48         <form action="addItems.pl" method="post">
49         <table>
50           <tr>
51             <th><label for="barcode">Barcode: </label></td>
52             <td><input type="text" id="barcode" name="barcode" /></td>
53             <td>
54               [% IF ( removeChecked ) %]<input type="checkbox" name="removeItem" checked="checked" />
55               [% ELSE %]<input type="checkbox" name="removeItem" />[% END %]
56               <label for="removeItem">Remove item from collection</label>
57             </td>
58           </tr>
59
60           <input type="hidden" id="colId" name="colId" value="[% colId %]" />
61           <input type="hidden" name="action" value="addItem" />
62           <tr><td align="right" colspan="99"><input type="submit" value="Submit" /></td></tr>
63         </table>
64         </form>
65       </div>
66
67       <div>
68         <h2>Items in this collection</h2>
69         [% IF ( collectionItemsLoop ) %]
70           <table>
71             <tr>
72               <th>Title</th>
73               <th>Call number</th>
74               <th>Barcode</th>
75             </tr>
76             [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
77               <tr>
78                 <td>[% collectionItemsLoo.title |html %]</td>
79                 <td>[% collectionItemsLoo.itemcallnumber %]</td>
80                 <td>[% collectionItemsLoo.barcode %]</td>
81               </tr>
82             [% END %]
83           </table>
84         [% ELSE %]
85           There are no items in this collection.
86         [% END %]
87       </div>
88
89       <div>
90         <br/>
91         <input type="button" value="Return to rotating collections home" onclick="window.location.href='rotatingCollections.pl'">
92       </div>
93
94 </div>
95 </div>
96 [% INCLUDE 'intranet-bottom.inc' %]
97