2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Course reserves ›[% IF is_edit || course_reserve %] Edit item[% ELSE %] Add items[% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="courses_add_items_step2" class="course">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a> ›[% IF is_edit || course_reserve %] 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>
14 <div class="main container-fluid">
16 <div class="col-md-8 col-md-offset-2">
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 %]
21 <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
22 <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
23 <input type="hidden" name="return" value="[% return | html %]" />
24 <input type="hidden" name="action" value="add" />
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>
30 <legend>Add <i>[% biblio.title | html %]</i> to <i>[% course.course_name | html %]</i></legend>
34 <span class="label">Barcode:</span>
35 <span id="barcode">[% item.barcode | html %]</span>
36 <input type="hidden" name="itemnumber" value="[% item.itemnumber | html %]" />
39 [% IF item_level_itypes %]
41 <label class="required" for="itype">Item type:</label>
42 <select id="itype" name="itype">
43 <option value="">LEAVE UNCHANGED</option>
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>
49 <option value="[% it.itemtype | html %]">[% it.description | html %]</option>
57 <label class="required" for="ccode">Collection:</label>
58 <select id="ccode" name="ccode">
59 <option value="">LEAVE UNCHANGED</option>
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>
65 <option value="[% c.authorised_value | html %]">[% c.lib | html %]</option>
72 <label class="required" for="location">Shelving location:</label>
73 <select id="location" name="location">
74 <option value="">LEAVE UNCHANGED</option>
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>
80 <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>
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.branchcode == item.holdingbranch ) || ( course.enabled == 'no' && b.branchcode == course_item.holdingbranch ) ) %]
92 <option value="[% b.branchcode | html %]" selected="selected">[% b.branchname | html %]</option>
94 <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
101 <label for="staff_note">Staff note:</label>
102 <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note | html %]</textarea>
106 <label for="public_note">Public note:</label>
107 <textarea name="public_note" id="public_note">[% course_reserve.public_note | html %]</textarea>
113 <fieldset class="action">
114 <input type="submit" id="submit" value="Save" class="submit focus" />
116 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | uri %]" class="cancel">Cancel</a>
122 [% INCLUDE 'intranet-bottom.inc' %]