From ec7fff647d547c9ff5adadcb4c1cb35bc4ea7baf Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 19 Dec 2013 17:02:19 +0000 Subject: [PATCH] Bug 11179: (follow-up) add comment to item-status.inc This patch adds a comment to item-status.inc to describe the parameters it can accept. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc | 7 +++++++ koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc index fa3a919752..4b77040576 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc @@ -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 ) %] diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc index a3f0b79bc4..19234f7413 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc @@ -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 ) %]