Bugzilla – Attachment 98778 Details for
Bug 7960
Choice to not show the text labels for item types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7960: Add class to item type descriptions so they can be hidden with CSS
Bug-7960-Add-class-to-item-type-descriptions-so-th.patch (text/plain), 19.28 KB, created by
Aleisha Amohia
on 2020-02-12 20:51:26 UTC
(
hide
)
Description:
Bug 7960: Add class to item type descriptions so they can be hidden with CSS
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2020-02-12 20:51:26 UTC
Size:
19.28 KB
patch
obsolete
>From 77cf2bcafaa7582f2f9ee695371eec56e69ecdfa Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Sun, 1 Jul 2018 23:33:07 +0000 >Subject: [PATCH] Bug 7960: Add class to item type descriptions so they can be > hidden with CSS > >This patch adds the class "itypetext" around item type descriptions so >they can easily be hidden with CSS. > >To test: >1. Navigate to the pages listed below to confirm that the text >descriptions do show. >2. Add >.itypetext { display:none; } >to IntranetUserCSS and OPACUserCSS system preferences and save. >3. Go back to the pages listed below and confirm that the text >descriptions DO NOT show. > >= STAFF CLIENT = > - catalogue/advsearch.tt > - catalogue/detail.tt > - catalogue/results.tt > - reserve/request.tt > - virtualshelves/shelves.tt >= OPAC = > - opac-advsearch.tt > - opac-detail.tt > - opac-readingrecord.tt > - opac-reserve.tt > - opac-results-grouped.tt > - opac-shelves.tt > - opac-user.tt > >Sponsored-by: Catalyst IT > >Signed-off-by: Charles Farmer <charles.farmer@inLibro.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 ++- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 8 ++++---- > koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 +- > 12 files changed, 19 insertions(+), 18 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >index 33ec524..d679525 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >@@ -143,7 +143,7 @@ > <tr> > [% FOREACH itemtypeloo IN advsearchloo.code_loop %] > <td><input type="checkbox" id="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]" name="limit" value="mc-[% itemtypeloo.ccl | html %]:[% itemtypeloo.code | html %]"/><label for="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]">[% UNLESS ( noItemTypeImages ) %][% IF ( itemtypeloo.imageurl ) %]<img src="[% itemtypeloo.imageurl | html %]" alt="[% itemtypeloo.description | html %]" />[% END %] [% END %] >- [% itemtypeloo.description | html %]</label></td> >+ <span class="itypetext">[% itemtypeloo.description | html %]<span></label></td> > [% IF ( loop.last ) %]</tr>[% ELSE %][% UNLESS ( loop.count % 5 ) %]</tr><tr>[% END %][% END %] > [% END %] > </table> >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 05a6cb5..c2ace12 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -310,6 +310,7 @@ Note that permanent location is a code, and location may be an authval. > [% END %] > [% END %] > </span> >+ <span class="itypetext">[% item.translated_description | html %]</span> > </td> > [% END %] > <td class="status"> >@@ -695,7 +696,7 @@ Note that permanent location is a code, and location may be an authval. > <div id="editions"><h4>Editions</h4> > <table> > [% FOREACH XISBN IN XISBNS %]<tr>[% IF ( AmazonCoverImages ) %]<td><a href="http://www.amazon.com/gp/reader/[% XISBN.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"><img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" /></a></td>[% END %] >-[% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %][% XISBN.description | html %][% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %] >+[% UNLESS ( item_level_itypes ) %]<td>[% IF ( noItemTypeImages ) %]<span class="itypetext">[% XISBN.description | html %]</span>[% ELSE %]<img src="[% XISBN.imageurl | html %]" alt="[% XISBN.description | html %]" title="[% XISBN.description | html %]">[% END %]</td>[% END %] > <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a> by [% XISBN.author | html %] ©[% XISBN.copyrightdate | html %] > [% IF ( XISBN.publishercode ) %] > [% XISBN.publishercode | html %] [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %] [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear | html %][% END %] [% IF ( XISBN.editionstatement ) %][% XISBN.editionstatement | html %][% END %] [% IF ( XISBN.editionresponsibility ) %][% XISBN.editionresponsibility | html %][% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index e618d73..cd23ee7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -434,7 +434,7 @@ > [% IF !noItemTypeImages && SEARCH_RESULT.imageurl %] > <img src="[% SEARCH_RESULT.imageurl | html %]" alt="[% SEARCH_RESULT.description | html %]" /> > [% END %] >- [% SEARCH_RESULT.description | html %] >+ <span class="itypetext">[% SEARCH_RESULT.description | html %]</span> > </div> > [% END %] > >@@ -522,7 +522,7 @@ > [% END %] > ([% available_items_loo.count | html %]) > [% IF item_level_itypes && available_items_loo.description %] >- <br/>[% available_items_loo.description | html %] >+ <span class="itypetext"><br>[% available_items_loo.description | html %]</span> > [% END %] > </li> > [% END # /FOREACH available_items_loo %] >@@ -550,7 +550,7 @@ > [% END %] > ([% onloan_items_loo.count | html %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue | html %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %] > [% IF item_level_itypes && onloan_items_loo.description %] >- <br/>[% onloan_items_loo.description | html %] >+ <span class="itypetext"><br>[% onloan_items_loo.description | html %]</span> > [% END %] > </li> > [% END # /FOREACH onloan_items_loo %] >@@ -596,7 +596,7 @@ > [% END %] > ([% other_items_loo.count | html %]) > [% IF item_level_itypes && other_items_loo.description %] >- <br/>[% other_items_loo.description | html %] >+ <span class="itypetext"><br>[% other_items_loo.description | html %]</span> > [% END %] > </li> > [% END # /FOREACH other_items_loo %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index fede00d..902e7c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -599,7 +599,7 @@ > [% UNLESS ( noItemTypeImages ) %] > [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl | html %]" alt="" /> <br /> [% END %] > [% END %] >- [% itemloo.itypename | html %] >+ <span class="itypetext">[% itemloo.itypename | html %]</span> > </td> > [% END %] > <td> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index 72420dd..85d3108 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -203,7 +203,7 @@ > </td> > [% END %] > [% UNLESS ( item_level_itypes ) %]<td> >- [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />[% END %][% itemsloo.description | html %] >+ [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />[% END %]<span class="itypetext">[% itemsloo.description | html %]</span> > </td>[% END %] > <td> > [% IF ( itemsloo.XSLTBloc ) %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index 6248b36..dea3524 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -154,7 +154,7 @@ > [% END %] > > [% END %] >- [% itemtypeloo.description | html %] >+ <span class="itypetext">[% itemtypeloo.description | html %]</span> > </label> > </div> > [% IF ( loop.last ) %]</div>[% ELSE %][% UNLESS ( loop.count % 4 ) %]</div><div class="row-fluid">[% END %][% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 9ab7a10..bc21e48 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -333,7 +333,7 @@ > [% IF ( imgeurl ) %] > <img src="[% imageurl | html %]" alt="" /> > [% END %] >- <span class="results_summary itemtype"><span class="label">Item type: </span> >+ <span class="results_summary itemtype itypetext"><span class="label">Item type: </span> > [% IF ( description ) %] > [% description | html %] > [% ELSE %] >@@ -1256,7 +1256,7 @@ > <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" /> > [% END %] > [% END %] >- [% ITEM_RESULT.description | html %] >+ <span class="itypetext">[% ITEM_RESULT.description | html %]</span> > </td> > [% END %] > [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >index 238b2e5..6e2f073 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >@@ -171,8 +171,8 @@ > <img src="[% issue.imageurl | html %]" alt="" /> > [% END %] > [% END %] >- <span class="tdlabel">Item type:</span> >- [% issue.translated_description | html %]</td> >+ <span class="itypetext"><span class="tdlabel">Item type:</span> >+ [% issue.translated_description | html %]</span></td> > <td> > <span class="tdlabel">Call number:</span> > [% issue.itemcallnumber | html %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >index 6932d49..067faa6 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt >@@ -203,7 +203,7 @@ > <li class="itype"> > <span class="label">Item type: </span> > [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl | html %]" alt="" />[% END %] >- [% bibitemloo.translated_description | html %] >+ <span class="itypetext">[% bibitemloo.translated_description | html %]</span> > </li> > [% END %] > >@@ -369,7 +369,7 @@ > <img src="[% itemLoo.imageurl | html %]" alt="" /> > [% END %] > [% END %] >- [% itemLoo.translated_description | html %] >+ <span class="itypetext">[% itemLoo.translated_description | html %]</span> > </td> > [% END %] > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >index 1001aab..47bbee9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt >@@ -172,7 +172,7 @@ > <img src="[% GROUP_RESULT.imageurl | html %]" title="[% GROUP_RESULT.description | html %]" /> > [% END %] > [% END %] >- [% GROUP_RESULT.description | html %] >+ <span class="itypetext">[% GROUP_RESULT.description | html %]</span> > [% END %] > </td> > <td> >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 424ae63..d24be11 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -317,7 +317,7 @@ > [% UNLESS ( noItemTypeImages ) %] > <img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" /> > [% END %] >- [% itemsloo.description | html %] >+ <span class="itypetext">[% itemsloo.description | html %]</span> > </td> > [% END %] > <td> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index 879867a..51e4d88 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -280,7 +280,7 @@ > <span class="tdlabel">Item type:</span> > [% IF ( ISSUE.imageurl ) %] > <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" /> >- [% END %] [% ISSUE.description | html %] >+ [% END %] <span class="itypetext">[% ISSUE.description | html %]</span> > </td> > [% END %] > [% IF ( show_barcode ) %] >-- >2.1.4
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 7960
:
9189
|
62344
|
62807
|
62932
|
62933
|
76608
|
83853
|
84219
|
98778
|
137760
|
140217
|
140237
|
141284
|
141286