]> git.evergreen-ils.org Git - working/NCIPServer.git/blob - templates/problem.tt
Merge branch 'master' into masslnc
[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               [% CASE 'NO_HOLD_BORROWER' %]
21                  We can not place a hold, we have no borrower information
22               [% CASE 'Wrongbranch' %]
23                  We are trying to check this item in at the wrong branch
24               [% CASE 'BORROWER_NOT_FOUND' %]
25                 We can not place a request, we have no borrower information
26               [% CASE 'ITEM_NOT_FOUND' %]
27                  We can not place a request, we have no item information
28               [% CASE 'ITEMNOTSAMEBRANCH' %]
29                  Circulation rules stop this borrower from checking out this item, the borrower and item are not from the same branch
30               [% END %]
31                
32           </Value>
33         </ProcessingErrorType>
34         [% END %]
35      [% END %]
36         <ProcessingErrorElement>
37           <ElementName>[% processingerrorelement | xml %]</ElementName>
38           <ProcessingErrorValue>[% barcode | xml %]</ProcessingErrorValue>
39         </ProcessingErrorElement>
40       </ProcessingError> 
41       <ProblemDetail>[% error_detail | xml %]</ProblemDetail>
42     </Problem>
43   </[% messagetype %]>
44