@selflessself Replying to you here to not spam the userscript announcement topic too much.
For everyone who wasn’t aware yet: The latest version of the work importer script adds code validation and formatting to all agency identifier types supported by MB right now. It’s still in an experimental phase, so it’s not enabled by default yet. In terms of formatting, it’ll remove leading zeroes, add the punctuation in the same way the code appears on the agency’s own repertory search (e.g., the dashes in JASRAC codes), and it’ll also attempt to remove suffixes added by ISWCNet to Latin American agency codes. If you find any problems, please let me know.
As for @selflessself’s question of adding a JASRAC importer, IIRC it shouldn’t be too difficult to add a new source to the script, so I’ll look into it. I think @jesus2099 has/had a JASRAC work importer already though.
Edited to add: I’ve just added a small new userscript to my repo to highlight such invalid or ill-formatted work codes: MB: Validate Work Codes. I’m only posting this here because probably only the hardcore work identifier editors will find this useful (or if you really like orange text). If you like colourful pages, install that script and check out this collection.