From cd1b5fdd729224bbb1293b310b886903256649f8 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 16 Jul 2024 14:05:52 -0300 Subject: [PATCH] Bug 37376: Make item data added to bibtext format only in OPAC export To test: 1. In KTD have a record with items open in hte OPAC: http://kohadev.mydnsname.org:8080/cgi-bin/koha/opac-detail.pl?biblionumber=9 2. Export in MARCXML format => FAIL: It contains 952 field information 3. Apply this patch 4. Repeat 2 => SUCCESS: No item information included 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi --- opac/opac-export.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-export.pl b/opac/opac-export.pl index d0e5bf12030..e2d0f58ece4 100755 --- a/opac/opac-export.pl +++ b/opac/opac-export.pl @@ -66,7 +66,7 @@ my $biblio = Koha::Biblios->find($biblionumber); my $marc = $biblio ? $biblio->metadata->record( { - embed_items => 1, + embed_items => $include_items, opac => 1, patron => $patron, } -- 2.39.2