working/NCIPServer.git
6 years agoFix errors in AcceptItemResponse.inc.
Jason Stephenson [Mon, 8 Sep 2014 02:23:46 +0000 (22:23 -0400)]
Fix errors in AcceptItemResponse.inc.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a logic error in NCIP::ILS::Evergreen->acceptitem.
Jason Stephenson [Mon, 8 Sep 2014 01:14:32 +0000 (21:14 -0400)]
Fix a logic error in NCIP::ILS::Evergreen->acceptitem.

This is embarrassing: I had =~, when I really wanted !~, when
checking the value of RequestedActionType.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix another mistake in NCIP::ILS::Evergreen.
Jason Stephenson [Mon, 8 Sep 2014 01:11:45 +0000 (21:11 -0400)]
Fix another mistake in NCIP::ILS::Evergreen.

Forgot the {} around the arguments when creating a NCIP::Response
object in acceptitem.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoMore syntax errors and thinkos/typos in NCIP::ILS::Evergreen.
Jason Stephenson [Mon, 8 Sep 2014 00:44:55 +0000 (20:44 -0400)]
More syntax errors and thinkos/typos in NCIP::ILS::Evergreen.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix syntax and variable errors in NCIP::ILS::Evergreen.
Jason Stephenson [Mon, 8 Sep 2014 00:37:43 +0000 (20:37 -0400)]
Fix syntax and variable errors in NCIP::ILS::Evergreen.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix typo in NCIP::RequestId.
Jason Stephenson [Mon, 8 Sep 2014 00:31:28 +0000 (20:31 -0400)]
Fix typo in NCIP::RequestId.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd AcceptItem processing to NCIP::ILS::Evergreen.
Jason Stephenson [Sun, 7 Sep 2014 20:45:46 +0000 (16:45 -0400)]
Add AcceptItem processing to NCIP::ILS::Evergreen.

This necessitated the addition of several methods to
NCIP::ILS::Evergreen for looking up users, copies, etc., as well
as for the placing of holds, and checking for some errors. Most
of the new methods will be useful for other message handlers.
The LookupUser handler was also modified to use the new methods
where appropriate.

AcceptItemResonse.inc was also modified to take into account the
new way of passing data to templates. NCIP::ILS::Koha has yet to
be modified to use these new methods.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoSome POD fixups.
Jason Stephenson [Sat, 6 Sep 2014 00:31:27 +0000 (20:31 -0400)]
Some POD fixups.

Use verbatim paragraphs instead of formatted blocks for the code
examples when describing methods.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd find_item_barcode to NCIP::ILS.
Jason Stephenson [Sun, 31 Aug 2014 14:09:36 +0000 (10:09 -0400)]
Add find_item_barcode to NCIP::ILS.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoEdit find_user_barcode in NCIP::ILS to be more universal.
Jason Stephenson [Sun, 31 Aug 2014 13:56:03 +0000 (09:56 -0400)]
Edit find_user_barcode in NCIP::ILS to be more universal.

It now works with messages other than just LookupUser.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoNCIP::Item and friends.
Jason Stephenson [Sun, 31 Aug 2014 02:21:20 +0000 (22:21 -0400)]
NCIP::Item and friends.

Modify NCIP::Item to hold the data for the Item Information field
and add necessary objects for most of its subfields.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd NCIP::Item::Id module.
Jason Stephenson [Sat, 30 Aug 2014 20:29:46 +0000 (16:29 -0400)]
Add NCIP::Item::Id module.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd NCIP::RequestId to handle RequestId information.
Jason Stephenson [Sat, 30 Aug 2014 20:22:21 +0000 (16:22 -0400)]
Add NCIP::RequestId to handle RequestId information.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a mistake with previous commit.
Jason Stephenson [Sat, 30 Aug 2014 13:38:41 +0000 (09:38 -0400)]
Fix a mistake with previous commit.

Needed to add a @{...} around my call to AppUtils->get_org_ancestors
when retrieving the stat_cat entries. I was testing with use_precats
enabled, so I missed it last night.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAvoid the direct use of cstore in NCIP::ILS::Evergreen.
Jason Stephenson [Sat, 30 Aug 2014 05:33:49 +0000 (01:33 -0400)]
Avoid the direct use of cstore in NCIP::ILS::Evergreen.

