Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt
Owen Leonard 9cb89b4639 Bug 20168: Update of the OPAC bootstrap template to bootstrap v4
This patch updates the version of Bootstrap in the OPAC from 2.3.1 to
4.5.0. The Bootstrap JavaScript files have been replaced with custom
builds of the 4.5.0 JavaScript source files. The Bootstrap CSS is now
built into the OPAC CSS by loading the required Bootstrap 4.5.0 SCSS
files in node_modules.

OPAC SCSS now starts with Bootstrap customizations:

/* Bootstrap variable customizations */
$headings-color: #727272;
...

Followed by loading the necessary Bootstrap SCSS files:

/* Bootstrap imports */
@import "../../../../../node_modules/bootstrap/scss/functions";
@import "../../../../../node_modules/bootstrap/scss/variables";
...

Followed by our CSS. The build process for generating compiled CSS now
creates a file which bundles Bootstrap CSS and ours. Removed from the
Koha source: Bootstrap CSS files, Bootstrap "glyphicons" images.

The upgrade to Bootstrap 4 involved a lot of markup changes to conform
with new Bootstrap classes, especially in classes related to the grid.
Besides duplicating the grid we used before, this upgrade adds some new
features made possible by Bootstrap 4.5's use of flexbox as a layout
tool. This includes custom ordering of columns based on class names:
https://getbootstrap.com/docs/4.5/layout/grid/#order-classes.

Other areas where the most changes have been made: Navigation menus,
breadcrumb menus, buttons, dropdowns.

Bootstrap's JavaScript file is now "bootstrap.bundle.min.js" to reflect
the fact that a required JavaScript asset is now distributed separately
in Bootstrap 4. The "bundle" version includes Popper.js.

Unrelated changes: Indentation corrections, removal of invalid
"//<![CDATA[" markers, removal of invalid script type attributes.

To test, apply the patch and run 'yarn install' to install Bootstrap as
an npm module. Run 'yarn build --view opac' to regenerate the OPAC CSS.

Test as many aspect of the OPAC as possible, viewing pages at various
browser widths to confirm that everything adjusts well. Test with
various OPAC interface system preferences enabled and disabled.

Test self checkout and self checkin.

Known issues: RTL support has not been updated.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-09 14:13:03 +02:00

177 lines
11 KiB
Text

