Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing string.replace is not a function. #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rokyed
Copy link

@rokyed rokyed commented May 12, 2021

No description provided.

@fredericd
Copy link
Owner

Thanks for your patch. Do you have sample data triggering the error/warning solved by your patch?

@rokyed
Copy link
Author

rokyed commented May 21, 2021

Thanks for your patch. Do you have sample data triggering the error/warning solved by your patch?

@fredericd if the data appended to the Record is a Number, then this error will rise. I think it's a good idea to fix it at this level, although I will understand if you won't. From what I've read over MARC it should have no implication.

@fredericd
Copy link
Owner

@rokyed could you show me how and where you add a Number to a biblio Record? It will allow me to add a new entry to the module test suite.

@rokyed
Copy link
Author

rokyed commented May 21, 2021

@fredericd

/*redacted*/

let rec = new Record();
rec.append(['001', 123456]);
let resp = rec.as('marcxml');

/*redacted*/

@fredericd
Copy link
Owner

It doesn't trigger an error/warning for me.

@rokyed
Copy link
Author

rokyed commented May 23, 2021

@fredericd that was the only difference in my code that removed the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants