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