Koha/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt
Owen Leonard b2eb614bd4
Bug 30952: (follow-up) Undo change to Home breadcrumb
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-12 16:00:45 -03:00

94 lines
3.4 KiB
Text

[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Add reserves &rsaquo; [% course.course_name | html %] &rsaquo; Course reserves &rsaquo; Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="courses_add_items_step1" class="course">
[% WRAPPER 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
<ol>
<li>
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
</li>
<li>
<a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a>
</li>
<li>
<a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | uri %]">[% course.course_name | html %]</a>
</li>
<li>
<a href="#" aria-current="page">
Add reserves
</a>
</li>
</ol>
</nav>
[% END %]
<div class="main container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Add reserves for <em>[% course.course_name | html %]</em></h1>
[% IF ERROR_ITEM_NOT_FOUND %]
[% IF UNKNOWN_BARCODE %]
<div class="dialog alert">No item found with barcode [% UNKNOWN_BARCODE | html %]</div>
[% ELSIF UNKNOWN_BIBLIONUMBER %]
<div class="dialog alert">No bibliographic record found with biblionumber [% UNKNOWN_BIBLIONUMBER | html %]</div>
[% ELSE %]
<div class="dialog alert">No item or bibliographic record found</div>
[% END %]
[% END %]
<form method="post" action="/cgi-bin/koha/course_reserves/add_items.pl">
<input type="hidden" name="course_id" value="[% course.course_id | html %]" />
<input type="hidden" name="action" value="lookup" />
<fieldset class="rows">
<legend>Add items: scan barcode</legend>
<ol>
<li>
<label class="required" for="barcode">Item barcode:</label>
<input id="barcode" name="barcode" class="focus" type="text" />
</li>
</ol>
</fieldset>
<fieldset class="rows">
<legend>Or use biblionumber of a bibliographic record</legend>
<ol>
<li>
<label class="required" for="biblionumber">Biblionumber:</label>
<input id="biblionumber" name="biblionumber" type="text" />
</li>
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" value="Submit" class="submit" />
<a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% course.course_id | uri %]" class="cancel">Cancel</a>
</fieldset>
</form>
</div>
</div>
[% MACRO jsinclude BLOCK %]
<script>
$(document).ready(function(){
$("input[type='submit']").click(function(e){
if ( $("#biblionumber").val().length > 0 && $("#barcode").val().length > 0 ) {
e.preventDefault();
alert(__("Please enter only a barcode, or only a biblionumber."));
}
});
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]