LP#1403967: show 'subject heading thesaurus' value in Manage Authorities results
authorYamil Suarez <yamil@yamil.com>
Tue, 17 Feb 2015 19:29:46 +0000 (14:29 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 18 Feb 2015 21:19:08 +0000 (16:19 -0500)
The 'subject heading thesaurus' basically defines the issuing authority
that created the authority record. For example, a value of "a" means that
it came from LoC. A value of "n" means that it is a locally created
authority. Note that within the authority MARC editor the 'Subject
Heading Thesaurus' is stored/displayed in the 'Subj' fixed field.

Signed-off-by: Yamil Suarez <yamil@yamil.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/cat/authority/list.tt2
Open-ILS/web/js/ui/default/cat/authority/list.js

index 9b8aa96..3975fc7 100644 (file)
@@ -6,9 +6,11 @@
     .authEntry { clear: both; height: 1.5em; }
     .authEntry > *:first-child { float: left; width: 20%; }
     .authEntry > .text { float: left; width: 46%; }
     .authEntry { clear: both; height: 1.5em; }
     .authEntry > *:first-child { float: left; width: 20%; }
     .authEntry > .text { float: left; width: 46%; }
-    .authEntry > .authority-control-set { float: right; width: 33%; ; font-style: italic; }
+    .authEntry > .authority-control-set-thesaurus { float: right; width: 33%; }
+    .authority-control-set { font-style: italic; }
     .authority-control-set .acs-name { font-weight: bold; }
     .authority-control-set .acs-id { }
     .authority-control-set .acs-name { font-weight: bold; }
     .authority-control-set .acs-id { }
+    .authority-control-set-thesaurus .authority-thesaurus { margin-left: 15px; }
     .authEntry:nth-child(even) { background-color:#D3D3D3;}
 </style>
 <div dojoType="dijit.form.Form" id="myForm" jsId="myForm" encType="multipart/form-data" action="" method="">
     .authEntry:nth-child(even) { background-color:#D3D3D3;}
 </style>
 <div dojoType="dijit.form.Form" id="myForm" jsId="myForm" encType="multipart/form-data" action="" method="">
index 4c42b90..ba62550 100644 (file)
@@ -100,10 +100,11 @@ function displayAuthorities(data) {
             '<div class="authEntry" id="auth' + auth.id + '">' +
             '<div class="text" id="authLabel' + auth.id + '">' +
             '<span class="text">' + auth.text + '</span></div>' +
             '<div class="authEntry" id="auth' + auth.id + '">' +
             '<div class="text" id="authLabel' + auth.id + '">' +
             '<span class="text">' + auth.text + '</span></div>' +
-            '<div class="authority-control-set">Control Set: <span class="acs-name">' +
+            '<div class="authority-control-set-thesaurus"><span class="authority-control-set">Control Set: <span class="acs-name">' +
             fetch_control_set(auth.thesaurus).name() +
             '</span> <span class="acs-id">(#' +
             fetch_control_set(auth.thesaurus).name() +
             '</span> <span class="acs-id">(#' +
-            fetch_control_set(auth.thesaurus).id() + ')</span></div></div>',
+            fetch_control_set(auth.thesaurus).id() + ')</span>' +
+            '</span> <span class="authority-thesaurus">Thes: ' + auth.thesaurus + '</span></div></div>',
             "authlist-div", "last"
         );
 
             "authlist-div", "last"
         );