Bug 10764 - Update POD of C4::Items::GetItemStatus() to use TT syntax

This patch updates the example template syntax in the POD for
C4::Items::GetItemStatus() to use Template Toolkit syntax.

To test, view the POD for C4::Items::GetItemStatus() and confirm that it
looks correct.

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
This patch works as advertised (verified with "perldoc C4::Items"),
for GetItemStatus, but it does not fix a a similar example for
GetItemLocation in the same file, which still has the old template
syntax. So a followup or separate bug for that is called for.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
It seems the default option is not in used in templates.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit d515457c71)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 3ca258cd4a)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 3ca258cd4a)
Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry picked from commit bc26b55dfb)
This commit is contained in:
Owen Leonard 2013-08-19 11:37:55 -04:00 committed by Chris Hall
parent 85402ac86b
commit 081f6a3ef3
1 changed files with 10 additions and 6 deletions

View File

@ -750,12 +750,16 @@ Create a status selector with the following code
=head3 in TEMPLATE
<select name="statusloop">
<option value="">Default</option>
<!-- TMPL_LOOP name="statusloop" -->
<option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="statusname" --></option>
<!-- /TMPL_LOOP -->
</select>
<select name="statusloop" id="statusloop">
<option value="">Default</option>
[% FOREACH statusloo IN statusloop %]
[% IF ( statusloo.selected ) %]
<option value="[% statusloo.value %]" selected="selected">[% statusloo.statusname %]</option>
[% ELSE %]
<option value="[% statusloo.value %]">[% statusloo.statusname %]</option>
[% END %]
[% END %]
</select>
=cut