We use an open-ils.circ routine to retrieve asset stat cat entries
instead of an open-ils.cstore search.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix some issues with pcrud and cstore calls in NCIP::ILS::Evergreen.
Jason Stephenson [Thu, 28 Aug 2014 01:54:48 +0000 (21:54 -0400)]
Fix some issues with pcrud and cstore calls in NCIP::ILS::Evergreen.

Simplify some of the _init method along the way.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoEliminate CStoreEditor from ILS::Evergreen.
Jason Stephenson [Thu, 28 Aug 2014 00:58:33 +0000 (20:58 -0400)]
Eliminate CStoreEditor from ILS::Evergreen.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoModify Evergreen->lookupuser so it doesn't need a CStoreEditor.
Jason Stephenson [Thu, 28 Aug 2014 00:17:52 +0000 (20:17 -0400)]
Modify Evergreen->lookupuser so it doesn't need a CStoreEditor.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFlesh user's home_ou in Evergreen->lookupuser.
Jason Stephenson [Wed, 27 Aug 2014 22:26:52 +0000 (18:26 -0400)]
Flesh user's home_ou in Evergreen->lookupuser.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix "thinko" in ILS->find_user_barcode.
Jason Stephenson [Sun, 24 Aug 2014 16:10:36 +0000 (12:10 -0400)]
Fix "thinko" in ILS->find_user_barcode.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoSet privilige ValidFromDate to user's account create date.
Jason Stephenson [Sun, 24 Aug 2014 14:41:32 +0000 (10:41 -0400)]
Set privilige ValidFromDate to user's account create date.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoSome logical fixup to ILS->find_user_barcode.
Jason Stephenson [Sun, 24 Aug 2014 14:29:51 +0000 (10:29 -0400)]
Some logical fixup to ILS->find_user_barcode.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoChange ILS->find_barcode to ILS->find_user_barcode.
Jason Stephenson [Sun, 24 Aug 2014 14:11:03 +0000 (10:11 -0400)]
Change ILS->find_barcode to ILS->find_user_barcode.

I anticipate that we'll need a separate method to find an item
barcode.

Also, we return the tag of the field where the barcode was in
list context. We still return only the barcode in scalar context.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoRemove NCIP/Handler.pm and family.
Jason Stephenson [Sun, 24 Aug 2014 14:02:56 +0000 (10:02 -0400)]
Remove NCIP/Handler.pm and family.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix lookupuser problem reporting in Evergreen driver.
Jason Stephenson [Sun, 24 Aug 2014 02:25:08 +0000 (22:25 -0400)]
Fix lookupuser problem reporting in Evergreen driver.

Actually set the response object's problem member if we fail to
look up the user.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a typo in POD in NCIP::ILS.
Jason Stephenson [Sat, 23 Aug 2014 18:40:46 +0000 (14:40 -0400)]
Fix a typo in POD in NCIP::ILS.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a few issues with retrieving block or trap for LookupUser.
Jason Stephenson [Sat, 23 Aug 2014 18:26:31 +0000 (14:26 -0400)]
Fix a few issues with retrieving block or trap for LookupUser.

We also now say holds are blocked if holds fulfillment is blocked
for the patron.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd lookup for UserId in NCIP::ILS->find_barcode.
Jason Stephenson [Sat, 23 Aug 2014 16:03:42 +0000 (12:03 -0400)]
Add lookup for UserId in NCIP::ILS->find_barcode.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoStrip leading whitespace in LookupUserResponse.inc.
Jason Stephenson [Sat, 23 Aug 2014 15:48:26 +0000 (11:48 -0400)]
Strip leading whitespace in LookupUserResponse.inc.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix LookupUserResponse.inc.
Jason Stephenson [Sat, 23 Aug 2014 15:44:56 +0000 (11:44 -0400)]
Fix LookupUserResponse.inc.

Missing "User" for UserAddressRoleType field.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix an error in Evergreen.pm.
Jason Stephenson [Sat, 23 Aug 2014 15:38:26 +0000 (11:38 -0400)]
Fix an error in Evergreen.pm.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a typo in LookupVersionResponse.inc.
Jason Stephenson [Sat, 23 Aug 2014 15:32:01 +0000 (11:32 -0400)]
Fix a typo in LookupVersionResponse.inc.

