From 64b3ed74a842e0e8d9e10e90cfbb27f185c50ba2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 12 Jan 2022 16:29:27 +0000 Subject: [PATCH] Bug 28993: Switch magnifying class in staff detail pages to FA icon This patch modifies the staff interface's bibliographic detail XSL so that a Font Awesome is used instead of a magnifying glass image when listing authority subject headings. The patch also corrects two other places where the image is used so that the image can be removed. Some markup from authorities.detail.tt is removed because it appears to be unused (a copy and paste from catalogue/detail.tt). To test, apply the patch and rebuild the staff interface CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - To view the changes to the staff interface bibliographic detail page, locate a record which has at least one subject heading which is linked to a subject authority record. - The subject heading link should be followed by a magifying glass (Font Awesome) icon which links to the authority record's detail page. - View a similar change to the MARC detail page for the record. Confirm that the subject headings are followed by a link to the authority detail page. - Follow the authority search link to locate and view an authority record. The information on the authority detail page should be correct. --- .../prog/css/src/staff-global.scss | 7 +++++++ .../prog/en/modules/authorities/detail.tt | 8 -------- .../prog/en/modules/catalogue/MARCdetail.tt | 8 +++++--- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 16 ++++++---------- koha-tmpl/intranet-tmpl/prog/img/filefind.png | Bin 2479 -> 0 bytes 5 files changed, 18 insertions(+), 21 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/img/filefind.png diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index fa3421dee1..9f66a8fe9c 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -26,6 +26,13 @@ a { } } + &.authlink { + background-color: #e6f0f2; + border-radius: 5px; + display: inline-block; + padding: 2px 4px; + } + &.btn { &:link, &:visited { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt index 21ff0c23c9..679318ffa7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -106,14 +106,6 @@ [% subfiel.marc_value | html %] [% END %] - [% IF ( subfiel.link ) %] - - - - [% END %] - [% IF ( subfiel.authority ) %] - Auth - [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt index e2068693b1..f6be1b3d8f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt @@ -99,12 +99,14 @@ [% subfiel.short_desc | html %] [% IF ( subfiel.is_url ) %][% subfiel.marc_value | html %][% ELSE %][% subfiel.marc_value | html %][% END %] [% IF ( subfiel.link ) %] - - Search on [% subfiel.marc_value | html %] + + [% END %] [% IF ( subfiel.authority ) %] - Auth + + + [% END %]

[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 6983988867..7f14c298f6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -688,11 +688,9 @@ /cgi-bin/koha/authorities/detail.pl?authid= - - /intranet-tmpl/prog/img/filefind.png - - 15 - 15 + + fa fa-search + View authority record @@ -740,11 +738,9 @@ /cgi-bin/koha/authorities/detail.pl?authid= - - /intranet-tmpl/prog/img/filefind.png - - 15 - 15 + + fa fa-search + View authority record diff --git a/koha-tmpl/intranet-tmpl/prog/img/filefind.png b/koha-tmpl/intranet-tmpl/prog/img/filefind.png deleted file mode 100644 index 3c05c72b5eaeab4938ee64e3ac09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