From 04f172d3442efc9d1bdbd06df8df6d741a617974 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 20 Mar 2023 16:53:15 +0000 Subject: [PATCH] Bug 33281: Improve detail auth links and add to marc preview This patch adds atuh links tot he marc preview, and makes detial auth links open in a new tab/window and consolidates some code To test: 1 - View a record linked to authorities in staff client 2 - Note links have no hover text, and open in same window 3 - Apply patch 4 - Restart and reload 5 - Note links now have a hint 6 - Note they open in new window 7 - View marc preview and note there are similar links Signed-off-by: Michaela Sieber Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../en/xslt/MARC21slim2intranetDetail.xsl | 48 +++++++++---------- .../intranet-tmpl/prog/en/xslt/plainMARC.xsl | 16 ++++++- 2 files changed, 39 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 78f2043b57..736ee197a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -686,14 +686,9 @@ - - - /cgi-bin/koha/authorities/detail.pl?authid= - - fa fa-search - View authority record - - + + + @@ -735,15 +730,11 @@ + - - - /cgi-bin/koha/authorities/detail.pl?authid= - - fa fa-search - View authority record - - + + + | @@ -1745,14 +1736,9 @@ - - - /cgi-bin/koha/authorities/detail.pl?authid= - - fa fa-search - View authority record - - + + + | @@ -1762,6 +1748,20 @@ + + + + + /cgi-bin/koha/authorities/detail.pl?authid= + View authority record + _blank + + fa fa-search + View authority record + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/plainMARC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/plainMARC.xsl index 48af81c38d..f2db0c47c1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/plainMARC.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/plainMARC.xsl @@ -51,7 +51,21 @@ - _ + _ + + + + + /cgi-bin/koha/authorities/detail.pl?authid= + View authority record + _blank + + + + + + +
-- 2.39.5