XML sucks if you ask me, but you didn't.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoMore LookupVersion fixes.
Jason Stephenson [Sat, 23 Aug 2014 15:29:55 +0000 (11:29 -0400)]
More LookupVersion fixes.

NCIP has too many redundant layers of tags.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a few things in NCIP::ILS::Evergreen turned up by perl -c.
Jason Stephenson [Sat, 23 Aug 2014 15:11:52 +0000 (11:11 -0400)]
Fix a few things in NCIP::ILS::Evergreen turned up by perl -c.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoA few fixes for NCIP::ILS::Evergreen.
Jason Stephenson [Sat, 23 Aug 2014 14:59:28 +0000 (10:59 -0400)]
A few fixes for NCIP::ILS::Evergreen.

We need to get the username, password, workstation, etc. from the
credentials member of the config hash.

Also fix a typo on line 459 by deleting an extraneous -.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix omission of "data." in LookupVersionResponse.inc.
Jason Stephenson [Sat, 23 Aug 2014 14:31:39 +0000 (10:31 -0400)]
Fix omission of "data." in LookupVersionResponse.inc.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd required FromAgencyId and ToAgencyId to LookupVersionResponse.
Jason Stephenson [Sat, 23 Aug 2014 14:22:58 +0000 (10:22 -0400)]
Add required FromAgencyId and ToAgencyId to LookupVersionResponse.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix typo in lib/NCIP/StructuredPersonalUserName.pm.
Jason Stephenson [Sat, 23 Aug 2014 14:09:26 +0000 (10:09 -0400)]
Fix typo in lib/NCIP/StructuredPersonalUserName.pm.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoRemove some extra whitespace in responses.
Jason Stephenson [Fri, 22 Aug 2014 11:56:01 +0000 (07:56 -0400)]
Remove some extra whitespace in responses.

Add some - in the main.tt to strip trailing whitespace.

Also remove an extra blank line from the bottom of templates/
includes/header.inc.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoUpdate Evergreen code for the better_abstraction branch.
Jason Stephenson [Mon, 18 Aug 2014 12:53:23 +0000 (08:53 -0400)]
Update Evergreen code for the better_abstraction branch.

Also add find_barcode to NCIP::ILS.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd POD to lib/NCIP/Problem.pm.
Jason Stephenson [Mon, 18 Aug 2014 00:55:17 +0000 (20:55 -0400)]
Add POD to lib/NCIP/Problem.pm.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoUpdate POD in NCIP::User::Id to indicate that AgencyId is optional.
Jason Stephenson [Sun, 17 Aug 2014 16:06:05 +0000 (12:06 -0400)]
Update POD in NCIP::User::Id to indicate that AgencyId is optional.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoHave UserId be an array ref in NCIP::User.
Jason Stephenson [Sun, 17 Aug 2014 15:44:41 +0000 (11:44 -0400)]
Have UserId be an array ref in NCIP::User.

Adjust the LookupUserResponse.inc template, and add text to POD
in NCIP::User explaining the fields.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoChange comments to POD in NCIP::Response module.
Jason Stephenson [Sun, 17 Aug 2014 15:26:09 +0000 (11:26 -0400)]
Change comments to POD in NCIP::Response module.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoMerge branch 'masslnc' into better_abstraction
Jason Stephenson [Sun, 17 Aug 2014 15:08:06 +0000 (11:08 -0400)]
Merge branch 'masslnc' into better_abstraction

6 years agoAdd ElectronicAddress element.
Jason Stephenson [Sun, 17 Aug 2014 15:01:14 +0000 (11:01 -0400)]
Add ElectronicAddress element.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd output of Scheme in problem.inc template if it is defined.
Jason Stephenson [Sun, 17 Aug 2014 14:39:12 +0000 (10:39 -0400)]
Add output of Scheme in problem.inc template if it is defined.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoMerge branch 'master' into better_abstraction
Jason Stephenson [Sun, 17 Aug 2014 13:40:17 +0000 (09:40 -0400)]
Merge branch 'master' into better_abstraction

