From 6fc66271e5b7245f71801e5d680edf1b9352217d 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. Signed-off-by: Barbara Johnson --- .../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 63434d3cbf..95b22a4ecf 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.30.2