https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43606

Pedro Amorim (ammopt) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |k
             Status|Passed QA                   |Failed QA

--- Comment #13 from Pedro Amorim (ammopt) <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to