Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 70bf901

Browse files
committedMar 9, 2025·
fix(work codes): add ACUM ID
fixes ACUM ID format #804 update script version
1 parent dae83e7 commit 70bf901

3 files changed

+6
-3
lines changed
 

‎lib/work_identifiers.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* API for work identifiers. See inline docs.
33
*/
44
const MBWorkIdentifiers = (() => {
5-
const VERSION = '2023.12.07'; // Just for use in edit notes, really.
5+
const VERSION = '2025.03.09'; // Just for use in edit notes, really.
66

77
/**
88
* Helper for LatinNet agencies. Returns a validation/formatting ruleset
@@ -46,6 +46,9 @@ const MBWorkIdentifiers = (() => {
4646
},
4747
'ACAM ID': latinNetID('107'),
4848
'ACDAM ID': latinNetID('103'),
49+
'ACUM ID': {
50+
inRegexp: /[0-9A-Z]{0,14}/,
51+
},
4952
'AEI ID': latinNetID('250'),
5053
'AGADU ID': latinNetID('004'),
5154
'AKKA/LAA ID': [{

‎mb_bulk_copy_work_codes.user.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// @match *://*.musicbrainz.org/release/*/edit-relationships
1616
// @match *://musicbrainz.org/*/create
1717
// @match *://*.musicbrainz.org/*/create
18-
// @require https://raw.github.com/ROpdebee/mb-userscripts/main/lib/work_identifiers.js?v=2023.12.07
18+
// @require https://raw.github.com/ROpdebee/mb-userscripts/main/lib/work_identifiers.js?v=2025.03.09
1919
// @run-at document-end
2020
// @grant GM_getValue
2121
// @grant GM_setValue

‎mb_validate_work_codes.user.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// @match *://*.musicbrainz.org/collection/*
1616
// @exclude *://*.musicbrainz.org/work/*/edit
1717
// @require https://code.jquery.com/jquery-3.6.0.min.js
18-
// @require https://raw.github.com/ROpdebee/mb-userscripts/main/lib/work_identifiers.js?v=2023.12.07
18+
// @require https://raw.github.com/ROpdebee/mb-userscripts/main/lib/work_identifiers.js?v=2025.03.09
1919
// @run-at document-end
2020
// ==/UserScript==
2121

0 commit comments

Comments
 (0)
Please sign in to comment.