]> git.evergreen-ils.org Git - working/NCIPServer.git/blob - templates/problem.tt
It is now responding correctly
[working/NCIPServer.git] / templates / problem.tt
1 [%# INCLUDE 'includes/header.inc' %]
2   <[% messagetype %]>
3     [% IF processingerror %]
4     <Problem>
5       <ProcessingError>
6         [% FOREACH errormessage IN processingerrortype.keys %]
7           <ProcessingErrorType>
8             <Value>
9             [% SWITCH errormessage %]
10               [% CASE 'BadBarcode' %]
11                 We could not find an item with that barcode
12               [% CASE 'NotIssued' %]
13                 The item is not on loan
14               [% CASE 'RESERVED' %]
15                 The item is on hold for another borrower
16               [% CASE 'RENEW_ISSUE' %]
17                 This item is already on loan to this borrower
18               [% CASE 'NO_HOLD' %]
19                 There is no hold on this item
20               [% END %]
21                
22           </Value>
23         </ProcessingErrorType>
24         [% END %]
25      [% END %]
26         <ProcessingErrorElement>
27           <ElementName>[% processingerrorelement %]</ElementName>
28           <ProcessingErrorValue>[% barcode %]</ProcessingErrorValue>
29         </ProcessingErrorElement>
30       </ProcessingError> 
31       <ProblemDetail>[% error_detail %]</ProblemDetail>
32     </Problem>
33   </[% messagetype %]>
34 </NCIPMessage>
35