Bug 21442: Update two-column templates with Bootstrap grid: Circulation part 1
This patch modifies several circulation templates to use the
Bootstrap grid instead of YUI.
This patch also removes obsolete "text/javascript" attributes from
<script> tags and "text/css" attributes from <style> tags in the
modified templates.
To test, apply the patch and view the following pages, confirming that
they look correct at various browser widths:
- Circulation -> Pending on-site checkouts (enable OnSiteCheckouts
preference).
- Test with the CircSidebar system preference both on and off
- Circulation -> Overdues
- Circulation -> Holds to pull
- Circulation -> Renew
- Test with the CircSidebar system preference both on and off
- Circulation -> Bibliographic detail page -> Request article (enable
ArticleRequests system preferences)
- Circulation -> Hold ratios
Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
a4e699be60
commit
1cf849eee0
|
|
@ -17,10 +17,18 @@
|
|||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Pending on-site checkouts</div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<div class="main container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<main>
|
||||
<div class="row">
|
||||
|
||||
[% IF Koha.Preference('CircSidebar') %]
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
[% ELSE %]
|
||||
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
|
||||
[% END %]
|
||||
|
||||
<h1>Pending on-site checkouts</h1>
|
||||
[% IF pending_onsite_checkouts %]
|
||||
<table id="pending_onsite_checkout">
|
||||
|
|
@ -56,16 +64,24 @@
|
|||
[% ELSE %]
|
||||
<h3>No pending on-site checkout.</h3>
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
<div class="yui-b">
|
||||
[% IF Koha.Preference('CircSidebar') %][% INCLUDE 'circ-nav.inc' %][% END %]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[% IF Koha.Preference('CircSidebar') %]
|
||||
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
||||
<div class="col-sm-2 col-sm-pull-10">
|
||||
<aside>
|
||||
[% INCLUDE 'circ-nav.inc' %]
|
||||
</aside>
|
||||
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
||||
</div> <!-- /.row -->
|
||||
[% END %]
|
||||
|
||||
</main>
|
||||
</div> <!-- /.col-sm-12 -->
|
||||
</div> <!-- /.row -->
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
if ( $("#pending_onsite_checkout").length ) {
|
||||
$("#pending_onsite_checkout").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<title>Koha › Circulation › Items overdue as of [% todaysdate | html %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% Asset.css("css/datatables.css") | $raw %]
|
||||
<style type="text/css">
|
||||
<style>
|
||||
.sql {display:none;}
|
||||
</style>
|
||||
</head>
|
||||
|
|
@ -19,11 +19,10 @@
|
|||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Overdues as of [% todaysdate | html %]</div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<div class="main container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
<main>
|
||||
|
||||
[% IF ( noreport ) %]
|
||||
<h2>Overdue report</h2>
|
||||
|
|
@ -92,9 +91,12 @@
|
|||
[% END %] <!-- overdueloop -->
|
||||
[% END %] <!-- noreport -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="yui-b">
|
||||
</main>
|
||||
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
||||
|
||||
<div class="col-sm-2 col-sm-pull-10">
|
||||
<aside>
|
||||
|
||||
<form method="post" action="/cgi-bin/koha/circ/overdue.pl">
|
||||
<fieldset class="brief">
|
||||
<h4>Filter on:</h4>
|
||||
|
|
@ -200,8 +202,10 @@
|
|||
</fieldset>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</aside>
|
||||
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
||||
</div> <!-- /.row -->
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% INCLUDE 'calendar.inc' %]
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@
|
|||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Holds to pull</div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div class="main container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
<main>
|
||||
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
[% FOR m IN messages %]
|
||||
<div class="dialog [% m.type | html %]">
|
||||
[% SWITCH m.code %]
|
||||
|
|
@ -162,9 +162,13 @@
|
|||
[% END %]
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="yui-b">
|
||||
|
||||
</main>
|
||||
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
||||
|
||||
<div class="col-sm-2 col-sm-pull-10">
|
||||
<aside>
|
||||
|
||||
<div id="filters">
|
||||
|
||||
<form action="/cgi-bin/koha/circ/pendingreserves.pl" method="post" >
|
||||
|
|
@ -195,14 +199,15 @@
|
|||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
||||
</div> <!-- /.row -->
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% INCLUDE 'calendar.inc' %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
[% INCLUDE 'columns_settings.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var columns_settings = [% ColumnsSettings.GetColumns('circ', 'holds', 'holds-to-pull', 'json') | $raw %];
|
||||
var holdst = KohaTable("holdst", {
|
||||
|
|
|
|||
|
|
@ -14,10 +14,18 @@
|
|||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Renew</div>
|
||||
|
||||
[% IF Koha.Preference('CircSidebar') %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
[% IF Koha.Preference('CircSidebar') %]<div class="yui-b">[% END %]
|
||||
<div class="main container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<main>
|
||||
<div class="row">
|
||||
|
||||
[% IF Koha.Preference('CircSidebar') %]
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
[% ELSE %]
|
||||
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
|
||||
[% END %]
|
||||
|
||||
[% IF error %]
|
||||
<div class="dialog alert">
|
||||
<h3>Cannot renew:</h3>
|
||||
|
|
@ -146,41 +154,39 @@
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
<div class="yui-g">
|
||||
|
||||
[% UNLESS error %]
|
||||
<form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off" >
|
||||
|
||||
<div class="yui-u first">
|
||||
<fieldset>
|
||||
<legend>Renew</legend>
|
||||
<fieldset>
|
||||
<legend>Renew</legend>
|
||||
|
||||
<label for="barcode">Enter item barcode: </label>
|
||||
<label for="barcode">Enter item barcode: </label>
|
||||
|
||||
<input name="barcode" id="barcode" size="14" class="focus" type="text" />
|
||||
<input name="barcode" id="barcode" size="14" class="focus" type="text" />
|
||||
|
||||
<input type="submit" class="submit" value="Submit" />
|
||||
</fieldset>
|
||||
</div>
|
||||
<input type="submit" class="submit" value="Submit" />
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
[% END %]
|
||||
|
||||
</div>
|
||||
</div>
|
||||
[% IF Koha.Preference('CircSidebar') %]
|
||||
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
||||
<div class="col-sm-2 col-sm-pull-10">
|
||||
<aside>
|
||||
[% INCLUDE 'circ-nav.inc' %]
|
||||
</aside>
|
||||
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
||||
</div> <!-- /.row -->
|
||||
[% END %]
|
||||
|
||||
[% IF Koha.Preference('CircSidebar') %]
|
||||
</div>
|
||||
|
||||
<div class="yui-b noprint">
|
||||
[% INCLUDE 'circ-nav.inc' %]
|
||||
</div>
|
||||
[% END %]
|
||||
<div>
|
||||
</main>
|
||||
</div> <!-- /.col-sm-12 -->
|
||||
</div> <!-- /.row -->
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% IF error %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
removeFocus();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@
|
|||
[% END %]
|
||||
</div>
|
||||
|
||||
[% INCLUDE 'blocking_errors.inc' %]
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
[% INCLUDE 'blocking_errors.inc' %]
|
||||
<div class="main container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
<main>
|
||||
|
||||
<h1>Request article from <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.id | uri %]">[% biblio.title | html %]</a></h1>
|
||||
[% IF no_patrons_found %]
|
||||
|
|
@ -291,19 +291,21 @@
|
|||
</table>
|
||||
</fieldset>
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="yui-b">
|
||||
</main>
|
||||
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
||||
|
||||
<div class="col-sm-2 col-sm-pull-10">
|
||||
<aside>
|
||||
[% INCLUDE 'biblio-view-menu.inc' %]
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
||||
</div> <!-- /.row -->
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$('#current-article-requests').ready(function() {
|
||||
$(".hide").hide();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<title>Koha › Circulation › Hold ratios</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% Asset.css("css/datatables.css") | $raw %]
|
||||
<style type="text/css">
|
||||
<style>
|
||||
.sql { display: none; }
|
||||
.ulined { text-decoration: underline; }
|
||||
.ratiolimit { color: blue; cursor: pointer; }
|
||||
|
|
@ -23,10 +23,11 @@
|
|||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Hold ratios</div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
<div class="main container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
<main>
|
||||
|
||||
<h1>Hold ratios to calculate items needed</h1>
|
||||
<h3>Calculated on [% todaysdate | $KohaDates %]. From [% from | $KohaDates %]
|
||||
to [% to | $KohaDates %]</h3>
|
||||
|
|
@ -113,9 +114,13 @@
|
|||
[% ELSE %]
|
||||
<b>No items found.</b>
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
<div class="yui-b">
|
||||
|
||||
</main>
|
||||
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
||||
|
||||
<div class="col-sm-2 col-sm-pull-10">
|
||||
<aside>
|
||||
|
||||
<form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
|
||||
<fieldset class="brief">
|
||||
<h4>Refine results:</h4>
|
||||
|
|
@ -154,13 +159,14 @@
|
|||
[% END %]
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
||||
</div> <!-- /.row -->
|
||||
|
||||
[% MACRO jsinclude BLOCK %]
|
||||
[% INCLUDE 'calendar.inc' %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".ratiolimit").click(function () {
|
||||
$("#ratio").val($(this).html());
|
||||
|
|
|
|||
Loading…
Reference in New Issue