Bug 37376

Summary: Item data added to incorrect OPAC export formats
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: OPACAssignee: Tomás Cohen Arazi (tcohen) <tomascohen>
Status: Failed QA --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: david, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 29697    
Bug Blocks:    
Attachments: Bug 37376: Make item data added to bibtext format only in OPAC export

Description Tomás Cohen Arazi (tcohen) 2024-07-16 17:00:19 UTC
Before bug 29697, the opac-export.pl script only added item information to the `bibtex` format case. With that bug's refactoring, it ended up always adding it.
Comment 1 Tomás Cohen Arazi (tcohen) 2024-07-16 17:22:06 UTC
Created attachment 169053 [details] [review]
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 <tomascohen@theke.io>
Comment 2 David Nind 2024-07-17 05:09:05 UTC
The MARCXML still has the 952/item information for me 8-(..