From: Jason Stephenson Date: Sun, 17 Aug 2014 15:44:41 +0000 (-0400) Subject: Have UserId be an array ref in NCIP::User. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e99145dce7acc303e49c48d6574cd2f4af0309af;p=working%2FNCIPServer.git 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 --- diff --git a/lib/NCIP/User.pm b/lib/NCIP/User.pm index 79f0b76..7e1b204 100644 --- a/lib/NCIP/User.pm +++ b/lib/NCIP/User.pm @@ -34,8 +34,12 @@ User - An object for user information =head2 UserId +An array ref of NCIP::User::Id objects. + =head2 UserOptionalFields +A single NCIP::User::OptionalFields object. + =cut diff --git a/templates/includes/LookupUserResponse.inc b/templates/includes/LookupUserResponse.inc index fa2af36..e7e620c 100644 --- a/templates/includes/LookupUserResponse.inc +++ b/templates/includes/LookupUserResponse.inc @@ -1,18 +1,20 @@ +[% FOREACH id IN data.UserId -%] -[% data.UserId.UserIdentifierValue | xml %] +[% id.UserIdentifierValue | xml %] -[% IF data.UserId.UserIdentifierType -%] +[% IF id.UserIdentifierType -%] -[% data.UserId.UserIdentifierType | xml %] +[% id.UserIdentifierType | xml %] [% END -%] -[% IF data.UserId.AgencyId -%] +[% IF id.AgencyId -%] -[% data.UserId.AgencyId %] +[% id.AgencyId %] [% END -%] +[% END -%] [% IF data.UserOptionalFields -%] [% IF data.UserOptionalFields.NameInformation -%]