@@ -, +, @@ --- .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 6 +++++- opac/opac-detail.pl | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -40,6 +40,7 @@ + @@ -89,7 +90,10 @@ Score - + + +
According to the MARC record leader, this record is deleted. It will not be visible in the OPAC.
+
--- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -91,6 +91,17 @@ if ( ! $record ) { exit; } +# redirect if biblio has LDR05=d +my $leader = $record->leader(); +if ($leader){ + my $ldr05 = substr($leader,5,1); + if ($ldr05 eq 'd'){ + my $ldr05_redirect = "/cgi-bin/koha/errors/404.pl"; + print $query->redirect($ldr05_redirect); + exit; + } +} + # redirect if opacsuppression is enabled and biblio is suppressed if (C4::Context->preference('OpacSuppression')) { # FIXME hardcoded; the suppression flag ought to be materialized --