|
Lines 99-110
sub controlled_indicators {
Link Here
|
| 99 |
$self->marcxml, 'UTF-8', $flavour ); |
99 |
$self->marcxml, 'UTF-8', $flavour ); |
| 100 |
} |
100 |
} |
| 101 |
|
101 |
|
| 102 |
my $authtype = Koha::Authority::Types->find( $self->authtypecode ); |
102 |
if( !$self->{_report_tag} ) { |
| 103 |
return {} if !$authtype; |
103 |
my $authtype = Koha::Authority::Types->find( $self->authtypecode ); |
|
|
104 |
return {} if !$authtype; # very exceptional |
| 105 |
$self->{_report_tag} = $authtype->auth_tag_to_report; |
| 106 |
} |
| 104 |
|
107 |
|
| 105 |
return Koha::Authority::ControlledIndicators->new->get({ |
108 |
$self->{_ControlledInds} //= Koha::Authority::ControlledIndicators->new; |
|
|
109 |
return $self->{_ControlledInds}->get({ |
| 106 |
auth_record => $record, |
110 |
auth_record => $record, |
| 107 |
report_tag => $authtype->auth_tag_to_report, |
111 |
report_tag => $self->{_report_tag}, |
| 108 |
biblio_tag => $tag, |
112 |
biblio_tag => $tag, |
| 109 |
flavour => $flavour, |
113 |
flavour => $flavour, |
| 110 |
}); |
114 |
}); |
| 111 |
- |
|
|