Koha/koha-tmpl/opac-tmpl/prog
Owen Leonard 559091c558 Fix for Bug 6364 - Display of item availability broken on OPAC detail screen
Owen:

The markup for showing item availability has been moved to an include
file. The include lacked the scope declaration for the item results
loop. Adding the scope declaration to the include file means it can't
be used by other template unless within the same scope, but I'm not
aware of a better way to do it given the number of variables in use.

Frédéric:

I confirm the bug.

I propose a alternative solution which solve the bug and keep its
versability-reusability to the include file. With this solution, when including
item-status.inc, the foreach loop variable name, which can change from template
to template, is renamed by using a local variable definition: ie a variable
name specified after file name in the INCLUDE directive, this variable
temporalily masking any existing variable.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-05-29 15:49:50 +12:00
..
en Fix for Bug 6364 - Display of item availability broken on OPAC detail screen 2011-05-29 15:49:50 +12:00
famfamfam Merge remote branch 'colin/QA/bug_4506' into new/enh/bug_4506 2010-12-14 21:07:15 +13:00
images Fix for Bug 3347 - Inconsistencies with tables in opac-shelves.tmpl 2011-01-06 08:40:49 +13:00
itemtypeimg Bug 5917 : Swapping templates over 2011-04-10 20:38:30 +12:00