https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42811
Bug ID: 42811
Summary: Migrate x-koha-embed headers to embed keyword in API
clients
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Depends on: 36369
Target Milestone: ---
Bug 36369 introduced KohaApiClient with a _resolveEmbed() method that
translates an embed parameter into the x-koha-embed header automatically.
Several API client files still use the old pattern of manually setting the
header:
headers: { "x-koha-embed": "field1,field2" }
These should be migrated to:
embed: ["field1", "field2"]
Files to migrate:
- acquisition-api-client.js
- authorised-values-api-client.js
- checkout-api-client.js
- erm-api-client.js
- ill-api-client.js
- preservation-api-client.js
- sip2-api-client.js
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36369
[Bug 36369] Make APIClient be more useful
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/