From 9bb163f311de2670cf8bd4982617678607abb51b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 27 Jan 2023 18:53:39 +0000 Subject: [PATCH] Bug 26765: Make author span a clickable link on OPAC results list This patch follows the markup of the staff interface catalog results XSLT to make authors in OPAC search results clickable. The patch also makes some minor CSS changes so that title and author links are not too crowded together. To test, apply the patch and rebuild the OPAC CSS. - Perform a catalog search in the OPAC which will return multiple results. - In the search results, each author in each search result should be a separate clickable link. - The margins around the result title and authors should be comfortable. - Confirm that each link takes you to the correct author search. --- .../opac-tmpl/bootstrap/css/src/opac.scss | 6 + .../en/xslt/MARC21slim2OPACResults.xsl | 202 +++++++++--------- 2 files changed, 112 insertions(+), 96 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 8af3afa2ed..a927bff544 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -87,6 +87,7 @@ a { display: block; font-size: 108%; font-weight: bold; + margin-bottom: .3rem; } &.login-link { @@ -329,6 +330,11 @@ th { } } +.byAuthor { + display: inline-block; + margin: .2rem .2rem .2rem 0; +} + #members { p { color: #727272; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index bccaaeec6b..abcdffc8d0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -517,97 +517,121 @@ - by + by -- 2.20.1