Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt
Marc Véron 6246f2c700 Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch
This patch adds a branch sepecific class to all OPAC pages.

Example:
If not logged in, opac-main.pl displays:
<body ID="opac-main" class="branch-default" >
If logged in at branch FFL, it displays:
<body ID="opac-main" class="branch-FFL" >

If you log in, opac-user.pl should display
<body ID="opac-user" class="branch-FFL scrollto" >

To test:
1)
Apply patch.

2)
Add to syspref OPACUserCSS something highly visible, e.g. for branch FFL:
.branch-FFL {
background-color: yellow;
border: 10px solid red;
}

3)
Go to OPAC and login in with a user with home branch FFL

4)
Verify that colors change as appropriate.

5)
Log out. Verify that colors display as before or as defined in class branch-default in OPACUserCSS

6)
Display patch in patch diff view, verify that ids and classes in body tag are consistent with params bodyid and bodyclass in INCLUDE line

7)
Search for regressions

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

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-09-23 15:39:31 -03:00

161 lines
10 KiB
Text

[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Issues for a subscription
[% 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">&rsaquo;</span></li>
<li><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">Details for [% bibliotitle %]</a> <span class="divider">&rsaquo;</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&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 %]" style="border-bottom:1px solid #EEE;">
<h3>Subscription information for [% subscription_LOO.bibliotitle %]</h3>
<p>
The current subscription began on [% subscription_LOO.startdate %] 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 %] issues[% END %]
[% IF ( subscription_LOO.weeklength ) %][% subscription_LOO.weeklength %] weeks[% END %]
[% IF ( subscription_LOO.monthlength ) %][% subscription_LOO.monthlength %] months[% END %]
</p>
<p>The first subscription was started on [% subscription_LOO.histstartdate %]</p>
[% IF ( subscription_LOO.histenddate ) %]
<p>The subscription expired on [% subscription_LOO.histenddate %]</p>
[% END %]
<h4>[% subscription_LOO.branchname %]</h4>
[% IF ( subscription_LOO.notes ) %]
<p>[% subscription_LOO.notes FILTER html_line_break %]</p>
[% END %]
[% IF ( subscription_LOO.recievedlist ) %]
<h5>Available issues</h5>
<p>[% subscription_LOO.recievedlist %]</p>
[% END %]
[% IF ( subscription_LOO.missinglist ) %]
<h5>Unavailable issues</h5>
<p>[% subscription_LOO.missinglist %]</p>
[% END %]
[% IF ( subscription_LOO.opacnote ) %]
<h5>Issues summary</h5>
<p>
[% subscription_LOO.opacnote FILTER 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;externalid=[% subscription_LOO.subscriptionid %]&amp;alerttype=issue&amp;biblionumber=[% subscription_LOO.biblionumber %]" class="btn" title="Cancel email notification">
Cancel email notification
</a>
[% ELSE %]
<a href="opac-alert-subscribe.pl?externalid=[% subscription_LOO.subscriptionid %]&amp;alerttype=issue&amp;biblionumber=[% subscription_LOO.biblionumber %]" 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 %]