Bug 10765 - [SIGNED-OFF] Update POD of C4::Koha::GetSupportList() to use TT syntax
This patch updates the example template syntax in the POD for C4::Koha::GetSupportList() to use Template Toolkit syntax. To test, view the POD for C4::Koha::GetSupportList() and confirm that it looks correct. Signed-off-by: Magnus Enger <magnus@enger.priv.no> This patch works as advertised (verified with "perldoc C4::Koha"), for GetSupportList, but it does not fix a a similar example for GetItemTypes, getauthtypes and getframework in the same file, which still has the old template syntax. So a followup or separate bug(s) for those are 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>
This commit is contained in:
parent
50ff4f4a94
commit
3429e5e16d
1 changed files with 10 additions and 10 deletions
20
C4/Koha.pm
20
C4/Koha.pm
|
@ -174,16 +174,16 @@ build a HTML select with the following code :
|
|||
|
||||
=head3 in TEMPLATE
|
||||
|
||||
<form action='<!-- TMPL_VAR name="script_name" -->' method=post>
|
||||
<select name="itemtype">
|
||||
<option value="">Default</option>
|
||||
<!-- TMPL_LOOP name="itemtypeloop" -->
|
||||
<option value="<!-- TMPL_VAR name="itemtype" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->> <!--TMPL_IF Name="imageurl"--><img alt="<!-- TMPL_VAR name="description" -->" src="<!--TMPL_VAR Name="imageurl"-->><!--TMPL_ELSE-->"<!-- TMPL_VAR name="description" --><!--/TMPL_IF--></option>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</select>
|
||||
<input type=text name=searchfield value="<!-- TMPL_VAR name="searchfield" -->">
|
||||
<input type="submit" value="OK" class="button">
|
||||
</form>
|
||||
<select name="itemtype" id="itemtype">
|
||||
<option value=""></option>
|
||||
[% FOREACH itemtypeloo IN itemtypeloop %]
|
||||
[% IF ( itemtypeloo.selected ) %]
|
||||
<option value="[% itemtypeloo.itemtype %]" selected="selected">[% itemtypeloo.description %]</option>
|
||||
[% ELSE %]
|
||||
<option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.description %]</option>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</select>
|
||||
|
||||
=cut
|
||||
|
||||
|
|
Loading…
Reference in a new issue