From cd4f4485d737bda4dd7088303044590b79c608a2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 4 Feb 2021 17:40:24 +0000 Subject: [PATCH] Bug 27628: Fix minor HTML markup errors in OPAC search results templates This patch makes a couple of minor corrections to templates related to OPAC search results: An errant quote, and invalidly repeating ids. The #login4tags id is changed to a class, and CSS related to this id (which was not used) is removed. For consistency, the id is changed to a class on the detail page as well. 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). - Perform a search in the OPAC. Confirm that the "Log in to add tags" link still looks correct at various browser widths. - Confirm that it works to trigger the login modal. - Validate the source of the page. There should be no errors. - View the detail page for a bibliographic record. - The "Log in to add tags" link should look correct and work correctly. Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 15c3be55afbcff1d5f149f53273bfb25009582a7) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss | 7 +------ .../opac-tmpl/bootstrap/en/includes/title-actions-menu.inc | 6 +++++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss index ed2ab69e4b..e6676fd76b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss @@ -120,8 +120,7 @@ } } - a, - #login4tags { + a { @include border-radius-all( 4px ); background-color: #F2F2EF; border: 1px solid #DDD; @@ -136,10 +135,6 @@ display: block; font-weight: bold; } - - #login4tags { - margin-right: 1em; - } } #opac-main-search { diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc index 124c95da4a..0b58145c49 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc @@ -36,7 +36,11 @@ Tag status here. [% ELSE %] - Log in to add tags + + + Log in to add tags + + [% END # IF loggedinusername %] [% END # if TagsInputEnabled %] 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 3a5fa8bcab..3fa7e94c15 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -349,7 +349,7 @@ [% IF ( loggedinusername ) %] Add tag(s) [% ELSE %] - + [% IF Koha.Preference('casAuthentication') %] [%# CAS authentication is too complicated for modal window %] Log in to add tags. -- 2.39.5