]> git.evergreen-ils.org Git - working/NCIPServer.git/blob - templates/problem.tt
Finishing? the CheckInItem handler
[working/NCIPServer.git] / templates / problem.tt
1 [% INCLUDE 'includes/header.inc' %]
2 <NCIPMessage>
3   <[% messagetype %]>
4     [% IF processingerror %]
5     <Problem>
6       <ProcessingError>
7         [% FOREACH errormessage IN processingerrortype.keys %]
8           <ProcessingErrorType>
9             <Value>
10             [% SWITCH errormessage %]
11               [% CASE 'BadBarcode' %]
12                 We could not find an item with that barcode
13               [% CASE 'NotIssued' %]
14                 The item is not on loan
15               [% END %]
16
17           </Value>
18         </ProcessingErrorType>
19         [% END %]
20      [% END %]
21         <ProcessingErrorElement>
22           <ElementName>[% processingerrorelement %]</ElementName>
23           <ProcessingErrorValue>[% barcode %]</ProcessingErrorValue>
24         </ProcessingErrorElement>
25       </ProcessingError> 
26       <ProblemDetail>[% error_detail %]</ProblemDetail>
27     </Problem>
28   </[% messagetype %]>
29 </NCIPMessage>
30