Bugzilla – Attachment 37100 Details for
Bug 9468
Add ability to hide itemtypes from purchase suggestions forms
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 9468: [COUNTER-PATCH] make av-build-dropbox.inc available to OPAC
SIGNED-OFF-Bug-9468-COUNTER-PATCH-make-av-build-dr.patch (text/plain), 3.40 KB, created by
Kyle M Hall (khall)
on 2015-03-23 10:55:53 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9468: [COUNTER-PATCH] make av-build-dropbox.inc available to OPAC
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-03-23 10:55:53 UTC
Size:
3.40 KB
patch
obsolete
>From 274710feb327bea6d9846f00947d4610bddcab80 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Mon, 5 May 2014 00:13:28 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 9468: [COUNTER-PATCH] 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 <gmc@esilibrary.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../bootstrap/en/includes/av-build-dropbox.inc | 29 ++++++++++++++++++++ > .../prog/en/includes/av-build-dropbox.inc | 29 ++++++++++++++++++++ > 2 files changed, 58 insertions(+), 0 deletions(-) > create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc > create mode 100644 koha-tmpl/opac-tmpl/prog/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 %] >+ <select id="[% name %]" name="[% name %]" class="[% class %]" > >+ [% FOR av IN avs %] >+ [% IF av.default %] >+ <option value="[% av.value %]" selected="selected">[% av.label | html_entity %]</option> >+ [% ELSE %] >+ <option value="[% av.value %]">[% av.label | html_entity %]</option> >+ [% END %] >+ [% END %] >+ </select> >+[% ELSE %] >+ <input type="text" id="[% name %]" name="[% name %]" size="[% size %]" value="[% default | html_entity %]" class="[% class %]" /> >+[% END %] >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/av-build-dropbox.inc b/koha-tmpl/opac-tmpl/prog/en/includes/av-build-dropbox.inc >new file mode 100644 >index 0000000..0853685 >--- /dev/null >+++ b/koha-tmpl/opac-tmpl/prog/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 %] >+ <select id="[% name %]" name="[% name %]" class="[% class %]" > >+ [% FOR av IN avs %] >+ [% IF av.default %] >+ <option value="[% av.value %]" selected="selected">[% av.label | html_entity %]</option> >+ [% ELSE %] >+ <option value="[% av.value %]">[% av.label | html_entity %]</option> >+ [% END %] >+ [% END %] >+ </select> >+[% ELSE %] >+ <input type="text" id="[% name %]" name="[% name %]" size="[% size %]" value="[% default | html_entity %]" class="[% class %]" /> >+[% END %] >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9468
:
14801
|
16647
|
16674
|
19086
|
21759
|
21760
|
22714
|
22715
|
27932
|
27933
|
27934
|
27935
|
37100
|
37101
|
37102
|
37103
|
38097
|
38163
|
38164
|
38165
|
38166
|
38167
|
38168
|
41822
|
41823
|
41824
|
41825
|
41826
|
41827
|
41828
|
41936
|
41937
|
41938
|
41939
|
41940
|
41941
|
41942
|
41943
|
44504
|
44505
|
44506
|
44507
|
44508
|
44509
|
44510