1 [% PROCESS 'i18n.inc' %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Course reserves › Remove reserves</title>
6 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="courses_rm_items" class="course">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'cat-search.inc' %]
13 <nav aria-label="Breadcrumb" class="breadcrumb">
16 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
22 <a href="#" aria-current="page">
29 <div class="main container-fluid">
31 <div class="col-md-8 col-md-offset-2">
32 [% IF action == 'display_form' %]
33 <form method="post" action="/cgi-bin/koha/course_reserves/batch_rm_items.pl">
34 <input type="hidden" name="action" value="batch_rm" />
35 <fieldset class="rows">
36 <legend>Remove items: scan barcodes</legend>
39 <label class="required" for="barcodes">Item barcodes:</label>
40 <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
44 <fieldset class="action">
45 <p>All course reserve items will be deleted from all courses to which they are attached.</p>
46 <input type="submit" value="Submit" class="submit" id="batch_rm_btn" />
47 <a href="/cgi-bin/koha/course_reserves/course-reserves.pl" class="cancel">Cancel</a>
52 [% IF action == 'display_results' %]
55 <h3>Items removed</h3>
56 [% IF item_and_count > 0 %]
57 <p>The following items were removed from all courses:</p>
59 [% FOREACH i IN item_and_count %]
60 <li>[% txn('{title} ({barcode}) was removed from {count} course.', '{title} ({barcode}) was removed from {count} courses.', i.delcount, { title = i.delitem.biblio.title, barcode = i.delitem.barcode, count = i.delcount }) | html %]</li>
64 No valid item barcodes found.
68 [% IF invalid_barcodes.size > 0 %]
69 <h3>Invalid barcodes</h3>
70 <p>The following invalid barcodes were skipped:</p>
72 [% FOREACH b IN invalid_barcodes %]
73 <li>[% b | html %]</li>
79 <a class='btn btn-default' href="/cgi-bin/koha/course_reserves/course-reserves.pl">Return</a>
85 [% MACRO jsinclude BLOCK %]
87 $(document).ready(function() {
88 $("#batch_rm_btn").click(function(){
89 return confirmDelete(_("Are you sure you want to remove these items from all courses?"));
95 [% INCLUDE 'intranet-bottom.inc' %]