From b020a59bb33b00615e1cd9daef14b6318d28cead Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Thu, 22 Oct 2020 12:27:17 +0000
Subject: [PATCH] Bug 12533: (follow-up) Add CSS to preview display of
authority MARC
This patch adds the same CSS used by authorities/detail.tt to the
modal preview of the authority record shown in the authorities search
result popup.
---
koha-tmpl/intranet-tmpl/prog/css/addbiblio.css | 43 ++++++++++++++++++++++
.../prog/en/modules/authorities/detail.tt | 38 -------------------
.../modules/authorities/searchresultlist-auth.tt | 1 +
3 files changed, 44 insertions(+), 38 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css
index baf3f2138d..03b9daf985 100644
--- a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css
+++ b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css
@@ -353,3 +353,46 @@ tbody tr.active td {
.ui-autocomplete {
z-index: 2000;
}
+
+#authoritiestabs .marc_field {
+ display: inline-block;
+ padding: .3em;
+ border-radius: 3px;
+}
+
+#authoritiestabs .marc_subfield {
+ font-weight: bold;
+ color: #666;
+}
+
+#authoritiestabs .marc_subfield_desc {
+ color: #00698a;
+ font-style: italic;
+}
+
+#authoritiestabs .auth_subfield {
+ display: flex;
+}
+
+#authoritiestabs .tag {
+ padding: .4em 0;
+}
+
+#authoritiestabs .tag_desc {
+ color: #026;
+}
+
+#authoritiestabs .tag_num {
+ color: #080;
+}
+
+#authoritiestabs .tag_title {
+ font-size: 100%;
+ font-weight: bold;
+ padding: 0;
+}
+
+#authoritiestabs .ui-tabs-nav.ui-widget-header {
+ border-bottom: 1px solid #b9d8d9;
+ border-radius: 0;
+}
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 2670138b72..62f05615c6 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt
@@ -12,44 +12,6 @@
</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/addbiblio.css") | $raw %]
-[% FILTER collapse %]
- <style>
- .marc_field {
- display: inline-block;
- padding: .3em;
- border-radius: 3px;
- }
- .marc_subfield {
- font-weight: bold;
- color: #666;
- }
- .marc_subfield_desc {
- color: #00698a;
- font-style: italic;
- }
- .auth_subfield {
- display: flex;
- }
- .tag {
- padding: .4em 0;
- }
- .tag_desc {
- color: #026;
- }
- .tag_num {
- color: #080;
- }
- .tag_title {
- font-size: 100%;
- font-weight: bold;
- padding: 0;
- }
- .ui-tabs-nav.ui-widget-header {
- border-bottom: 1px solid #b9d8d9;
- border-radius: 0;
- }
- </style>
-[% END %]
</head>
<body id="auth_detail" class="auth">
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt
index ec1092bcfe..aff29d5030 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt
@@ -5,6 +5,7 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Cataloging authority plugin</title>
[% INCLUDE 'doc-head-close.inc' %]
+[% Asset.css("css/addbiblio.css") | $raw %]
</head>
<body id="auth_searchresultlist_auth" class="auth">
--
2.11.0