Bug 11179: (follow-up) add comment to item-status.inc
authorGalen Charlton <gmc@esilibrary.com>
Thu, 19 Dec 2013 17:02:19 +0000 (17:02 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 19 Dec 2013 17:02:19 +0000 (17:02 +0000)
This patch adds a comment to item-status.inc to describe
the parameters it can accept.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc
koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc

index fa3a919..4b77040 100644 (file)
@@ -1,5 +1,12 @@
 [% USE KohaAuthorisedValues %]
 
+[%#-
+This include takes two parameters: an item structure
+and an optional loan (issue) structure.  The issue
+structure is used by course reserves pages, which do
+not use an API to fetch items that populates item.datedue.
+-%]
+
 [% IF ( item.itemlost ) %]
     [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
     [% IF ( av_lib_include ) %]
index a3f0b79..19234f7 100644 (file)
@@ -1,5 +1,12 @@
 [% USE KohaAuthorisedValues %]
 
+[%#-
+This include takes two parameters: an item structure
+and an optional loan (issue) structure.  The issue
+structure is used by course reserves pages, which do
+not use an API to fetch items that populates item.datedue.
+-%]
+
 [% IF ( item.itemlost ) %]
     [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %]
     [% IF ( av_lib_include ) %]