Bug 22870 - When adding a '#' into Rancor with a macro, the special character gets removed
Summary: When adding a '#' into Rancor with a macro, the special character gets removed
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 18.05
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-08 21:15 UTC by Kelly McElligott
Modified: 2019-05-10 18:10 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelly McElligott 2019-05-08 21:15:56 UTC
A library's code to insert into their records has the value of # in it.  When this is added to a macro and that macro is run in the Advanced Editor, the # gets removed and does not get input into the record.

1. Create a macro to insert 

new 040=‡cBE#

2. Run this macro

3. The record will have the 040$c BE in the record, but Koha has dropped the #
Comment 1 Jonathan Druart 2019-05-10 18:10:48 UTC
From cateditor/macros/rancor.js:
238                 contents = contents.replace( /#.*$/, '' );

So it's expected, what's following # is considered as a comment