Koha-clms/t/db_dependent
Kyle Hall 14cfdfd727 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>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: fixed tests count
2022-09-12 17:44:36 -03:00
..
Acquisition
…
Auth
…
AuthoritiesMarc
…
Authority
…
Biblio
…
Circulation
…
CourseReserves
…
Creators
…
Exporter
…
Holds
…
Illrequest
…
Items
…
Koha
…
LDAP
…
Labels
…
Letters
…
Members
…
OAI
…
Patron
…
Record
…
Reports
…
Reserves
…
SIP Bug 31236: Add ability to send custom item fields via SIP using Template Toolkit 2022-09-12 17:44:36 -03:00
Search
…
Serials
…
Template/Plugin
…
Utils
…
api/v1
…
cronjobs
…
data
…
misc/translator
…
selenium
…
www
…
00-strict.t
…
01-test_dbic.t
…
Accounts.t
…
Acquisition.t
…
Amazon.t
…
ArticleRequests.t
…
AudioAlerts.t
…
Auth.t
…
AuthUtils.t
…
Auth_with_cas.t
…
Auth_with_ldap.t
…
AuthorisedValues.t
…
AuthoritiesMarc.t
…
AuthoritiesMarc_GetTagsLabels.t
…
BackgroundJob.t
…
Barcodes.t
…
Barcodes_ValueBuilder.t
…
Biblio.t
…
Biblio_holdsqueue.t
…
Breeding.t
…
Budgets.t
…
Cache.t
…
Calendar.t
…
Charset.t
…
Circulation.t
…
Circulation_holdsqueue.t
…
Clubs.t
…
Context.t
…
Contract.t
…
CourseReserves.t
…
DecreaseLoanHighHolds.t
…
Filter_MARC_ViewPolicy.t
…
Fines.t
…
FrameworkPlugin.t
…
Heading.t
…
Heading_MARC21.t
…
Hold.t
…
Holds.t
…
HoldsQueue.t
…
Holidays.t
…
ILSDI_Services.t
…
Illcomments.t
…
Illrequestattributes.t
…
Illrequests.t
…
ImportBatch.t
…
ImportExportFramework.t
…
Installer.t
…
Items.t
…
Koha.t
…
Koha_Database.t
…
Koha_Elasticsearch.t
…
Koha_ExternalContent_OverDrive.t
…
Koha_ExternalContent_RecordedBooks.t
…
Koha_MetadataRecord_Authority.t
…
Koha_Misc_Files.t
…
Languages.t
…
Letters.t
…
LibraryGroups.t
…
Linker_Default.t
…
Linker_FirstMatch.t
…
Log.t
…
MarcModificationTemplates.t
…
Members.t
…
Message.t
…
MungeMarcPrice.t
…
Overdues.t
…
Passwordrecovery.t
…
PatronLists.t
…
Patroncards.t
…
Patrons.t
…
Record.t
…
RecordProcessor_EmbedSeeFromHeadings.t
…
Reports.t
…
Reserves.t
…
RotatingCollections.t
…
Search.t
…
Serials.t
…
Serials_2.t
…
Service.t
…
ShelfBrowser.t
…
Sitemapper.t
…
Stats.t
…
StockRotationItems.t
…
StockRotationRotas.t
…
StockRotationStages.t
…
SuggestionEngine_ExplodedTerms.t
…
Suggestions.t
…
TablesSettings.t
…
Tags.t
…
Templates.t
…
TestBuilder.t
…
Upload.t
…
UsageStats.t
…
Virtualshelves.t
…
XISBN.t
…
XSLT.t
…
check_kohastructure.t
…
check_sysprefs.t
…
db_structure.t
…
rollingloans.t
…
sysprefs.t
…
yaml.t
…
zebra_config.pl
…