|
Lines 50-55
if ( any { $_ eq 'dc' } @valid_formats ) {
Link Here
|
| 50 |
@valid_formats = ( @valid_formats, @dc_subtypes ); |
50 |
@valid_formats = ( @valid_formats, @dc_subtypes ); |
| 51 |
} |
51 |
} |
| 52 |
|
52 |
|
|
|
53 |
# Allow utf8 format if EnableZotero is enabled, regardless of OpacExportOptions |
| 54 |
if ( C4::Context->preference('EnableZotero') && $format eq 'utf8' ) { |
| 55 |
push @valid_formats, 'utf8' unless any { $_ eq 'utf8' } @valid_formats; |
| 56 |
} |
| 57 |
|
| 53 |
if ( !scalar @valid_formats || none { $format eq $_ } @valid_formats ) { |
58 |
if ( !scalar @valid_formats || none { $format eq $_ } @valid_formats ) { |
| 54 |
|
59 |
|
| 55 |
# bad request: either the feature is disabled, or requested a format the |
60 |
# bad request: either the feature is disabled, or requested a format the |
| 56 |
- |
|
|