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