1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Course reserves › Add items</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <body id="courses_add_items_step1" class="course">
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'cat-search.inc' %]
10 <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> › Add reserves for <i><a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]">[% course.course_name %]</a></i></div>
12 <div class="main container-fluid">
14 <div class="col-md-8 col-md-offset-2">
16 [% IF action == 'display_form' %]
17 <form method="post" action="/cgi-bin/koha/course_reserves/batch_add_items.pl">
18 <input type="hidden" name="course_id" value="[% course.course_id %]" />
19 <input type="hidden" name="action" value="add" />
21 <fieldset class="rows">
22 <legend>Add items: scan barcodes</legend>
25 <label class="required" for="barcodes">Item barcodes:</label>
26 <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
28 [% IF item_level_itypes %]
30 <label class="required" for="itype">Item type:</label>
31 <select id="itype" name="itype">
32 <option value="">LEAVE UNCHANGED</option>
34 [% FOREACH it IN itypes %]
35 [% IF course_item.itype && ( ( course.enabled == 'yes' && it.itemtype == item.itype ) || ( course.enabled == 'no' && it.itemtype == course_item.itype ) ) %]
36 <option value="[% it.itemtype %]" selected="selected">[% it.description %]</option>
38 <option value="[% it.itemtype %]">[% it.description %]</option>
46 <label class="required" for="ccode">Collection code:</label>
47 <select id="ccode" name="ccode">
48 <option value="">LEAVE UNCHANGED</option>
50 [% FOREACH c IN ccodes %]
51 [% IF course_item.ccode && ( ( course.enabled == 'yes' && c.authorised_value == item.ccode ) || ( course.enabled == 'no' && c.authorised_value == course_item.ccode ) ) %]
52 <option value="[% c.authorised_value %]" selected="selected">[% c.lib %]</option>
54 <option value="[% c.authorised_value %]">[% c.lib %]</option>
61 <label class="required" for="location">Shelving location:</label>
62 <select id="location" name="location">
63 <option value="">LEAVE UNCHANGED</option>
65 [% FOREACH s IN locations %]
66 [% IF course_item.location && ( ( course.enabled == 'yes' && s.authorised_value == item.location ) || ( course.enabled == 'no' && s.authorised_value == course_item.location ) ) %]
67 <option value="[% s.authorised_value %]" selected="selected">[% s.lib %]</option>
69 <option value="[% s.authorised_value %]">[% s.lib %]</option>
76 <label class="required" for="holdingbranch">Holding library:</label>
77 <select id="holdingbranch" name="holdingbranch">
78 <option value="">LEAVE UNCHANGED</option>
79 [% FOREACH b IN Branches.all() %]
80 [% IF course_item.holdingbranch && ( ( course.enabled == 'yes' && b.value == item.holdingbranch ) || ( course.enabled == 'no' && b.value == course_item.holdingbranch ) ) %]
81 <option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option>
83 <option value="[% b.branchcode %]">[% b.branchname %]</option>
90 <label for="staff_note">Staff note:</label>
91 <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea>
95 <label for="public_note">Public note:</label>
96 <textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea>
102 Any items with existing course reserves will have their <i>on reserve</i> values updated.
105 <fieldset class="action">
106 <input type="submit" value="Submit" class="submit" />
108 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a>
113 [% IF action == 'display_results' %]
117 [% IF items_added.size > 0 %]
118 <p>The following items were added or updated:</p>
120 [% FOREACH i IN items_added %]
121 <li>[% i.biblio.title %] ( [% i.barcode %] )</li>
125 No valid item barcodes found.
129 [% IF invalid_barcodes.size > 0 %]
130 <h3>Invalid barcodes</h3>
131 <p>The following invalid barcodes were skipped:</p>
133 [% FOREACH b IN invalid_barcodes %]
140 <a class='btn btn-default' href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course_id %]">View course</a>
146 [% INCLUDE 'intranet-bottom.inc' %]