316eda1036
There are several notes and other fields in a subscription that can be entered as multi-line input with breaks. We should display them as they were entered with keeping the line breaks intact. To test: - Add a subscription - Add comments including line breaks in internal and OPAC note - Check the manual history checkbox - Go to the subscription detail page, tab 'Planning' - Use the 'Edit history' link to edit the history - Enter content with line breaks in all the input fields where it's possible - Go to the OPAC detail page for your subscription record - Go to tab 'Subscriptions' > More details > Brief history - Verify the line breaks show there as <br> - Apply patch - Relaod page, verify all information displays correctly now - Go back to the detail page, subscription tab - verify same there - Go back to the subscription detail page in staff - Check editing the history works as expected - Verify information on all tabs displays correctly - Receive a serial issue - verify note on top displays right - Go to the serial collection page of the subscription - same there Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nadine Pierre <nadine.pierre@inLibro.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
162 lines
10 KiB
Text
162 lines
10 KiB
Text
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Issues for a subscription</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %][% END %]
|
|
</head>
|
|
[% INCLUDE 'bodytag.inc' bodyid='opac-serials-issues' %]
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
<ul class="breadcrumb">
|
|
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
|
|
<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Details for [% bibliotitle | html %]</a> <span class="divider">›</span></li>
|
|
<li><a href="#">Issues for a subscription</a></li>
|
|
</ul>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
[% IF ( OpacNav || OpacNavBottom ) %]
|
|
<div class="span2">
|
|
<div id="navigation">
|
|
[% INCLUDE 'navigation.inc' %]
|
|
</div>
|
|
</div>
|
|
<div class="span10">
|
|
[% ELSE %]
|
|
<div class="span12">
|
|
[% END %]
|
|
<div id="userserialissues">
|
|
<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&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 %]" style="border-bottom:1px solid #EEE;">
|
|
<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&subscriptionid=[% subscription_LOO.subscriptionid | uri %]&referer=serial&biblionumber=[% subscription_LOO.biblionumber | uri %]" class="btn" 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" 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> <!-- / .span10/12 -->
|
|
</div> <!-- / .row-fluid -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' %]
|
|
[% BLOCK jsinclude %][% END %]
|