From 5a0d88b6b429715536c275cdb4e10834a97eb5cb 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 Signed-off-by: Katrin Fischer --- .../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 53c5be864b..9e7a16a2bb 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