From ee5885a17a5e5a5e77a0e7efab7c4feb090e8b53 Mon Sep 17 00:00:00 2001 From: Te Rauhina Jackson Date: Thu, 18 Jan 2018 02:20:11 +0000 Subject: [PATCH] Bug 16427: Add direct link to authority records from staff detail view (MARC21 subjects) I added a magnigying glass icon in the staff detail view that links to the authority records. Test Plan: 1) On the Koha staff page, create a new authority. The type of authority will be: Topical Term. 2) When creating authority, in tab 1 under -HEADING--TOPICAL TERM enter the topical term or geographic name entry element and then save the new authority e.g. science. 3) In circulation, search the catalog for a random book. Click the title of the book and you will be taken to the book details. 4) Edit the record and in tab 6, scroll down the - SUBJECT ADDED ENTRY--TOPICAL TERM and repeat this tag (the icon next to the title). 5) Edit the Topical term or geographic name entry element by clicking the button on the right of the bar. 6) In the Search main heading ($a only) enter your topical term e.g. science. 7) Press search, and then in the table that pops up, click 'choose'. 8) Save your edits and the new topical term will be in the 'Subject(s)' list of the book details. 9) Notice that there is no magnifying glass icon. 10) Apply this patch 11) Notice that there is now a magnifying glass icon next to the topical term. 12) Click on the magnifying glass and it will take you directly to the authorities records Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index b699341bc4..cf39ec4bf0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -40,6 +40,7 @@ " + @@ -696,11 +697,13 @@ + /cgi-bin/koha/catalogue/search.pl?q=su: + @@ -711,6 +714,20 @@ + + + + + /cgi-bin/koha/authorities/detail.pl?authid= + + /intranet-tmpl/prog/img/filefind.png + + 15 + 15 + + + + | -- 2.39.5