Owen Leonard
6eb56acba6
This patch adds course name to the breadcrumbs and page title on the pages for adding items to a course. To test, apply the patch and go to course reserves. - Click a course to view it. - Click the "Add reserves" button. - In the breadcrumbs you should see: Home > Course reserves > [Course name] > Add reserves - [Course name] should link correctly to the course detail view. In the page title you should see: Add reserves > [Course name] > Course reserves > Home - Enter a barcode or biblionumber and proceed to the next step. Confirm that the same changes are in effect on the second page. - Perform the same tests in the "Batch add reserves" process. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
91 lines
3.3 KiB
Text
91 lines
3.3 KiB
Text
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Add reserves › [% course.course_name | html %] › Course reserves › Koha</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="courses_add_items_step1" class="course">
|
|
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.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>
|
|
|
|
<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' %]
|