Bug 32300: Add page-section to cataloguing plugins (cat)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / course_reserves / add_items-step1.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Add reserves &rsaquo; [% course.course_name | html %] &rsaquo; Course reserves &rsaquo; Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="courses_add_items_step1" class="course">
7
8 [% WRAPPER 'header.inc' %]
9     [% INCLUDE 'cat-search.inc' %]
10 [% END %]
11
12 [% WRAPPER 'sub-header.inc' %]
13 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
14     <ol>
15         <li>
16             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
17         </li>
18         <li>
19             <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
20         </li>
21         <li>
22             <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | uri %]">[% course.course_name | html %]</a>
23         </li>
24         <li>
25             <a href="#" aria-current="page">
26                 Add reserves
27             </a>
28         </li>
29     </ol>
30 </nav>
31 [% END %]
32
33 <div class="main container-fluid">
34     <div class="row">
35         <div class="col-md-8 col-md-offset-2">
36             <h1>Add reserves for <em>[% course.course_name | html %]</em></h1>
37
38         [% IF ERROR_ITEM_NOT_FOUND %]
39             [% IF UNKNOWN_BARCODE %]
40                 <div class="dialog alert">No item found with barcode [% UNKNOWN_BARCODE | html %]</div>
41             [% ELSIF UNKNOWN_BIBLIONUMBER %]
42                 <div class="dialog alert">No bibliographic record found with biblionumber [% UNKNOWN_BIBLIONUMBER | html %]</div>
43             [% ELSE %]
44                  <div class="dialog alert">No item or bibliographic record found</div>
45             [% END %]
46         [% END %]
47
48         <form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
49             <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
50             <input type="hidden" name="action" value="lookup" />
51
52             <fieldset class="rows">
53                 <legend>Add items: scan barcode</legend>
54                 <ol>
55                     <li>
56                         <label class="required" for="barcode">Item barcode:</label>
57                         <input id="barcode" name="barcode" class="focus" type="text" />
58                     </li>
59                 </ol>
60             </fieldset>
61
62             <fieldset class="rows">
63                 <legend>Or use biblionumber of a bibliographic record</legend>
64                 <ol>
65                     <li>
66                         <label class="required" for="biblionumber">Biblionumber:</label>
67                         <input id="biblionumber" name="biblionumber" type="text" />
68                     </li>
69                 </ol>
70             </fieldset>
71
72             <fieldset class="action">
73                 <input type="submit" value="Submit" class="btn btn-primary" />
74
75                 <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | uri %]" class="cancel">Cancel</a>
76             </fieldset>
77         </form>
78     </div>
79 </div>
80
81 [% MACRO jsinclude BLOCK %]
82     <script>
83         $(document).ready(function(){
84             $("input[type='submit']").click(function(e){
85                 if ( $("#biblionumber").val().length > 0 && $("#barcode").val().length > 0 ) {
86                     e.preventDefault();
87                     alert(__("Please enter only a barcode, or only a biblionumber."));
88                 }
89             });
90         });
91     </script>
92 [% END %]
93
94 [% INCLUDE 'intranet-bottom.inc' %]