2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Course reserves › Add items</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> › Reserve <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 %]<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 <legend>Add <i>[% biblio.title | html %]</i> to <i>[% course.course_name | html %]</i></legend>
30 <span class="label">Barcode:</span>
31 <span id="barcode">[% item.barcode | html %]</span>
32 <input type="hidden" name="itemnumber" value="[% item.itemnumber | html %]" />
35 [% IF item_level_itypes %]
37 <label class="required" for="itype">Item type:</label>
38 <select id="itype" name="itype">
39 <option value="">LEAVE UNCHANGED</option>
41 [% FOREACH it IN itypes %]
42 [% IF course_item.itype.defined && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %]
43 <option value="[% it.itemtype | html %]" selected="selected">[% it.description | html %]</option>
45 <option value="[% it.itemtype | html %]">[% it.description | html %]</option>
53 <label class="required" for="ccode">Collection code:</label>
54 <select id="ccode" name="ccode">
55 <option value="">LEAVE UNCHANGED</option>
57 [% FOREACH c IN ccodes %]
58 [% IF course_item.ccode.defined && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %]
59 <option value="[% c.authorised_value | html %]" selected="selected">[% c.lib | html %]</option>
61 <option value="[% c.authorised_value | html %]">[% c.lib | html %]</option>
68 <label class="required" for="location">Shelving location:</label>
69 <select id="location" name="location">
70 <option value="">LEAVE UNCHANGED</option>
72 [% FOREACH s IN locations %]
73 [% IF course_item.location.defined && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %]
74 <option value="[% s.authorised_value | html %]" selected="selected">[% s.lib | html %]</option>
76 <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>
83 <label class="required" for="holdingbranch">Holding library:</label>
84 <select id="holdingbranch" name="holdingbranch">
85 <option value="">LEAVE UNCHANGED</option>
86 [% FOREACH b IN Branches.all() %]
87 [% IF course_item.holdingbranch.defined && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %]
88 <option value="[% b.branchcode | html %]" selected="selected">[% b.branchname | html %]</option>
90 <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
97 <label for="staff_note">Staff note:</label>
98 <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note | html %]</textarea>
102 <label for="public_note">Public note:</label>
103 <textarea name="public_note" id="public_note">[% course_reserve.public_note | html %]</textarea>
109 <fieldset class="action">
110 <input type="submit" id="submit" value="Save" class="submit focus" />
112 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | html %]" class="cancel">Cancel</a>
118 [% INCLUDE 'intranet-bottom.inc' %]