Lines 248-253
sub search_auth_compat {
Link Here
|
248 |
$result{authtype} = $authtype ? $authtype->authtypetext : $authtypecode; |
248 |
$result{authtype} = $authtype ? $authtype->authtypetext : $authtypecode; |
249 |
$result{reported_tag} = $reported_tag; |
249 |
$result{reported_tag} = $reported_tag; |
250 |
|
250 |
|
|
|
251 |
if ( C4::Context->preference('ShowHeadingUse') ) { |
252 |
# checking valid heading use |
253 |
my $f008 = $marc->field('008'); |
254 |
my $pos14to16 = substr( $f008->data, 14, 3 ); |
255 |
my $main = substr( $pos14to16, 0, 1 ); |
256 |
$result{main} = 1 if $main eq 'a'; |
257 |
my $subject = substr( $pos14to16, 1, 1); |
258 |
$result{subject} = 1 if $subject eq 'a'; |
259 |
my $series = substr( $pos14to16, 2, 1 ); |
260 |
$result{series} = 1 if $series eq 'a'; |
261 |
} |
262 |
|
251 |
# Reimplementing BuildSummary is out of scope because it'll be hard |
263 |
# Reimplementing BuildSummary is out of scope because it'll be hard |
252 |
$result{summary} = |
264 |
$result{summary} = |
253 |
C4::AuthoritiesMarc::BuildSummary( $marc, $result{authid}, |
265 |
C4::AuthoritiesMarc::BuildSummary( $marc, $result{authid}, |
254 |
- |
|
|