@@ -, +, @@
results
---
C4/AuthoritiesMarc.pm | 12 +++++++++++
.../authorities/searchresultlist-auth.tt | 20 +++++++++++++++++++
.../modules/authorities/searchresultlist.tt | 20 +++++++++++++++++++
3 files changed, 52 insertions(+)
--- a/C4/AuthoritiesMarc.pm
+++ a/C4/AuthoritiesMarc.pm
@@ -301,6 +301,18 @@ sub SearchAuthorities {
}
my $summary = BuildSummary( $authrecord, $authid, $thisauthtypecode );
+ if ( C4::Context->preference('ShowHeadingUse') ) {
+ # checking valid heading use
+ my $f008 = $authrecord->field('008');
+ my $pos14to16 = substr( $f008->data, 14, 3 );
+ my $main = substr( $pos14to16, 0, 1 );
+ $newline{main} = 1 if $main eq 'a';
+ my $subject = substr( $pos14to16, 1, 1);
+ $newline{subject} = 1 if $subject eq 'a';
+ my $series = substr( $pos14to16, 2, 1 );
+ $newline{series} = 1 if $series eq 'a';
+ }
+
$newline{authtype} = defined($thisauthtype) ?
$thisauthtype->authtypetext : '';
$newline{summary} = $summary;
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt
@@ -1,11 +1,21 @@
[% USE raw %]
[% USE Asset %]
+[% USE Koha %]
[% SET footerjs = 1 %]
[% PROCESS 'authorities-search-results.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
Cataloging authority plugin › Koha
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/addbiblio.css") | $raw %]
+
@@ -45,6 +55,9 @@
Summary |
Heading type |
Used |
+ [% IF Koha.Preference('ShowHeadingUse') %]
+ Heading use |
+ [% END %]
Get it! |
Other action |
@@ -53,6 +66,13 @@
[% PROCESS authresult summary=resul.summary authid=resul.authid auth_preview=1 %] |
[% resul.summary.label | html %] |
[% resul.used | html %] times |
+ [% IF Koha.Preference('ShowHeadingUse') %]
+
+ - [% IF resul.main %][% ELSE %][% END %] Main/Added Entry
+ - [% IF resul.subject %][% ELSE %][% END %] Subject
+ - [% IF resul.series %][% ELSE %][% END %] Series Title
+ |
+ [% END %]
[% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
[% FOREACH authorized IN resul.summary.authorized %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt
@@ -1,11 +1,21 @@
[% USE raw %]
[% USE Asset %]
+[% USE Koha %]
[% SET footerjs = 1 %]
[% PROCESS 'authorities-search-results.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
Authority search results › Authorities › Koha
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/addbiblio.css") | $raw %]
+
@@ -51,6 +61,9 @@
[% UNLESS ( isEDITORS ) %]
| Used in |
[% END %]
+ [% IF Koha.Preference('ShowHeadingUse') %]
+ Heading use |
+ [% END %]
[% IF ( CAN_user_editauthorities ) %]
|
[% END %]
@@ -68,6 +81,13 @@
[% END %]
[% END %]
+ [% IF Koha.Preference('ShowHeadingUse') %]
+
+ - [% IF resul.main %][% ELSE %][% END %] Main/Added Entry
+ - [% IF resul.subject %][% ELSE %][% END %] Subject
+ - [% IF resul.series %][% ELSE %][% END %] Series Title
+ |
+ [% END %]
[% IF ( CAN_user_editauthorities ) %]
--
|