]> git.evergreen-ils.org Git - working/NCIPServer.git/blob - templates/includes/LookupUserResponse.inc
c2512f61abc06a967bdfd4e76874ccd7b20191cb
[working/NCIPServer.git] / templates / includes / LookupUserResponse.inc
1 [% FOREACH id IN data.UserId -%]
2 <UserId>
3 <UserIdentifierValue>
4 [% id.UserIdentifierValue | xml %]
5 </UserIdentifierValue>
6 [% IF id.UserIdentifierType -%]
7 <UserIdentifierType>
8 [% id.UserIdentifierType | xml %]
9 </UserIdentifierType>
10 [% END -%]
11 [% IF id.AgencyId -%]
12 <AgencyId>
13 [% id.AgencyId %]
14 </AgencyId>
15 [% END -%]
16 </UserId>
17 [% END -%]
18 [% IF data.UserOptionalFields -%]
19 <UserOptionalFields>
20 [% IF data.UserOptionalFields.NameInformation -%]
21 <NameInformation>
22 <PersonalNameInformation>
23 <StructuredPersonalUserName>
24 [% IF data.UserOptionalFields.NameInformation.GivenName -%]
25 <GivenName>[% data.UserOptionalFields.NameInformation.GivenName | xml %]</GivenName>
26 [% END -%]
27 <Surname>[% data.UserOptionalFields.NameInformation.Surname | xml %]</Surname>
28 [% IF data.UserOptionalFields.NameInformation.Prefix -%]
29 <Prefix>[% data.UserOptionalFields.NameInformation.Prefix %]</Prefix>
30 [% END -%]
31 [% IF data.UserOptionalFields.NameInformation.Suffix -%]
32 <Suffix>[% data.UserOptionalFields.NameInformation.Suffix %]</Suffix>
33 [% END -%]
34 [% IF data.UserOptionalFields.NameInformation.Initials -%]
35 <Initials>[% data.UserOptionalFields.NameInformation.Initials %]</Initials>
36 [% END -%]
37 </StructuredPersonalUserName>
38 </PersonalNameInformation>
39 </NameInformation>
40 [% END -%]
41 [% IF data.UserOptionalFields.UserAddressInformation -%]
42 [% FOREACH element IN data.UserOptionalFields.UserAddressInformation -%]
43 <UserAddressInformation>
44 <UserAddressRoleType>[% element.UserAddressRoleType | xml %]</UserAddressRoleType>
45 [% IF element.PhysicalAddress -%]
46 <PhysicalAddress>
47 <StructuredAddress>
48 <Line1>[% element.PhysicalAddress.Line1 | xml %]</Line1>
49 [% IF element.PhysicalAddress.Line2 -%]
50 <Line2>[% element.PhysicalAddress.Line2 | xml %]</Line2>
51 [% END -%]
52 [% IF element.PhysicalAddress.Locality -%]
53 <Locality>[% element.PhysicalAddress.Locality | xml %]</Locality>
54 [% END -%]
55 [% IF element.PhysicalAddress.Region -%]
56 <Region>[% element.PhysicalAddress.Region | xml %]</Region>
57 [% END -%]
58 [% IF element.PhysicalAddress.PostalCode -%]
59 <PostalCode>[% element.PhysicalAddress.PostalCode | xml %]</PostalCode>
60 [% END -%]
61 [% IF element.PhysicalAddress.Country -%]
62 <Country>[% element.PhysicalAddress.Country | xml %]</Country>
63 [% END -%]
64 </StructuredAddress>
65 </PhysicalAddress>
66 [% ELSIF element.ElectronicAddress -%]
67 <ElectronicAddress>
68 <ElectronicAddressType>[% element.ElectronicAddress.Type | xml %]</ElectronicAddressType>
69 <ElectronicAddressData>[% element.ElectronicAddress.Data | xml %]</ElectronicAddressData>
70 </ElectronicAddress>
71 [% END -%]
72 </UserAddressInformation>
73 [% END -%]
74 [% END -%]
75 [% IF data.UserOptionalFields.UserPrivilege -%]
76 [% FOREACH privilege IN data.UserOptionalFields.UserPrivilege -%]
77 <UserPrivilege>
78 <AgencyId>[% privilege.AgencyId | xml -%]</AgencyId>
79 <AgencyUserPrivilegeType>[% privilege.AgencyUserPrivilegeType | xml %]</AgencyUserPrivilegeType>
80 [% IF privilege.ValidFromDate -%]
81 <ValidFromDate>[% privilege.ValidFromDate | xml %]</ValidFromDate>
82 [% END -%]
83 [% IF privilege.ValidToDate -%]
84 <ValidToDate>[% privilege.ValidToDate | xml %]</ValidToDate>
85 [% END -%]
86 [% IF privilege.UserPrivilegeDescription -%]
87 <UserPrivilegeDescription>[% privilege.UserPrivilegeDescription | xml %]</UserPrivilegeDescription>
88 [% END -%]
89 [% IF privilege.UserPrivilegeStatus -%]
90 <UserPrivilegeStatus>
91 <UserPrivilegeStatusType>
92 [% privilege.UserPrivilegeStatus.UserPrivilegeStatusType | xml %]
93 </UserPrivilegeStatusType>
94 [% IF privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus -%]
95 <DateOfUserPrivilegeStatus>
96 [% privilege.UserPrivilegeStatus.DateOfUserPrivilegeStatus | xml %]
97 </DateOfUserPrivilegeStatus>
98 [% END -%]
99 </UserPrivilegeStatus>
100 [% END -%]
101 </UserPrivilege>
102 [% END -%]
103 [% END -%]
104 [% IF data.UserOptionalFields.UserLanguage -%]
105 [% FOREACH language IN data.UserOptionalFields.UserLanguage -%]
106 <UserLanguage>[% language | xml %]</UserLanguage>
107 [% END -%]
108 [% END -%]
109 [% IF data.UserOptionalFields.BlockOrTrap -%]
110 [% FOREACH block IN data.UserOptionalFields.BlockOrTrap -%]
111 <BlockOrTrap>
112 <AgencyId>[% block.AgencyId | xml %]</AgencyId>
113 <BlockOrTrapType>[% block.BlockOrTrapType | xml %]</BlockOrTrapType>
114 [% IF block.ValidFromDate -%]
115 <ValidFromDate>[% block.ValidFromDate %]</ValidFromDate>
116 [% END -%]
117 [% IF block.ValidToDate -%]
118 <ValidToDate>[% block.ValidToDate %]</ValidToDate>
119 [% END %]
120 </BlockOrTrap>
121 [% END -%]
122 [% END -%]
123 </UserOptionalFields>
124 [% END -%]