[Koha] Equals sign in a macro?

Jonathan Druart jonathan.druart at bugs.koha-community.org
Wed Feb 23 23:17:45 NZDT 2022


Hello,
It's definitely a bug, please open a bug report.

This patch may fix the problem but I am not familiar enough with macros

diff --git a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/macros/rancor.js
b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/macros/rancor.js
index e9b484ef600..f25e7273aaf 100644
--- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/macros/rancor.js
+++ b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/macros/rancor.js
@@ -149,7 +149,7 @@ define( [ 'marc-editor' ], function( MARCEditor ) {
                 target.delete();
             }
         } ],
-        [ /^([^=]+)=([^=]*)$/, function( lhs_desc, rhs_desc ) {
+        [ /^([^=]+)=(.*)$/, function( lhs_desc, rhs_desc ) {
             var lhs_closure = _generate( _lhsGenerators, lhs_desc );
             if ( !lhs_closure ) return null;

Regards,
Jonathan

Le mar. 22 févr. 2022 à 05:02, Bales (US), Tasha R <tasha.r.bales at boeing.com>
a écrit :

> I would like to create a Macro that enters the base of a URL.  However, I
> find that I cannot execute the macro due to errors caused by the use of an
> equals sign.  Curly braces also seem to cause a problem.  I played around
> trying to see if I could escape the problem characters, but didn't get
> anywhere.  I also tried substituting in "=" and "=" , which I
> think are HTML codes for "=", just in case, but both seem to be ignored and
> don't make it into the 856 that is created.
>
> Anyone know of a way around this?  Thanks!
>
>
> Tasha Bales
> Enterprise Services
> http://isesi.web.boeing.com/
>
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list