Bugzilla – Attachment 87244 Details for
Bug 22568
Replace RSS icon in the OPAC with Font Awesome
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22568: Replace RSS icon in the OPAC with Font Awesome
Bug-22568-Replace-RSS-icon-in-the-OPAC-with-Font-A.patch (text/plain), 13.21 KB, created by
Katrin Fischer
on 2019-03-31 17:53:45 UTC
(
hide
)
Description:
Bug 22568: Replace RSS icon in the OPAC with Font Awesome
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-03-31 17:53:45 UTC
Size:
13.21 KB
patch
obsolete
>From 4c1be78d8485ce599abf5e3fe0cbea4e5a4aa58c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 22 Mar 2019 16:43:51 +0000 >Subject: [PATCH] Bug 22568: Replace RSS icon in the OPAC with Font Awesome > >This patch removes the RSS icon image (feed-icon-16x16.png) from the >OPAC and replaces it with Font Awesome icons styled to match. > >To test, apply the patch and regenerate the OPAC CSS. View the >following pages, confirming that the RSS icon looks correct: > > - OPAC home page (RSS news icon) > - Search results page (Subscribe to search) > - Recent comments > - Search history > - Lists -> View list > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 25 +++++++++++++++++++++ > .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 3 ++- > .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 9 ++++++-- > .../bootstrap/en/modules/opac-search-history.tt | 16 +++++++++++-- > .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- > .../bootstrap/en/modules/opac-showreviews.tt | 2 +- > .../opac-tmpl/bootstrap/images/feed-icon-16x16.png | Bin 764 -> 0 bytes > 7 files changed, 50 insertions(+), 7 deletions(-) > delete mode 100644 koha-tmpl/opac-tmpl/bootstrap/images/feed-icon-16x16.png > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >index 0b2628303d..a4c135f84c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >@@ -540,6 +540,31 @@ th { > padding: 4px 8px; > } > >+#rssnews-container { >+ font-size: 90%; >+ padding: .5em 0; >+} >+ >+.rsssearchlink { >+ &:hover { >+ text-decoration: none; >+ } >+} >+ >+.fa { >+ &.fa-rss { >+ background: linear-gradient(135deg, #DA5E2A 0%, #FA9C39 50%, #DA5E2A 100%); >+ border-radius: 3px; >+ color: #FFF; >+ padding: 2px 3px; >+ text-shadow: 1px 0 1px rgba(0, 0, 0, .25); >+ >+ &.rsssearchicon { >+ font-size: 90%; >+ } >+ } >+} >+ > #opacheader { > background-color: #fcf9fc; > } >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >index 82b02409e1..e02635fc41 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -90,7 +90,7 @@ > > <div id="rssnews-container"> > <!-- Logged in users have a branch code or it could be explicitly set --> >- <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode | uri %]"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png"></a> >+ <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-news-rss.pl?branchcode=[% branchcode | uri %]"><i class="fa fa-rss"></i> > [% IF Branches.all.size == 1 %] > [% IF branchcode %] > RSS feed for [% Branches.GetName( branchcode ) | html %] library news. >@@ -104,6 +104,7 @@ > RSS feed for system-wide library news. > [% END %] > [% END %] >+ </a> > </div> > > [% END %] <!-- single news item --> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 501ceb2f03..2e233f1d1a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -55,7 +55,10 @@ > <strong>No results found!</strong> > <p> > [% IF ( searchdesc ) %] >- No results found for that in [% LibraryName | html %] catalog. <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss2" class="rsssearchlink noprint"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" border="0" class="rsssearchicon"/></a> >+ No results found for that in [% LibraryName | html %] catalog. >+ <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss2" class="rsssearchlink noprint"> >+ <i class="fa fa-rss rsssearchicon" title="Subscribe to this search"></i> >+ </a> > [% ELSE %] > You did not specify any search criteria. > [% END %] >@@ -99,7 +102,9 @@ > [% END %] > ). > [% END %] >- <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&count=[% countrss | uri %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink noprint"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a> >+ <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss2" class="rsssearchlink noprint"> >+ <i class="fa fa-rss rsssearchicon" title="Subscribe to this search"></i> >+ </a> > [% END # / IF total %] > </p> > [% END # / IF searchdesc %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt >index ff9f72d5cd..098f532a2a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt >@@ -71,7 +71,12 @@ > <tr> > <td><input type="checkbox" name="id" value="[% s.id | html %]" /></td> > <td><span title="[% s.time | html %]">[% s.time |$KohaDates with_hours => 1 %]</span></td> >- <td><a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&[% s.query_cgi | $raw %]&count=[% countrss | uri %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a> <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td> >+ <td> >+ <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&[% s.query_cgi | $raw %]&count=[% countrss | uri %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink"> >+ <i class="fa fa-rss rsssearchicon" title="Subscribe to this search"></i> >+ </a> >+ <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a> >+ </td> > <td>[% s.total | html %]</td> > </tr> > [% END %] >@@ -111,7 +116,14 @@ > <tr> > <td><input type="checkbox" name="id" value="[% s.id | html %]" /></td> > <td><span title="[% s.time | html %]">[% s.time |$KohaDates with_hours => 1 %]</span></td> >- <td><a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&[% s.query_cgi | $raw %]&count=[% countrss | uri %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this search" title="Subscribe to this search" class="rsssearchicon"/></a> <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td> >+ <td> >+ <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&[% s.query_cgi | $raw %]&count=[% countrss | uri %]&sort_by=acqdate_dsc&format=rss2" class="rsssearchlink"> >+ <i class="fa fa-rss rsssearchicon" title="Subscribe to this search"></i> >+ </a> >+ <a href="/cgi-bin/koha/opac-search.pl?[% s.query_cgi | $raw %]"> >+ [% s.query_desc | html %] >+ </a> >+ </td> > <td>[% s.total | html %]</td> > </tr> > [% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index 3f97aa661a..10d452da36 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -154,7 +154,7 @@ > <h3> > [% shelf.shelfname | html %] > <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-shelves.pl?rss=1&op=view&shelfnumber=[% shelf.shelfnumber | uri %]" class="rss-list-link noprint"> >- <img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to this list" title="Subscribe to this list" border="0" class="rsssearchicon"/> >+ <i class="fa fa-rss rsssearchicon" title="Subscribe to this list"></i> > </a> > </h3> > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >index 80d55effde..e510e1aab4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >@@ -29,7 +29,7 @@ > <div class="span12"> > [% END %] > <div id="showreviews" class="searchresults maincontent"> >- <h3>Recent comments <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl?format=rss" class="rsssearchlink"><img src="[% interface | html %]/[% theme | html %]/images/feed-icon-16x16.png" alt="Subscribe to recent comments" title="Subscribe to recent comments" border="0" class="rsssearchicon"/></a></h3> >+ <h3>Recent comments <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl?format=rss" class="rsssearchlink"><i class="fa fa-rss rsssearchicon" title="Subscribe to recent comments"></i></a></h3> > <table class="table table-striped"> > [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] > [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/images/feed-icon-16x16.png b/koha-tmpl/opac-tmpl/bootstrap/images/feed-icon-16x16.png >deleted file mode 100644 >index 1679ab05b016ab3eb7556d6eaa869795bf457aa0..0000000000000000000000000000000000000000 >GIT binary patch >literal 0 >HcmV?d00001 > >literal 764 >zcmV<Y0t5YtP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV00004XF*Lt006JZ >zHwB960000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBU!j!8s8RCwBS >zlTAoeQ5c5bbMBoxqmDY6L&`*%X%MZPq+Iv|QBV;?n@A#a5wvV-6@)}lV2j9&5G`Bf >zCR>ycK`yFAWD;1ET2aX4PeS5VXXgH#(|69jGm_GU@1D8vz3+LxpJ8L?l8MS>?e&-y >z%WwuTdNIE7EdHio488!C7VH80_u>sxi4*Ze##>tjHyI4h^~p_yXBY;V7~x4qiDX^o >z$0suUd9_8Fo{vZ}h4R*ulmz%Q;}E~b|0~uMp2X6k2UB6Iq)2TF6^AaO_{f3{_rnnU >zi6Jm=Ws}%12#^$9)n`OF<jNfKuOGnu_!MG!7A#r`>)-{H^$f#o?Aj#uD5NjJvVCb8 >z-B>S$xnn=9j>}+Mn>CUD>NdR3&q`w7k;qeM0wu6^wW8|MOO&6!4=ddb{F#RP_&mh) >zh&C`ft^uj`lGt|w0<O@MfohV%Hnyh`Y0n^fb{IU_3_&;hQ-O(fxDSHIwOE-5AL|5i >zZXEfCr{Ip>g0yETI}Y>sAY^qD3eRt@_a%KM5W6LU^-*DM4)W^=yeGW@x-vP^51&;a >z_u{UmC~NE1Vr3#lv4n8W*3mnNoEQXe=!ExXK$Ebldhnf{$W4qw=54T8C6%^EPa`Y= >zTC8eULRQ}bw)+@7dl}CANBY)CbC<rc@NF#UMPn;b6bV?kVT2E7B^cTKl<u~hoz&mF >zx?W>DGr>2aaR?%ik}jX`KOnc%8hS}Ytd3$EobO|$Q5mVUPR@OK7nDP0&O#Q>d=_Sn >z1vYtQ@4be7bs6d9|5=jKsKSQnnh9Iz+9hH&apbr?VDvVzx4Bgj1I#v;5_PC`r3U$u >usA%IQS3%99X~E(!%1spbn*KZg6<`2SHB&n2#K$=R0000<MNUMnLSTZ_E?(aN > >-- >2.11.0
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 22568
:
86924
|
86977
| 87244