https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43606 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k Status|Passed QA |Failed QA --- Comment #13 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi all When 'x-koha-embed: items' is sent, the items are embedded as expected, but other fields of the record disappear from the response. Without the header, they're returned. Asking for items shouldn't change the rest of the record. To see it: 1) Apply the patches, then in KTD run 'yarn api:bundle' and 'koha-plack --restart kohadev'. 2) Fetch biblio 1 without the embed, and count its 952 (items) and 955 fields: curl -s -u koha:koha -H "Accept: application/marcxml+xml" "http://localhost:8081/api/v1/biblios?q=%7B%22biblio_id%22%3A1%7D" | grep -oE 'tag="95[25]"' | sort | uniq -c => 1 tag="955" 3) Run the same request with the embed: curl -s -u koha:koha -H "Accept: application/marcxml+xml" -H "x-koha-embed: items" "http://localhost:8081/api/v1/biblios?q=%7B%22biblio_id%22%3A1%7D" | grep -oE 'tag="95[25]"' | sort | uniq -c => 1 tag="952" The item is now embedded, but the 955 is gone. -- You are receiving this mail because: You are watching all bug changes.