| Lines 1-12
          
      
      
        Link Here | 
        
          | 1 | [% USE AuthorisedValues %] | 1 | [% USE AuthorisedValues %] | 
        
          | 2 | [% SET itemavailable = 1 %] | 2 | [% SET itemavailable = 1 %] | 
        
          | 3 |  | 3 |  | 
          
            
              | 4 | [%#- | 4 | [%#- This include takes two parameters: an item structure -%] | 
            
              | 5 | This include takes two parameters: an item structure | 5 | [%#- and an optional loan (issue) structure.  The issue -%] | 
            
              | 6 | and an optional loan (issue) structure.  The issue | 6 | [%#- structure is used by course reserves pages, which do -%] | 
            
              | 7 | structure is used by course reserves pages, which do | 7 | [%#- not use an API to fetch items that populates item.datedue. -%] | 
            
              | 8 | not use an API to fetch items that populates item.datedue. |  |  | 
            
              | 9 | -%] | 
        
          | 10 |  | 8 |  | 
        
          | 11 | [% IF ( item.itemlost ) %] | 9 | [% IF ( item.itemlost ) %] | 
        
          | 12 |     [% SET itemavailable = 0 %] | 10 |     [% SET itemavailable = 0 %] | 
            
              | 13 | -  |  |  |