]> git.evergreen-ils.org Git - working/NCIPServer.git/blob - templates/problem.tt
Got CheckOutItem going
[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               [% CASE 'RESERVED' %]
16                 The item is on hold for another borrower
17               [% CASE 'RENEW_ISSUE' %]
18                 This item is already on loan to this borrower
19               [% END %]
20                
21           </Value>
22         </ProcessingErrorType>
23         [% END %]
24      [% END %]
25         <ProcessingErrorElement>
26           <ElementName>[% processingerrorelement %]</ElementName>
27           <ProcessingErrorValue>[% barcode %]</ProcessingErrorValue>
28         </ProcessingErrorElement>
29       </ProcessingError> 
30       <ProblemDetail>[% error_detail %]</ProblemDetail>
31     </Problem>
32   </[% messagetype %]>
33 </NCIPMessage>
34