Bugzilla – Attachment 12829 Details for
Bug 8923
Add ids to repeated pagination menus to allow for CSS customization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8923 - Add ids to repeated pagination menus to allow for CSS customization
Bug-8923---Add-ids-to-repeated-pagination-menus-to.patch (text/plain), 4.84 KB, created by
Owen Leonard
on 2012-10-15 17:16:09 UTC
(
hide
)
Description:
Bug 8923 - Add ids to repeated pagination menus to allow for CSS customization
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-10-15 17:16:09 UTC
Size:
4.84 KB
patch
obsolete
>From 91bd121cc4785ab4cefdcc2ab66c02fef98027de Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 15 Oct 2012 13:07:06 -0400 >Subject: [PATCH] Bug 8923 - Add ids to repeated pagination menus to allow for > CSS customization >Content-Type: text/plain; charset="utf-8" > >This patch adds ids to each pagination menu on the OPAC search >results page so that they can be customized via CSS or JavaScript. > >To test, modify OpacUserCSS to hide ids "top-pages" and "bottom-pages" >and confirm that they are hidden. > >Also fixed is an unescaped ampersand introduced by Bug 8209. >--- > koha-tmpl/opac-tmpl/prog/en/css/opac.css | 4 ++++ > .../opac-tmpl/prog/en/modules/opac-results.tt | 6 +++--- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 4 ++-- > 3 files changed, 9 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >index 92f8b02..4211029 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css >+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >@@ -2719,6 +2719,10 @@ ul.ui-tabs-nav li { > color: #990033; > } > >+#top-pages { >+ margin: 0 0 0.5em; >+} >+ > /* jQuery UI Datepicker */ > .ui-datepicker table {width: 100%; font-size: .9em; border : 0; border-collapse: collapse; margin:0 0 .4em; } > .ui-datepicker th { background : transparent none; padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >index a3c09e2..fee24e9 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt >@@ -286,9 +286,9 @@ $(document).ready(function(){ > <div class="yui-b"> > <div id="userresults" class="container"> > [% IF ( DidYouMean ) %] >- <div id='didyoumean'>Not what you expected? Check for <a href='/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring | uri %]'>suggestions</a></div> >+ <div id='didyoumean'>Not what you expected? Check for <a href='/cgi-bin/koha/svc/suggestion?render=standalone&q=[% querystring | uri %]'>suggestions</a></div> > [% END %] >- [% INCLUDE 'page-numbers.inc' %]<br /> >+ <div id="top-pages">[% INCLUDE 'page-numbers.inc' %]</div> > [% IF ( koha_spsuggest ) %] > Did you mean: > <ul style="list-style: none;"> >@@ -654,7 +654,7 @@ $(document).ready(function(){ > </form> > </div> > [% END %] >- [% INCLUDE 'page-numbers.inc' %] >+ <div id="bottom-pages">[% INCLUDE 'page-numbers.inc' %]</div> > > [% ELSE %] > [% END %] >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index 4f0acd3..2add1fa 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -536,12 +536,12 @@ > <xsl:when test="$leader19='a'"><img src="/opac-tmpl/lib/famfamfam/silk/book_link.png" alt="book" title="book" class="materialtype"/> Set</xsl:when> > <xsl:when test="$leader6='a'"> > <xsl:choose> >- <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/opac-tmpl/lib/famfamfam/silk/book.png" alt="book" title="book" class="materialtype"/> Book</xsl:when> >+ <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/opac-tmpl/lib/famfamfam/silk/book.png" alt="book" title="book" class="materialtype" /> Book</xsl:when> > <xsl:when test="$leader7='i' or $leader7='s'"><img src="/opac-tmpl/lib/famfamfam/silk/newspaper.png" alt="serial" title="serial" class="materialtype"/> Continuing Resource</xsl:when> > <xsl:when test="$leader7='a' or $leader7='b'"><img src="/opac-tmpl/lib/famfamfam/silk/book_open.png" alt="article" title="article" class="materialtype"/> Article</xsl:when> > </xsl:choose> > </xsl:when> >- <xsl:when test="$leader6='t'"><img src="/opac-tmpl/lib/famfamfam/silk/book.png" alt="book" title="book" class="materialtype"/> Book</xsl:when> >+ <xsl:when test="$leader6='t'"><img src="/opac-tmpl/lib/famfamfam/silk/book.png" alt="book" title="book" class="materialtype" /> Book</xsl:when> > <xsl:when test="$leader6='o'"><img src="/opac-tmpl/lib/famfamfam/silk/report_disk.png" alt="kit" title="kit" class="materialtype"/> Kit</xsl:when> > <xsl:when test="$leader6='p'"><img src="/opac-tmpl/lib/famfamfam/silk/report_disk.png" alt="mixed materials" title="mixed materials" class="materialtype"/>Mixed Materials</xsl:when> > <xsl:when test="$leader6='m'"><img src="/opac-tmpl/lib/famfamfam/silk/computer_link.png" alt="computer file" title="computer file" class="materialtype"/> Computer File</xsl:when> >-- >1.7.9.5
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 8923
:
12829
|
12830
|
12861