Bug 21003: Removed warning and changed wording on add_items-step2.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / course_reserves / add_items-step2.tt
1 [% USE Branches %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Course reserves &rsaquo;[% IF is_edit %] Edit item[% ELSE %]Add items[% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="courses_add_items_step2" class="course">
8
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
11
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> &rsaquo;[% IF is_edit %] Edit [% ELSE %] Reserve [% END %]<i><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | html %]">[% biblio.title | html %]</a></i> for <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | html %]">[% course.course_name | html %]</a></i></div>
13
14 <div class="main container-fluid">
15     <div class="row">
16         <div class="col-md-8 col-md-offset-2">
17
18         [% IF course_reserve && !is_edit%]<div class="dialog message" id="already_on_reserve_this">This course already has this item on reserve.</div>[% END %]
19         [% IF course_item %]<div class="dialog message" id="already_on_reserve">Number of courses reserving this item: [% course_item.course_reserves.size | html %]</div>[% END %]
20
21         <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
22             <input type="hidden" name="course_id" value="[% course.course_id %]" />
23             <input type="hidden" name="return" value="[% return %]" />
24             <input type="hidden" name="action" value="add" />
25
26             <fieldset class="rows">
27                 [% IF is_edit || course_reserve %]
28                     <legend>Edit <i>[% biblio.title | html %]</i> in <i>[% course.course_name | html %]</i></legend>
29                 [% ELSE %]
30                     <legend>Add <i>[% biblio.title | html %]</i> to <i>[% course.course_name | html %]</i></legend>
31                 [% END %]
32                 <ol>
33                     <li>
34                         <span class="label">Barcode:</span>
35                         <span id="barcode">[% item.barcode %]</span>
36                         <input type="hidden" name="itemnumber" value="[% item.itemnumber %]" />
37                     </li>
38
39                     [% IF item_level_itypes %]
40                     <li>
41                         <label class="required" for="itype">Item type:</label>
42                         <select id="itype" name="itype">
43                             <option value="">LEAVE UNCHANGED</option>
44
45                             [% FOREACH it IN itypes %]
46                                 [% IF course_item.itype.defined && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %]
47                                     <option value="[% it.itemtype | html %]" selected="selected">[% it.description | html %]</option>
48                                 [% ELSE %]
49                                     <option value="[% it.itemtype %]">[% it.description %]</option>
50                                 [% END %]
51                             [% END %]
52                         </select>
53                     </li>
54                     [% END %]
55
56                     <li>
57                         <label class="required" for="ccode">Collection code:</label>
58                         <select id="ccode" name="ccode">
59                             <option value="">LEAVE UNCHANGED</option>
60
61                             [% FOREACH c IN ccodes %]
62                                 [% IF course_item.ccode.defined && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %]
63                                     <option value="[% c.authorised_value | html %]" selected="selected">[% c.lib | html %]</option>
64                                 [% ELSE %]
65                                     <option value="[% c.authorised_value %]">[% c.lib %]</option>
66                                 [% END %]
67                             [% END %]
68                         </select>
69                     </li>
70
71                     <li>
72                         <label class="required" for="location">Shelving location:</label>
73                         <select id="location" name="location">
74                             <option value="">LEAVE UNCHANGED</option>
75
76                             [% FOREACH s IN locations %]
77                                 [% IF course_item.location.defined && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %]
78                                     <option value="[% s.authorised_value | html %]" selected="selected">[% s.lib | html %]</option>
79                                 [% ELSE %]
80                                     <option value="[% s.authorised_value %]">[% s.lib %]</option>
81                                 [% END %]
82                             [% END %]
83                         </select>
84                     </li>
85
86                     <li>
87                         <label class="required" for="holdingbranch">Holding library:</label>
88                         <select id="holdingbranch" name="holdingbranch">
89                             <option value="">LEAVE UNCHANGED</option>
90                             [% FOREACH b IN Branches.all() %]
91                                 [% IF course_item.holdingbranch.defined && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %]
92                                     <option value="[% b.branchcode | html %]" selected="selected">[% b.branchname | html %]</option>
93                                 [% ELSE %]
94                                     <option value="[% b.branchcode %]">[% b.branchname %]</option>
95                                 [% END %]
96                             [% END %]
97                         </select>
98                     </li>
99
100                     <li>
101                         <label for="staff_note">Staff note:</label>
102                         <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea>
103                     </li>
104
105                     <li>
106                         <label for="public_note">Public note:</label>
107                         <textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea>
108                     </li>
109
110                 </ol>
111             </fieldset>
112
113             <fieldset class="action">
114                 <input type="submit" id="submit" value="Save" class="submit focus" />
115
116                 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a>
117             </fieldset>
118         </form>
119     </div>
120 </div>
121
122 [% INCLUDE 'intranet-bottom.inc' %]