6 years agoAdd some more POD to the new user-related classes.
Jason Stephenson [Sun, 17 Aug 2014 13:36:59 +0000 (09:36 -0400)]
Add some more POD to the new user-related classes.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFill out NCIP::User and friends.
Jason Stephenson [Sun, 17 Aug 2014 02:42:43 +0000 (22:42 -0400)]
Fill out NCIP::User and friends.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFixing a bug in the userenv for Koha
Chris Cormack [Tue, 12 Aug 2014 21:17:08 +0000 (09:17 +1200)]
Fixing a bug in the userenv for Koha

6 years agoAdd POD to NCIP::ILS.
Jason Stephenson [Sun, 10 Aug 2014 14:45:07 +0000 (10:45 -0400)]
Add POD to NCIP::ILS.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd xml filter on the new template include files.
Jason Stephenson [Fri, 8 Aug 2014 21:53:28 +0000 (17:53 -0400)]
Add xml filter on the new template include files.

I forgot to do this after testing them.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoPrepare NCIP.pm and NCIP/ILS.pm for removal of Handler.pm and cousins.
Jason Stephenson [Fri, 8 Aug 2014 19:01:23 +0000 (15:01 -0400)]
Prepare NCIP.pm and NCIP/ILS.pm for removal of Handler.pm and cousins.

This moves the rendering of template output from Handler.pm to NCIP.pm.

We also add another useful method, parse_request_type to NCIP::ILS.

Along the way, we go from parsing the XML message with XPath to using
XML::LibXML::Simple.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoMake sample config & NCIP.pm aware of NCIP::ILS.
Jason Stephenson [Fri, 8 Aug 2014 14:33:55 +0000 (10:33 -0400)]
Make sample config & NCIP.pm aware of NCIP::ILS.

This also means loading the ILS modules by giving the fully
qualified module name.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoUpdate templates for new abstraction method.
Jason Stephenson [Fri, 8 Aug 2014 13:59:37 +0000 (09:59 -0400)]
Update templates for new abstraction method.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd unsupportedservice method to NCIP::ILS.
Jason Stephenson [Fri, 8 Aug 2014 13:46:39 +0000 (09:46 -0400)]
Add unsupportedservice method to NCIP::ILS.

This is used to return an "Unsupported Service" problem message.

We also added default implementations for the message handlers for
the messages required by Autographics' SHAREit that simply return
the Unsuported Service response.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFixes for ILS::make_header.
Jason Stephenson [Thu, 7 Aug 2014 13:01:55 +0000 (09:01 -0400)]
Fixes for ILS::make_header.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd lookupversion implemenation to NCIP::ILS.
Jason Stephenson [Thu, 7 Aug 2014 11:59:56 +0000 (07:59 -0400)]
Add lookupversion implemenation to NCIP::ILS.

Also fix a few typos.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFixup NCIP::ILS::make_header.
Jason Stephenson [Thu, 7 Aug 2014 11:42:24 +0000 (07:42 -0400)]
Fixup NCIP::ILS::make_header.

Change it to take the whole NCIP request as its argument.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd some the Header and Response objects.
Jason Stephenson [Thu, 7 Aug 2014 01:14:50 +0000 (21:14 -0400)]
Add some the Header and Response objects.

Also modify some existing objects to camel case the fields so that
they match what is in Z39.83-1-2012.

Add a make_header method to the base ILS class.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoRemove version 2.0 as supported version from NCIP::Const.
Jason Stephenson [Wed, 6 Aug 2014 23:34:11 +0000 (19:34 -0400)]
Remove version 2.0 as supported version from NCIP::Const.

What was I thinking when I added it?

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoMerge branch 'master' into masslnc
Jason Stephenson [Wed, 6 Aug 2014 23:13:18 +0000 (19:13 -0400)]
Merge branch 'master' into masslnc

6 years agoMerge branch 'master' of git.evergreen-ils.org:NCIPServer into better_abstraction
Jason Stephenson [Wed, 6 Aug 2014 23:07:40 +0000 (19:07 -0400)]
Merge branch 'master' of git.evergreen-ils.org:NCIPServer into better_abstraction

