1 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Course reserves › Add items</title>
7 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="courses_add_items_step1" class="course">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
14 <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>
16 <div class="main container-fluid">
18 <div class="col-md-8 col-md-offset-2">
20 [% IF action == 'display_form' %]
21 <form method="post" action="/cgi-bin/koha/course_reserves/batch_add_items.pl">
22 <input type="hidden" name="course_id" value="[% course.course_id %]" />
23 <input type="hidden" name="action" value="add" />
25 <fieldset class="rows">
26 <legend>Add items: scan barcodes</legend>
29 <label class="required" for="barcodes">Item barcodes:</label>
30 <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
32 [% IF item_level_itypes %]
34 <label class="required" for="itype">Item type:</label>
35 <select id="itype" name="itype">
36 <option value="">LEAVE UNCHANGED</option>
38 [% FOREACH it IN ItemTypes.Get() %]
39 <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>
49 [% FOREACH c IN AuthorisedValues.Get('CCODE') %]
50 <option value="[% c.authorised_value %]">[% c.lib %]</option>
56 <label class="required" for="location">Shelving location:</label>
57 <select id="location" name="location">
58 <option value="">LEAVE UNCHANGED</option>
59 [% FOREACH s IN AuthorisedValues.Get('LOC') %]
60 <option value="[% s.authorised_value %]">[% s.lib %]</option>
66 <label class="required" for="holdingbranch">Holding library:</label>
67 <select id="holdingbranch" name="holdingbranch">
68 <option value="">LEAVE UNCHANGED</option>
69 [% FOREACH b IN Branches.all() %]
70 <option value="[% b.branchcode %]">[% b.branchname %]</option>
76 <label for="staff_note">Staff note:</label>
77 <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note %]</textarea>
81 <label for="public_note">Public note:</label>
82 <textarea name="public_note" id="public_note">[% course_reserve.public_note %]</textarea>
88 Any items with existing course reserves will have their <i>on reserve</i> values updated.
91 <fieldset class="action">
92 <input type="submit" value="Submit" class="submit" />
94 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id %]" class="cancel">Cancel</a>
99 [% IF action == 'display_results' %]
103 [% IF items_added.size > 0 %]
104 <p>The following items were added or updated:</p>
106 [% FOREACH i IN items_added %]
107 <li>[% i.biblio.title %] ( [% i.barcode %] )</li>
111 No valid item barcodes found.
115 [% IF invalid_barcodes.size > 0 %]
116 <h3>Invalid barcodes</h3>
117 <p>The following invalid barcodes were skipped:</p>
119 [% FOREACH b IN invalid_barcodes %]
126 <a class='btn btn-default' href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course_id %]">View course</a>
132 [% INCLUDE 'intranet-bottom.inc' %]