Bug 16365: Selectively introduce GetMarcStructure() "unsafe" variant for better perfo...
[koha_ffzg] / Koha / Filter / MARC / ViewPolicy.pm
index 69a144c..e69b730 100644 (file)
@@ -84,7 +84,7 @@ sub filter {
         my $frameworkcode = $self->{options}->{frameworkcode} // q{};
         my $hide          = _should_hide_on_interface();
 
-        my $marcsubfieldstructure = GetMarcStructure( 0, $frameworkcode );
+        my $marcsubfieldstructure = GetMarcStructure( 0, $frameworkcode, { unsafe => 1 } );
 
         #if ($marcsubfieldstructure->{'000'}->{'@'}->{hidden}>0) {
         # LDR field is excluded from $current_record->fields().