Victor Grousset/tuxayo
7758a0248e
And a few minor fixes when they where causing issues for translatability. And rephrased a string about password reset to have it identical to other strings with the same meaning. Simplified via wrapping strings with <span> to split to huge concatenated strings with a lot of %s everywhere. == Test plan == This patch needs mainly proof reading. Still it's possible to do some basic testing to demonstrate that adding a <span> in an IF doesn't break anything. Pick in one of the 110 modified templates a string that you know how to display. Otherwise: 1. acquisitions => vendor => basket => add to basket => search "from existing record" => add order 2. Cancel the order 3. You see without issue "Bibliographic record will not be deleted" 4. administration => Patron categories 5. Try to delete a used and unused category 6. You see as expected Category XXXX is in use. Deletion not possible! and Confirm deletion of category XXXX Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
184 lines
12 KiB
Text
184 lines
12 KiB
Text
[% USE Koha %]
|
|
[% USE AdditionalContents %]
|
|
[% USE AuthorisedValues %]
|
|
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
|
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Issues for a subscription › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</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 id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
|
|
<ol 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">
|
|
<a href="#" aria-current="page">Issues for a subscription</a>
|
|
</li>
|
|
</ol>
|
|
</nav> <!-- /#breadcrumbs -->
|
|
|
|
<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">
|
|
<h1>Issues for a subscription</h1>
|
|
<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&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">
|
|
<caption><h2>Subscription information for [% subscription_LOO.bibliotitle | html %]</h2><caption>
|
|
<p>
|
|
<span>The current subscription began on [% subscription_LOO.startdate | html %] and is issued</span>
|
|
[% IF ( subscription_LOO.periodicity1 ) %]
|
|
<span>twice per day</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity2 ) %]
|
|
<span>every day</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity3 ) %]
|
|
<span>three times per week</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity4 ) %]
|
|
<span>every week</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity5 ) %]
|
|
<span>every 2 weeks</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity6 ) %]
|
|
<span>every 3 weeks</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity7 ) %]
|
|
<span>every month</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity8 ) %]
|
|
<span>every 2 months</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity9 ) %]
|
|
<span>every quarter</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity10 ) %]
|
|
<span>twice per year</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity11 ) %]
|
|
<span>every year</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity12 ) %]
|
|
<span>every 2 years</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.periodicity13 ) %]
|
|
<span>irregularly</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.arrival1 ) %]
|
|
<span>on Monday</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.arrival2 ) %]
|
|
<span>on Tuesday</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.arrival3 ) %]
|
|
<span>on Wednesday</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.arrival4 ) %]
|
|
<span>on Thursday</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.arrival5 ) %]
|
|
<span>on Friday</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.arrival6 ) %]
|
|
<span>on Saturday</span>
|
|
[% END %]
|
|
[% IF ( subscription_LOO.arrival7 ) %]
|
|
<span>on Sunday</span>
|
|
[% END %]
|
|
|
|
<span>for</span>
|
|
[% IF ( subscription_LOO.numberlength ) %][% subscription_LOO.numberlength | html %] <span>issues</span>[% END %]
|
|
[% IF ( subscription_LOO.weeklength ) %][% subscription_LOO.weeklength | html %] <span>weeks</span>[% END %]
|
|
[% IF ( subscription_LOO.monthlength ) %][% subscription_LOO.monthlength | html %] <span>months</span>[% 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 %]
|
|
|
|
<h3>[% subscription_LOO.branchname | html %]</h3>
|
|
[% IF ( subscription_LOO.location ) %]
|
|
<p class="subscription_location">Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription_LOO.location, opac => 1 ) | html %]</p>
|
|
[% END %]
|
|
|
|
[% IF ( subscription_LOO.notes ) %]
|
|
<p>[% subscription_LOO.notes | html | html_line_break %]</p>
|
|
[% END %]
|
|
|
|
[% IF ( subscription_LOO.recievedlist ) %]
|
|
<h4>Available issues</h4>
|
|
<p>[% subscription_LOO.recievedlist | html | html_line_break %]</p>
|
|
[% END %]
|
|
|
|
[% IF ( subscription_LOO.missinglist ) %]
|
|
<h4>Unavailable issues</h4>
|
|
<p>[% subscription_LOO.missinglist | html | html_line_break %]</p>
|
|
[% END %]
|
|
|
|
[% IF ( subscription_LOO.opacnote ) %]
|
|
<h4>Issues summary</h4>
|
|
<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&subscriptionid=[% subscription_LOO.subscriptionid | uri %]&referer=serial&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 %]&referer=serial&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 %]
|