From 4252e0eb240e7dcce94c1f35444386c5e68a7d6e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 5 May 2014 00:13:28 +0000 Subject: [PATCH] Bug 9468: make av-build-dropbox.inc available to OPAC This patch makes the av-build-dropbox.inc template include introduced by the latest patches for bug 766 available to the prog and Bootstrap themes in the OPAC. See later patches in this series for testing. Signed-off-by: Galen Charlton Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart Amended patch: Remove OPAC prog file Signed-off-by: Jonathan Druart --- .../bootstrap/en/includes/av-build-dropbox.inc | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc new file mode 100644 index 0000000..0853685 --- /dev/null +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc @@ -0,0 +1,29 @@ +[% USE AuthorisedValues %] +[%# + Parameters: + name: the name of the select element + category: the authorised value category + default: the default authorised value to select + class: the CSS class of the select element + size: the size to use for the input (generated if the authorised value category does not exist). +%] + +[% SET avs = AuthorisedValues.GetAuthValueDropbox( category, default ) %] +[% DEFAULT + class = '' + size = 20 +%] + +[% IF avs %] + +[% ELSE %] + +[% END %] -- 2.1.0