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 | html %]">[% course.course_name | html %]</a></i></div>
16 <div class="main container-fluid">
18 <div class="col-md-8 col-md-offset-2">
19 [% IF action == 'invalid_course' %]
20 <div id="invalid-course-error" class="dialog alert">Invalid course!</div>
23 [% IF action == 'display_form' %]
24 <form method="post" action="/cgi-bin/koha/course_reserves/batch_add_items.pl">
25 <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
26 <input type="hidden" name="action" value="add" />
28 <fieldset class="rows">
29 <legend>Add items: scan barcodes</legend>
32 <label class="required" for="barcodes">Item barcodes:</label>
33 <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
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 ItemTypes.Get() %]
42 <option value="[% it.itemtype | html %]">[% it.description | html %]</option>
49 <label class="required" for="ccode">Collection:</label>
50 <select id="ccode" name="ccode">
51 <option value="">LEAVE UNCHANGED</option>
52 [% FOREACH c IN AuthorisedValues.Get('CCODE') %]
53 <option value="[% c.authorised_value | html %]">[% c.lib | html %]</option>
59 <label class="required" for="location">Shelving location:</label>
60 <select id="location" name="location">
61 <option value="">LEAVE UNCHANGED</option>
62 [% FOREACH s IN AuthorisedValues.Get('LOC') %]
63 <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>
69 <label class="required" for="holdingbranch">Holding library:</label>
70 <select id="holdingbranch" name="holdingbranch">
71 <option value="">LEAVE UNCHANGED</option>
72 [% FOREACH b IN Branches.all() %]
73 <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
79 <label for="staff_note">Staff note:</label>
80 <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note | html %]</textarea>
84 <label for="public_note">Public note:</label>
85 <textarea name="public_note" id="public_note">[% course_reserve.public_note | html %]</textarea>
91 Any items with existing course reserves will have their <i>on reserve</i> values updated.
94 <fieldset class="action">
95 <input type="submit" value="Submit" class="submit" />
97 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | uri %]" class="cancel">Cancel</a>
102 [% IF action == 'display_results' %]
106 [% IF items_added.size > 0 %]
107 <p>The following items were added or updated:</p>
109 [% FOREACH i IN items_added %]
110 <li>[% i.biblio.title | html %] ( [% i.barcode | html %] )</li>
114 No valid item barcodes found.
118 [% IF invalid_barcodes.size > 0 %]
119 <h3>Invalid barcodes</h3>
120 <p>The following invalid barcodes were skipped:</p>
122 [% FOREACH b IN invalid_barcodes %]
123 <li>[% b | html %]</li>
129 <a class='btn btn-default' href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course_id | html %]">View course</a>
135 [% INCLUDE 'intranet-bottom.inc' %]