Summary: | Add ability to send custom item fields via SIP using Template Toolkit | ||
---|---|---|---|
Product: | Koha | Reporter: | Kyle M Hall (khall) <kyle> |
Component: | SIP2 | Assignee: | Kyle M Hall (khall) <kyle> |
Status: | CLOSED FIXED | QA Contact: | Martin Renvoize (ashimema) <martin.renvoize> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | jzairo, martin.renvoize |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
22.11.00
|
|
Circulation function: | |||
Attachments: |
Bug 31236: Add ability to send custom item fields via SIP using Template Toolkit
Bug 31236: Add ability to send custom item fields via SIP using Template Toolkit |
Description
Kyle M Hall (khall)
2022-07-25 14:55:56 UTC
Created attachment 138104 [details] [review] Bug 31236: Add ability to send custom item fields via SIP using Template Toolkit Koha has been able to send arbitrary item fields via the "item_field" parameter in the config. We have partners that need the ability to created custom item fields from templates, as the item_fields feature cannot accomplish what they need. We need to add a templated custom field feature for items, similar to what we have for patrons. Test Plan: 1) Apply this patch 2) Choose a SIP login to use, edit that account and add the following *inside* the login section: <custom_item_field field="IN" template="[% item.itemnumber %]" /> 3) Restart SIP 4) Run an item information query 5) Note the itemnumber is sent in the IN field! Created attachment 139689 [details] [review] Bug 31236: Add ability to send custom item fields via SIP using Template Toolkit Koha has been able to send arbitrary item fields via the "item_field" parameter in the config. We have partners that need the ability to created custom item fields from templates, as the item_fields feature cannot accomplish what they need. We need to add a templated custom field feature for items, similar to what we have for patrons. Test Plan: 1) Apply this patch 2) Choose a SIP login to use, edit that account and add the following *inside* the login section: <custom_item_field field="IN" template="[% item.itemnumber %]" /> 3) Restart SIP 4) Run an item information query 5) Note the itemnumber is sent in the IN field! Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> All works as described, no regressions and it contains unit tests! Going for a straight QA.. Passed. Pushed to master for 22.11. Nice work everyone, thanks! |