Bugzilla – Attachment 186901 Details for
Bug 40873
AV dropdowns in OPAC don't use lib_opac values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40873: AV dropdowns in OPAC don't use lib_opac
Bug-40873-AV-dropdowns-in-OPAC-dont-use-libopac.patch (text/plain), 1.65 KB, created by
Eric Phetteplace
on 2025-09-24 19:51:43 UTC
(
hide
)
Description:
Bug 40873: AV dropdowns in OPAC don't use lib_opac
Filename:
MIME Type:
Creator:
Eric Phetteplace
Created:
2025-09-24 19:51:43 UTC
Size:
1.65 KB
patch
obsolete
>From 918ef61cf6249475e64bd21015040acf19971382 Mon Sep 17 00:00:00 2001 >From: phette23 <phette23@gmail.com> >Date: Wed, 24 Sep 2025 12:49:22 -0700 >Subject: [PATCH] Bug 40873: AV dropdowns in OPAC don't use lib_opac > >To test (ktd): >- Sign into the admin side >- Go to Administration > Authorized Values >- Edit or add to SUGGEST_FORMAT such that one AV has a different lib_opac >- Sign into the public catalog >- Go to purchase suggestions /cgi-bin/koha/opac-suggestions.pl?op=add_form >- Note that the AV in the 'Item type' dropdown does not use your lib_opac text >- Apply the patch and refresh the page >- Now the AV uses the lib_opac text > >Sponsored-By: California College of the Arts >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 >index c26f1adb01..7061a4027b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc >@@ -15,7 +15,7 @@ > <option value="">None</option> > [% END %] > [% FOR av IN avs %] >- <option value="[% av.authorised_value | html %]" [% IF av.authorised_value == default %]selected="selected"[% END %]>[% av.lib | html_entity %]</option> >+ <option value="[% av.authorised_value | html %]" [% IF av.authorised_value == default %]selected="selected"[% END %]>[% IF av.lib_opac %][% av.lib_opac | html_entity %][% ELSE %][% av.lib | html_entity %][% END %]</option> > [% END %] > </select> > [% ELSE %] >-- >2.51.0
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 40873
: 186901