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

do normalization of fields #249

Closed
annetteholtkamp opened this issue Apr 10, 2017 · 4 comments
Closed

do normalization of fields #249

annetteholtkamp opened this issue Apr 10, 2017 · 4 comments

Comments

@annetteholtkamp
Copy link

The schema enforces patterns on some fields (e.g. ISBN without dashes), so if a field does not conform to the pattern an error is raised. It would by nice if the editor could do some normalization (e.g. stripping the dashes from the ISBN) so the curator doesn't have to.

@annetteholtkamp
Copy link
Author

(@michamos wrote this on my computer)

@harunurhan
Copy link
Contributor

@michamos So this is like, you have to run a function after a particular a field edited (value changed and enter is clicked or unfocused) and normalize the field?

@michamos
Copy link

michamos commented Nov 13, 2017

👍 for example for ISBNs you could use asIsbn13() from https://www.npmjs.com/package/isbn, for all fields you could trim (if not already implemented).

@harunurhan
Copy link
Contributor

Moved to inspirehep/record-editor#247

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

No branches or pull requests

3 participants