Bugzilla – Attachment 90075 Details for
Bug 22950
Markup error in OPAC recent comment template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22950: Markup error in OPAC recent comment template
Bug-22950-Markup-error-in-OPAC-recent-comment-temp.patch (text/plain), 5.99 KB, created by
Maryse Simard
on 2019-05-24 17:52:31 UTC
(
hide
)
Description:
Bug 22950: Markup error in OPAC recent comment template
Filename:
MIME Type:
Creator:
Maryse Simard
Created:
2019-05-24 17:52:31 UTC
Size:
5.99 KB
patch
obsolete
>From be2ef553e68be47b319d0ba52ea659ebcfc89ea3 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 21 May 2019 15:04:33 +0000 >Subject: [PATCH] Bug 22950: Markup error in OPAC recent comment template > >This patch makes minor corrections to the template for the OPAC's >recent comments view. These corrections fix errors returned by the HTML >validator. > >The patch moves some inline CSS into a class in the global OPAC CSS. >Some minor reindentation has also been done, so use diff with the '-w' >flag. > >To reproduce the problem you should have the 'reviewson' system >preference turned on, and your system should have one or more >approved comments. View the "Recent comments" page in the OPAC. Run the >page through the W3C validation service: https://validator.w3.org. >Either by pasting in the URL for the search results (if web accessible) >or by viewing source, copying, and pasting into "Validate by Direct >Input." > >This patch addresses one specific error: > > - "CSS: font-color: Property font-color doesn't exist." > >To test, apply the patch and rebuild the OPAC CSS >(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). > >Try again to reproduce the validation errors. Those errors should no >longer be present. There should be no visible change to the page. > >Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> >--- > koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 5 +++ > .../bootstrap/en/modules/opac-showreviews.tt | 41 ++++++++++++---------- > 2 files changed, 27 insertions(+), 19 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >index e2c7ecd..29fc16c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss >@@ -2299,6 +2299,11 @@ input { > background-color: rgba( 239, 254, 213, .4 ); > } > } >+ >+ .commenter { >+ color: #666; >+ font-size: 85%; >+ } > } > > .commentline .avatar { >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 e510e1a..d705bc4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt >@@ -88,25 +88,28 @@ > [% FILTER html_break %] > [% review.review | html %] > [% END %] >- <span style="font-size:87%;font-color:#CCC;"> >- [% IF review.your_comment %] >- Added [% review.datereviewed | $KohaDates %] by you >- [% ELSE %] >- [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] >- Added [% review.datereviewed | $KohaDates %] by >- [% SWITCH ShowReviewer %] >- [% CASE 'full' %] >- [% review.borrtitle | html %] [% review.firstname | html %] [% review.surname | html %] >- [% CASE 'first' %] >- [% review.firstname | html %] >- [% CASE 'surname' %] >- [% review.surname | html %] >- [% CASE 'firstandinitial' %] >- [% review.firstname | html %] [% review.surname|truncate(2,'.') | html %] >- [% CASE 'username' %] >- [% review.userid | html %] >- [% END %] >- [% END %][% END %]</span></p> >+ <span class="commenter"> >+ [% IF review.your_comment %] >+ Added [% review.datereviewed | $KohaDates %] by you >+ [% ELSE %] >+ [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] >+ Added [% review.datereviewed | $KohaDates %] by >+ [% SWITCH ShowReviewer %] >+ [% CASE 'full' %] >+ [% review.borrtitle | html %] [% review.firstname | html %] [% review.surname | html %] >+ [% CASE 'first' %] >+ [% review.firstname | html %] >+ [% CASE 'surname' %] >+ [% review.surname | html %] >+ [% CASE 'firstandinitial' %] >+ [% review.firstname | html %] [% review.surname|truncate(2,'.') | html %] >+ [% CASE 'username' %] >+ [% review.userid | html %] >+ [% END %] >+ [% END %] >+ [% END %] >+ </span> >+ </p> > </td> > <td> > [% IF ( review.BiblioDefaultViewmarc ) %] >-- >2.7.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 22950
:
89945
|
90075
|
90129