The POD of C4::Koha::GetSupportList() has an example of how to create an item type selector based on the output of the function, but it uses the old template syntax, not TT syntax.
Created attachment 20483 [details] [review] Bug 10765 - 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.
Created attachment 20495 [details] [review] 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.
Created attachment 20501 [details] [review] 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.
Pushed to master. Thanks, Owen!
This patch has been pushed to 3.12.x, will be in 3.12.5. Thanks Owen!
Pushed to 3.10.x, will be in 3.10.11
Pushed to 3.8.x, will be in 3.8.20.