[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Issues for a subscription</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %]
<style>
.subscriptionline {
border-bottom: 1px solid #EEE;
padding: 1em 0;
}
</style>
[% END %]
</head>
[% INCLUDE 'bodytag.inc' bodyid='opac-serials-issues' %]
[% INCLUDE 'masthead.inc' %]
<div class="main">
<nav aria-label="breadcrumb">
<ul class="breadcrumb">
<li class="breadcrumb-item">
<a href="/cgi-bin/koha/opac-main.pl">Home</a>
</li>
<li class="breadcrumb-item">
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Details for [% bibliotitle | html %]</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
<a href="#">Issues for a subscription</a>
</li>
</ul>
</nav>
<div class="container-fluid">
<div class="row">
[% IF ( OpacNav || OpacNavBottom ) %]
<div class="col-lg-2">
<div id="navigation">
[% INCLUDE 'navigation.inc' %]
</div>
</div>
<div class="col-10 order-first order-md-first order-lg-2">
[% ELSE %]
<div class="col order-first order-md-first order-lg-2">
[% END %]
<div id="userserialissues" class="maincontent">
<h2>Issues for a subscription</h2>
<div id="views">
<span class="view">
<a id="Normalview" href="opac-detail.pl?biblionumber=[% biblionumber | html %]" class="button">Normal view</a>
</span>
<span class="view"><span id="Briefhistory">Brief history</span></span>
<span class="view"><a id="Fullhistory" href="opac-serial-issues.pl?selectview=full&amp;biblionumber=[% biblionumber | html %]" class="button">Full history</a></span>
</div>
<form method="post" name="f">
[% FOREACH subscription_LOO IN subscription_LOOP %]
<div id="subscriptionline[% subscription_LOO.subscriptionid | html %]" class="subscriptionline">
<h3>Subscription information for [% subscription_LOO.bibliotitle | html %]</h3>
<p>
The current subscription began on [% subscription_LOO.startdate | html %] and is issued
[% IF ( subscription_LOO.periodicity1 ) %]
twice per day
[% END %]
[% IF ( subscription_LOO.periodicity2 ) %]
every day
[% END %]
[% IF ( subscription_LOO.periodicity3 ) %]
three times per week
[% END %]
[% IF ( subscription_LOO.periodicity4 ) %]
every week
[% END %]
[% IF ( subscription_LOO.periodicity5 ) %]
every 2 weeks
[% END %]
[% IF ( subscription_LOO.periodicity6 ) %]
every 3 weeks
[% END %]
[% IF ( subscription_LOO.periodicity7 ) %]
every month
[% END %]
[% IF ( subscription_LOO.periodicity8 ) %]
every 2 months
[% END %]
[% IF ( subscription_LOO.periodicity9 ) %]
every quarter
[% END %]
[% IF ( subscription_LOO.periodicity10 ) %]
twice per year
[% END %]
[% IF ( subscription_LOO.periodicity11 ) %]
every year
[% END %]
[% IF ( subscription_LOO.periodicity12 ) %]
every 2 years
[% END %]
[% IF ( subscription_LOO.periodicity13 ) %]
irregularly
[% END %]
[% IF ( subscription_LOO.arrival1 ) %]
on Monday
[% END %]
[% IF ( subscription_LOO.arrival2 ) %]
on Tuesday
[% END %]
[% IF ( subscription_LOO.arrival3 ) %]
on Wednesday
[% END %]
[% IF ( subscription_LOO.arrival4 ) %]
on Thursday
[% END %]
[% IF ( subscription_LOO.arrival5 ) %]
on Friday
[% END %]
[% IF ( subscription_LOO.arrival6 ) %]
on Saturday
[% END %]
[% IF ( subscription_LOO.arrival7 ) %]
on Sunday
[% END %]
for
[% IF ( subscription_LOO.numberlength ) %][% subscription_LOO.numberlength | html %] issues[% END %]
[% IF ( subscription_LOO.weeklength ) %][% subscription_LOO.weeklength | html %] weeks[% END %]
[% IF ( subscription_LOO.monthlength ) %][% subscription_LOO.monthlength | html %] months[% END %]
</p>
<p>The first subscription was started on [% subscription_LOO.histstartdate | html %]</p>
[% IF ( subscription_LOO.histenddate ) %]
<p>The subscription expired on [% subscription_LOO.histenddate | html %]</p>
[% END %]
<h4>[% subscription_LOO.branchname | html %]</h4>
[% IF ( subscription_LOO.notes ) %]
<p>[% subscription_LOO.notes | html | html_line_break %]</p>
[% END %]
[% IF ( subscription_LOO.recievedlist ) %]
<h5>Available issues</h5>
<p>[% subscription_LOO.recievedlist | html | html_line_break %]</p>
[% END %]
[% IF ( subscription_LOO.missinglist ) %]
<h5>Unavailable issues</h5>
<p>[% subscription_LOO.missinglist | html | html_line_break %]</p>
[% END %]
[% IF ( subscription_LOO.opacnote ) %]
<h5>Issues summary</h5>
<p>
[% subscription_LOO.opacnote | html | html_line_break %]
</p>
[% END %]
[% IF ( subscription_LOO.letter ) %]
[% IF ( loggedinusername ) %]
[% IF ( subscription_LOO.hasalert ) %]
You have subscribed to email notification on new issues <a href="opac-alert-subscribe.pl?op=cancel&amp;subscriptionid=[% subscription_LOO.subscriptionid | uri %]&amp;referer=serial&amp;biblionumber=[% subscription_LOO.biblionumber | uri %]" class="btn btn-primary" title="Cancel email notification">
Cancel email notification
</a>
[% ELSE %]
<a href="opac-alert-subscribe.pl?subscriptionid=[% subscription_LOO.subscriptionid | uri %]&amp;referer=serial&amp;biblionumber=[% subscription_LOO.biblionumber | uri %]" class="btn btn-primary" title="Subscribe to email notification on new issues">
Subscribe to email notification on new issues
</a>
[% END %]
[% ELSE %]
You must log in if you want to subscribe to email notification on new issues
[% END %]
[% END %]
</div> <!-- / #subscriptionline* -->
[% END # FOREACH subscription_LOO %]
</form>
</div> <!-- / #userserialissues -->
</div> <!-- / .col-10/12 -->
</div> <!-- / .row -->
</div> <!-- / .container-fluid -->
</div> <!-- / .main -->
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %][% END %]