Bugzilla – Attachment 18065 Details for
Bug 10197
Add CSS classes to patron info list in patron account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10197: Add classes to patron info list
Bug-10197-Add-classes-to-patron-info-list.patch (text/plain), 7.30 KB, created by
Nicole C. Engard
on 2013-05-10 13:51:39 UTC
(
hide
)
Description:
Bug 10197: Add classes to patron info list
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2013-05-10 13:51:39 UTC
Size:
7.30 KB
patch
obsolete
>From 6a4e2afa1489966aefee7b54dac9ff43870711b8 Mon Sep 17 00:00:00 2001 >From: Nicole C. Engard <nengard@bywatersolutions.com> >Date: Fri, 10 May 2013 09:48:36 -0400 >Subject: [PATCH] Bug 10197: Add classes to patron info list > >This patch adds classes to the patron info found on the >top left of the circulation and patron related pages to >allow for easy styling of the information displayed. > >To test: > >* Apply patch >* View a patron detail page and view the source on the list to the > left to see the styles >* View a checkout screen and view the source on the list to the > left with patron info to see the styles >* You could also try to style things by customizing your CSS >--- > .../intranet-tmpl/prog/en/includes/circ-menu.inc | 16 ++++++++-------- > .../intranet-tmpl/prog/en/includes/circ-menu.tt | 18 +++++++++--------- > 2 files changed, 17 insertions(+), 17 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index fb283ec..bafa99e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -4,7 +4,7 @@ > <style type="tex/css">img { width: expression(this.width > 140 ? 140: true); > }</style> > <![endif]--> >-<ul> >+<ul class="patronbriefinfo"> > [% IF ( patronimages ) %] > [% IF ( picture ) %] > <li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=[% cardnumber | uri %]" id="patronimage" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li> >@@ -14,21 +14,21 @@ > [% END %] > [% IF ( address or address2 ) %] > [% IF ( address ) %] >- <li>[% address %]</li> >+ <li class="patronaddress1">[% address %]</li> > [% END %] > [% IF ( address2 ) %] >- <li>[% address2 %]</li> >+ <li class="patronaddress2">[% address2 %]</li> > [% END %] > [% ELSE %] > <li><span class="empty" id="noadressstored">No address stored.</span></li> > [% END %] >- <li>[% IF ( city ) %] >+ <li class="patroncity">[% IF ( city ) %] > [% city %][% IF ( state ) %], [% state %][% END %] > [% zipcode %][% IF ( country ) %], [% country %][% END %] > [% ELSE %] > <span class="empty" id="nocitystored">No city stored.</span> > [% END %]</li> >- <li>[% IF ( phone ) %] >+ <li class="patronphone">[% IF ( phone ) %] > [% phone %] > [% ELSE %] > [% IF ( mobile ) %] >@@ -53,12 +53,12 @@ > [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN extendedattributes %] > [% IF ( extendedattribute.display_checkout ) %] > [% IF ( extendedattribute.value ) %] >- <li>[% extendedattribute.description %] : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li> >+ <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li> > [% END %] > [% END %] > [% END %][% END %] >- <li>Category: [% categoryname %] ([% categorycode %])</li> >- <li>Home library: [% IF ( branchname ) %][% branchname %][% ELSE %][% branch %][% END %]</li> >+ <li class="patroncategory">Category: [% categoryname %] ([% categorycode %])</li> >+ <li class="patronlibrary">Home library: [% IF ( branchname ) %][% branchname %][% ELSE %][% branch %][% END %]</li> > </ul></div> > <div id="menu"> > <ul> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt >index abcdccd..6e32ccb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.tt >@@ -6,32 +6,32 @@ in the global namespace %] > <style type="tex/css">img { width: expression(this.width > 140 ? 140: true); > }</style> > <![endif]--> >-<ul> >+<ul class="patronbriefinfo"> > [% IF ( patronimages ) %] > [% IF borrower.has_picture %] > <li><img src="/cgi-bin/koha/members/patronimage.pl?crdnum=[% borrower.cardnumber %]" id="patronimage" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></li> > [% ELSE %] >-<li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li> >+<li id="patronbasics"><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li> > [% END %] > [% END %] > [% IF ( borrower.address or borrower.address2 ) %] > [% IF ( borrower.address ) %] >- <li>[% borrower.address %]</li> >+ <li class="patronaddress1">[% borrower.address %]</li> > [% END %] > [% IF ( borrower.address2 ) %] >- <li>[% borrower.address2 %]</li> >+ <li class="patronaddress2">[% borrower.address2 %]</li> > [% END %] > [% ELSE %] > <li><span class="empty" id="noaddressstored">No address stored.</span></li> > [% END %] >- <li> >+ <li class="patroncity"> > [% IF borrower.city %] > [% borrower.city %][% IF borrower.state %], [% borrower.state %][% END %] > [% borrower.zipcode %][% IF ( borrower.country ) %], [% borrower.country %][% END %] > [% ELSE %] > <span class="empty" id="nocitystored">No city stored.</span> > [% END %]</li> >- <li>[% IF borrower.phone %] >+ <li class="patronphone">[% IF borrower.phone %] > [% borrower.phone %] > [% ELSE %] > [% IF borrower.mobile %] >@@ -56,12 +56,12 @@ in the global namespace %] > [% IF ( ExtendedPatronAttributes ) %][% FOREACH extendedattribute IN borrower.extendedattributes %] > [% IF ( extendedattribute.display_checkout ) %] > [% IF ( extendedattribute.value ) %] >- <li>[% extendedattribute.description %] : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li> >+ <li class="patronattribute"><span class="patronattributelabel">[% extendedattribute.description %]</span> : [% IF ( extendedattribute.value_description ) %][% extendedattribute.value_description %][% ELSE %][% extendedattribute.value %][% END %]</li> > [% END %] > [% END %] > [% END %][% END %] >- <li>Category: [% borrower.description %] ([% borrower.categorycode %])</li> >- <li>Home library: [% IF ( borrower.branchname ) %][% borrower.branchname %][% ELSE %][% borrower.branch %][% END %]</li> >+ <li class="patroncategory">Category: [% borrower.description %] ([% borrower.categorycode %])</li> >+ <li class="patronlibrary">Home library: [% IF ( borrower.branchname ) %][% borrower.branchname %][% ELSE %][% borrower.branch %][% END %]</li> > </ul></div> > <div id="menu"> > <ul> >-- >1.7.2.3
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 10197
:
17956
|
18065
|
18067
|
19685
|
19841