Bugzilla – Attachment 27157 Details for
Bug 12093
Add CSS classes to item statuses in detail view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add css classes to item statuses in detail view
0001-Allow-styling-item-statuses-more-precisely.patch (text/plain), 5.58 KB, created by
paxed
on 2014-04-16 08:16:32 UTC
(
hide
)
Description:
Add css classes to item statuses in detail view
Filename:
MIME Type:
Creator:
paxed
Created:
2014-04-16 08:16:32 UTC
Size:
5.58 KB
patch
obsolete
>From ae9e0cb08070dd3c237ea31dcaab70a03fd222ef Mon Sep 17 00:00:00 2001 >From: Pasi Kallinen <pasi.kallinen@pttk.fi> >Date: Wed, 16 Apr 2014 09:39:31 +0300 >Subject: [PATCH] Allow styling item statuses more precisely. > >--- > .../prog/en/modules/catalogue/detail.tt | 32 +++++++++++++--------- > 1 file changed, 19 insertions(+), 13 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index d09a3c4..4da6374 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -570,16 +570,19 @@ function verify_images() { > [% UNLESS ( item.NOTSAMEBRANCH ) %] > to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.borrowernumber %]"> > [% IF ( item.hidepatronname ) %] >- [% item.cardnumber %] >+ <span class="cardnumber">[% item.cardnumber %]</span> > [% ELSE %] >- [% item.firstname %] [% item.surname %] >+ <span class="firstname">[% item.firstname %]</span> <span class="surname">[% item.surname %]</span> > [% END %] > </a> > [% END %] >- : due [% item.datedue %] >+ : due [% '<span class="date">' _ item.datedue _ '</span>' %] > </span> >- [% ELSIF ( item.transfertwhen ) %] >- <span class="intransit">In transit from [% item.transfertfrom %] to [% item.transfertto %] since [% item.transfertwhen %]</span> >+ [% ELSIF ( item.transfertwhen ); >+ tmp_transfertfrom = '<span class="fromlib">' _ item.transfertfrom _ '</span>'; >+ tmp_transfertto = '<span class="tolib">' _ item.transfertto _ '</span>'; >+ tmp_transfertwhen = '<span class="when">' _ item.transfertwhen _ '</span>'; %] >+ <span class="intransit">In transit from [% tmp_transfertfrom %] to [% tmp_transfertto %] since [% tmp_transfertwhen %]</span> > [% END %] > > [% IF ( item.itemlost ) %] >@@ -611,13 +614,15 @@ function verify_images() { > [% END %] > > [% IF ( item.itemnotforloan ) %] >- Not for loan >+ <span class="notforloan">Not for loan > [% IF ( item.notforloanvalue ) %] >- ([% item.notforloanvalue %]) >+ <span class="reason">([% item.notforloanvalue %])</span> > [% END %] >+ </span> > [% END %] > > [% IF ( item.reservedate ) %] >+ <span class="reserved"> > [% IF ( item.waitingdate ) %] > Waiting > [% ELSE %] >@@ -626,26 +631,27 @@ function verify_images() { > [% IF ( canreservefromotherbranches ) %] > for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.ReservedForBorrowernumber %]"> > [% IF ( item.hidepatronname ) %] >- [% item.Reservedcardnumber %] >+ <span class="cardnumber">[% item.Reservedcardnumber %]</span> > [% ELSE %] >- [% item.ReservedForFirstname %] [% item.ReservedForSurname %] >+ <span class="firstname">[% item.ReservedForFirstname %]</span> <span class="surname">[% item.ReservedForSurname %]</span> > [% END %] > </a> > [% END %] > [% IF ( item.waitingdate ) %] > at[% ELSE %]for delivery at > [% END %] >- [% item.ExpectedAtLibrary %] >+ <span class="extpectlib">[% item.ExpectedAtLibrary %]</span> > [% IF ( item.waitingdate ) %] >- since [% item.waitingdate | $KohaDates %] >+ since <span class="waitingdate">[% item.waitingdate | $KohaDates %]</span> > [% ELSE %] > [% IF ( item.reservedate ) %] >- (placed [% item.reservedate %]) >+ (placed <span class="reservedate">[% item.reservedate %])</span> > [% END %] > [% END %] >+ </span> > [% END %] > [% UNLESS ( item.itemnotforloan or item.onloan or item.itemlost or item.withdrawn or item.damaged or item.transfertwhen or item.reservedate ) %] >- Available >+ <span class="available">Available</span> > [% END %] > > [% IF ( item.restricted ) %] >-- >1.8.3.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12093
:
27157
|
104629
|
105299
|
105859
|
105860