Re: [Koha] Equals sign in a macro?
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 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@lists.katipo.co.nz > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha > ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Equals sign in a macro?
Hi Tasha We've also had trouble with equals signs in macros - I'd be interested to know if there was a fix for this. With kind regards from the Dalton McCaughey Library Team Carlos Lopez Dalton McCaughey Library | 29 College Crescent, Parkville, VICTORIA 3052 Ph: 03 9340 ext.1 | libr...@dml.vic.edu.au | library.dmlibrary.org.au -Original Message- From: Koha On Behalf Of Bales (US), Tasha R Sent: Tuesday, 22 February 2022 3:03 PM To: koha@lists.katipo.co.nz Subject: [Koha] Equals sign in a macro? 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@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
[Koha] Equals sign in a macro?
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@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha