Skip to content

Commit

Permalink
Fix ISNI node selection on Wikidata script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome-Roy authored and loujine committed Nov 24, 2024
1 parent a407fc5 commit 3858c08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mb-edit-create_from_wikidata.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @name MusicBrainz edit: Create entity or fill data from wikipedia / wikidata / VIAF / ISNI
// @namespace mbz-loujine
// @author loujine
// @version 2023.3.11
// @version 2024.11.24
// @downloadURL https://raw.githubusercontent.com/loujine/musicbrainz-scripts/master/mb-edit-create_from_wikidata.user.js
// @updateURL https://raw.githubusercontent.com/loujine/musicbrainz-scripts/master/mb-edit-create_from_wikidata.user.js
// @supportURL https://github.com/loujine/musicbrainz-scripts
Expand Down Expand Up @@ -350,8 +350,8 @@ function setValue(nodeId, value, callback) {

function fillISNI(isni) {
const existing_isni = [];
const isniBlock = document.getElementsByClassName(
'edit-artist.isni_codes-template')[0].parentElement;
const isniBlock = document.getElementById(
'add-isni-code').parentElement.parentElement;
const fields = isniBlock.getElementsByTagName('input');
for (const input of fields) {
existing_isni.push(input.value.split(' ').join(''));
Expand Down

0 comments on commit 3858c08

Please sign in to comment.