6 years agoRemoving debug statements, making the branch of the item be used if none sent in...
Chris Cormack [Thu, 31 Jul 2014 20:37:18 +0000 (08:37 +1200)]
Removing debug statements, making the branch of the item be used if none sent in message

6 years agoAdd the work achieved so far today.
Jason Stephenson [Sat, 26 Jul 2014 20:58:47 +0000 (16:58 -0400)]
Add the work achieved so far today.

This stuff may get moved around later.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoSwitch to XML::LibXML::Simple for the Evergreen driver configuration. user/dyrcona/masslnc
Jason Stephenson [Mon, 21 Jul 2014 01:24:03 +0000 (21:24 -0400)]
Switch to XML::LibXML::Simple for the Evergreen driver configuration.

Also adjust the expected configuration file to be a little simpler
and more like the one from issa.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a typo in the userdata method of the Evergreen ILS driver.
Jason Stephenson [Fri, 18 Jul 2014 12:19:11 +0000 (08:19 -0400)]
Fix a typo in the userdata method of the Evergreen ILS driver.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoRefinements to user data look up in the Evergreen driver.
Jason Stephenson [Thu, 17 Jul 2014 12:50:12 +0000 (08:50 -0400)]
Refinements to user data look up in the Evergreen driver.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoImplement the userdata() method in the Evergreen driver.
Jason Stephenson [Thu, 17 Jul 2014 00:28:51 +0000 (20:28 -0400)]
Implement the userdata() method in the Evergreen driver.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix a couple of typos in Evergreen driver.
Jason Stephenson [Wed, 16 Jul 2014 17:58:56 +0000 (13:58 -0400)]
Fix a couple of typos in Evergreen driver.

I typed $U->simple_req when it should be $U->simplereq.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoSearch for asset stat cat entries by owner in Evergreen driver _init.
Jason Stephenson [Tue, 15 Jul 2014 21:06:50 +0000 (17:06 -0400)]
Search for asset stat cat entries by owner in Evergreen driver _init.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd setup and initialization code to the Evergreen driver.
Jason Stephenson [Sun, 13 Jul 2014 23:57:53 +0000 (19:57 -0400)]
Add setup and initialization code to the Evergreen driver.

It can parse a XML configuration file.

It can use that configuration to bootstrap itself and login to
OpenSRF via Evergreen.

It can initialize its state based on that configuration.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd public/dispatch.cgi for use with Apache and Plack.
Jason Stephenson [Fri, 27 Jun 2014 22:18:08 +0000 (18:18 -0400)]
Add public/dispatch.cgi for use with Apache and Plack.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd a stub Evergreen driver.
Jason Stephenson [Wed, 25 Jun 2014 15:21:48 +0000 (11:21 -0400)]
Add a stub Evergreen driver.

This creates a skeleton lib/NCIP/ILS/Evergreen.pm with just the main
subroutines.  They currently do nothing at all.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd NCIP v2.0 to supported versions.
Jason Stephenson [Sat, 19 Jul 2014 14:47:11 +0000 (10:47 -0400)]
Add NCIP v2.0 to supported versions.

At some point, we should add code to check the version of NCIP that
is in use and alter the response templates accordingly.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoAdd a LookupVersion handler.
Jason Stephenson [Fri, 27 Jun 2014 18:55:40 +0000 (14:55 -0400)]
Add a LookupVersion handler.

We also create a NCIP::Const module to hold the SUPPORTED_VERSIONS
list and other constants that we may need in the future.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoUpdate a commented code section regarding DTD/Schema validation.
Jason Stephenson [Thu, 26 Jun 2014 23:19:59 +0000 (19:19 -0400)]
Update a commented code section regarding DTD/Schema validation.

NCIP version 2+ only has a schema.  NCIP version 1 has a DTD or a
schema.  To make the code comment relevant to NCIP version 2, which
we implement here, I change the sample code to validate with a
schema.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoMake some template & config changes.
Jason Stephenson [Thu, 26 Jun 2014 23:07:46 +0000 (19:07 -0400)]
Make some template & config changes.

Set the default MIME type in config.yml based on the Z39.83 spec.

