2 [% PROCESS 'i18n.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% FILTER collapse %]
7 [% t("Remove reserves") | html %] ›
8 [% t("Course reserves") | html %] ›
11 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="courses_rm_items" class="course">
15 [% WRAPPER 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
19 [% WRAPPER 'sub-header.inc' %]
20 [% WRAPPER breadcrumbs %]
21 [% WRAPPER breadcrumb_item %]
22 <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
24 [% WRAPPER breadcrumb_item bc_active= 1 %]
25 <span>Batch remove reserves</span>
27 [% END #/ WRAPPER breadcrumbs %]
28 [% END #/ WRAPPER sub-header.inc %]
30 <div class="main container-fluid">
32 <div class="col-md-8 col-md-offset-2">
33 <h1>Batch remove reserves</h1>
34 [% IF action == 'display_form' %]
35 <form method="post" action="/cgi-bin/koha/course_reserves/batch_rm_items.pl">
36 <input type="hidden" name="action" value="batch_rm" />
37 <fieldset class="rows">
38 <legend>Remove items: scan barcodes</legend>
41 <label class="required" for="barcodes">Item barcodes:</label>
42 <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
46 <fieldset class="action">
47 <p>All course reserve items will be deleted from all courses to which they are attached.</p>
48 <input type="submit" value="Submit" class="btn btn-primary" id="batch_rm_btn" />
49 <a href="/cgi-bin/koha/course_reserves/course-reserves.pl" class="cancel">Cancel</a>
54 [% IF action == 'display_results' %]
57 <h3>Items removed</h3>
58 [% IF item_and_count > 0 %]
59 <p>The following items were removed from all courses:</p>
61 [% FOREACH i IN item_and_count %]
62 <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>
66 No valid item barcodes found.
70 [% IF invalid_barcodes.size > 0 %]
71 <h3>Invalid barcodes</h3>
72 <p>The following invalid barcodes were skipped:</p>
74 [% FOREACH b IN invalid_barcodes %]
75 <li>[% b | html %]</li>
81 <a class='btn btn-default' href="/cgi-bin/koha/course_reserves/course-reserves.pl">Return</a>
87 [% MACRO jsinclude BLOCK %]
89 $(document).ready(function() {
90 $("#batch_rm_btn").click(function(){
91 return confirmDelete(_("Are you sure you want to remove these items from all courses?"));
97 [% INCLUDE 'intranet-bottom.inc' %]