Bugzilla – Attachment 148841 Details for
Bug 33335
MARC overlay rules broken because of "categorycode.categorycode " which contains "-"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33335: fix marc overlay rules accept '-'
Bug-33335-fix-marc-overlay-rules-accept--.patch (text/plain), 1.67 KB, created by
Marius
on 2023-03-28 16:17:09 UTC
(
hide
)
Description:
Bug 33335: fix marc overlay rules accept '-'
Filename:
MIME Type:
Creator:
Marius
Created:
2023-03-28 16:17:09 UTC
Size:
1.67 KB
patch
obsolete
>From 2d4c85ab1002c5d4f7c7a8823cace0c5c938412c Mon Sep 17 00:00:00 2001 >From: Marius Mandrescu <marius.mandrescu@inLibro.com> >Date: Tue, 28 Mar 2023 12:04:49 -0400 >Subject: [PATCH] Bug 33335: fix marc overlay rules accept '-' > >--- > .../en/modules/admin/marc-overlay-rules.tt | 18 ++++++++++-------- > 1 file changed, 10 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >index 348686ddad..ea588a743d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >@@ -453,8 +453,14 @@ > } > }); > >+ var $category = {}; >+ >+ [% FOR categorycode IN categorycodes %] >+ $category["[% categorycode.categorycode %]"] = "[% categorycode.description | html %]"; >+ [% END %] >+ > var module_filter_options = { >- source: { >+ source: { > '*': '*', > batchmod: _("Batch record modification"), > intranet: _("Staff client MARC editor"), >@@ -462,13 +468,9 @@ > z3950: _("Z39.50"), > /* bulkmarcimport: _("bulkmarcimport.pl"), */ > import_lexile: _("import_lexile.pl") >- }, >- categorycode: { >- '*': '*', >- [% FOREACH categorycode IN categorycodes %] >- [% categorycode.categorycode | html %]: "[% categorycode.description | html %]", >- [% END %] >- } >+ }, >+ >+ categorycode: $category > }; > > //Kind of hack: Replace filter value with label when one exist >-- >2.34.1
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 33335
:
148696
|
148841
|
149253
|
150521
|
151116
|
151119
|
151120
|
151121