Move the </NCIPMessage> tag to a new include file, footer.inc.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFilter template output with the xml filter where appropriate.
Jason Stephenson [Wed, 25 Jun 2014 15:59:21 +0000 (11:59 -0400)]
Filter template output with the xml filter where appropriate.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoFix some licensing informaiton.
Jason Stephenson [Tue, 24 Jun 2014 13:45:11 +0000 (09:45 -0400)]
Fix some licensing informaiton.

The MYMETA.* files had URLs for the GPL Version 1, and we're using
GPL Version 2.

Also delete the COPYING file, since it is more or less out of date.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoSetting the correct branch on CheckOut
Chris Cormack [Wed, 16 Jul 2014 23:49:51 +0000 (11:49 +1200)]
Setting the correct branch on CheckOut

6 years agoStarting work on the CancelRequestItem handler
Chris Cormack [Sun, 13 Jul 2014 22:45:05 +0000 (10:45 +1200)]
Starting work on the CancelRequestItem handler

6 years agoWorking on the CheckOutIthem handler
Chris Cormack [Sun, 13 Jul 2014 22:19:10 +0000 (10:19 +1200)]
Working on the CheckOutIthem handler

6 years agoRemove an unused file: lib/NCIPResponder.pm.
Jason Stephenson [Mon, 23 Jun 2014 14:16:41 +0000 (10:16 -0400)]
Remove an unused file: lib/NCIPResponder.pm.

Signed-off-by: Jason Stephenson <jason@sigio.com>
6 years agoContinuing on with the changes
Chris Cormack [Tue, 8 Apr 2014 22:56:25 +0000 (10:56 +1200)]
Continuing on with the changes

6 years agoGah, im having a nightmare today
Chris Cormack [Tue, 8 Apr 2014 22:08:38 +0000 (10:08 +1200)]
Gah, im having a nightmare today

6 years agoContinuing with the work for RequestHandler
Chris Cormack [Tue, 8 Apr 2014 22:05:40 +0000 (10:05 +1200)]
Continuing with the work for RequestHandler

6 years agoFixing the error handling to be consistent
Chris Cormack [Tue, 8 Apr 2014 21:36:02 +0000 (09:36 +1200)]
Fixing the error handling to be consistent

6 years agoContinuing work on RequestItem handler
Chris Cormack [Tue, 8 Apr 2014 21:29:45 +0000 (09:29 +1200)]
Continuing work on RequestItem handler

6 years agoFixing a typo in the Koha.pm module
Chris Cormack [Tue, 8 Apr 2014 00:28:05 +0000 (12:28 +1200)]
Fixing a typo in the Koha.pm module

6 years agoTemplate for RequestItemResponse
Chris Cormack [Tue, 1 Apr 2014 21:34:39 +0000 (10:34 +1300)]
Template for RequestItemResponse

6 years agoWorking on the CancelRequest message
Chris Cormack [Sun, 30 Mar 2014 21:07:52 +0000 (10:07 +1300)]
Working on the CancelRequest message

6 years agoCheckinItem handler
Chris Cormack [Wed, 19 Mar 2014 21:07:56 +0000 (10:07 +1300)]
CheckinItem handler

6 years agoWorking AcceptItem now
Chris Cormack [Thu, 13 Mar 2014 00:24:28 +0000 (13:24 +1300)]
Working AcceptItem now

6 years agoContinuing work on the AcceptItem handler
Chris Cormack [Thu, 6 Mar 2014 01:11:13 +0000 (14:11 +1300)]
Continuing work on the AcceptItem handler

6 years agoStarting work on better logging using Log::Log4perl
Chris Cormack [Wed, 5 Mar 2014 22:16:24 +0000 (11:16 +1300)]
Starting work on better logging using Log::Log4perl

6 years agoDoh, typo
Chris Cormack [Wed, 5 Mar 2014 21:56:56 +0000 (10:56 +1300)]
Doh, typo

6 years agoKoha specific driver work
Chris Cormack [Wed, 5 Mar 2014 21:55:18 +0000 (10:55 +1300)]
Koha specific driver work

6 years agoContinuing with the CheckInItem handler
Chris Cormack [Wed, 5 Mar 2014 21:46:51 +0000 (10:46 +1300)]
Continuing with the CheckInItem handler

Refactoring a bit of common code to the base Handler class