From c601ee306f798d3ba4771fc4520eed53964e358d 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 (cherry picked from commit ec7fff647d547c9ff5adadcb4c1cb35bc4ea7baf) Signed-off-by: Fridolin Somers --- 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 6b9532dd31..f14df9050d 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 AuthorisedValues %] +[%#- +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 = AuthorisedValues.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 6db7e2401a..21bde2c36f 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 AuthorisedValues %] +[%#- +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 = AuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] [% IF ( av_lib_include ) %] -- 2.39.5