Main Koha release repository https://koha-community.org
Find a file
Nick Clemens 41b5db64b3
Bug 20816: Add ability to define custom templated fields in SIP patron responses
To test:
 1 - You will need to enable SIP on your testing instance
    cp etc/SIPconfig.xml /etc/koha/sites/kohadev/
    sudo koha-start-sip
    add a user listed in the SIPconfig to your system and give them permissions (superlibrarian works)
    on koha-testing-docker you should be able to start sip with user koha/koha without any adjustments
 2 - If you copied the above file you should be set to get custom field DE with dateexpiry
     Otherwise edit the sip login for the user to have a custom section like:
		  <login id="koha"   password="koha"  delimiter="|" error-detect="enabled" institution="kohalibrary" encoding="utf8" >
			  <custom_patron_field field="DE" template="[% patron.dateexpiry %]" />
		  </login>
 3 - send a status test using the sip cli tester:
     perl misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su koha -sp koha -l kohalibrary --patron 23529001000463 -m patron_status_request
 4 - send an information test using the sip cli tester:
     perl misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su koha -sp koha -l kohalibrary --patron 23529001000463 -m patron_information
 5 - confirm you receive the DE field with a dateexpiry
 6 - Add your own custom fields and confirm it works with several
         <custom_patron_field field="EW" template="Phone: [% patron.phone %] Email: [% patron.email %]" />
 7 - prove -v t/db_dependent/SIP/Patron.t
 8 - prove -v t/db_dependent/SIP/

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-22 13:31:59 +01:00
acqui Bug 25223: Make join of aqbasket and aqorders explicit 2020-04-22 09:29:13 +01:00
admin Bug 20484: (RM follow-up) Highlight ES disablement 2020-04-21 12:14:13 +01:00
api/v1
authorities
basket
C4 Bug 20816: Add ability to define custom templated fields in SIP patron responses 2020-04-22 13:31:59 +01:00
catalogue Bug 23591: Hide archived suggestions 2020-04-14 16:36:41 +01:00
cataloguing Bug 24027: Call ModZebra once after all items added/deleted in a batch 2020-04-14 08:14:42 +01:00
circ Bug 24840: Replace DateTime->now with dt_from_string 2020-04-08 11:54:23 +01:00
clubs
course_reserves Bug 23727: Editing course reserve items is broken 2020-04-17 13:45:56 +01:00
debian Bug 20116: Flush the caches 2020-04-17 09:23:21 +01:00
docs
errors
etc Bug 20816: Add ability to define custom templated fields in SIP patron responses 2020-04-22 13:31:59 +01:00
ill
installer Bug 24913: DBRev 19.12.00.078 2020-04-21 12:34:04 +01:00
Koha Bug 13518: Delete patron's modifications along with the patron 2020-04-20 12:19:16 +01:00
koha-tmpl Bug 16962: Remove the use of "onclick" from serial collection template 2020-04-22 13:31:21 +01:00
labels
members Bug 22534: (RM follow-up) Remove errant hidden file 2020-04-14 11:08:32 +01:00
misc Bug 24183: (RM follow-up) Remove re-introduced UseKohaPlugins 2020-04-22 12:24:27 +01:00
offline_circ
opac Bug 24913: Add PatronSelfRegistrationConfirmEmail syspref 2020-04-21 12:30:40 +01:00
patron_lists
patroncards
plugins
pos Bug 25139: Corrections to date picker handling 2020-04-15 08:33:07 +01:00
reports Bug 24940: Serials statistics wizard: order vendor list alphabetically 2020-04-08 11:46:21 +01:00
reserve
reviews
rotating_collections
serials Bug 25081: Fix wrong comment 2020-04-08 11:53:37 +01:00
services
skel
suggestion Bug 24819: (follow-up) Rename suggestor to suggester 2020-04-20 13:36:42 +01:00
svc Bug 4461: Fix status and borrowernumber fields in problem_reports and more 2020-04-06 11:18:59 +01:00
t Bug 20816: Add ability to define custom templated fields in SIP patron responses 2020-04-22 13:31:59 +01:00
tags
tmp/modified_authorities
tools Bug 14369: Only show 'Create labels' link on staged records import when status is imported 2020-04-21 12:28:56 +01:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.scss-lint.yml
about.pl Bug 25109: (QA follow-up) Add a test for lockdir writable in about.pl 2020-04-14 16:57:15 +01:00
changelanguage.pl
cpanfile
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 24913: DBRev 19.12.00.078 2020-04-21 12:34:04 +01:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl Bug 4461: Fix status and borrowernumber fields in problem_reports and more 2020-04-06 11:18:59 +01:00
Makefile.PL Bug 25109: Add lockdir configuration entry 2020-04-14 16:56:44 +01:00
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo