MediaWiki:MarcEditorDynamicLinks.js: mudanças entre as edições
Ir para navegação
Ir para pesquisar
MediaWiki:MarcEditorDynamicLinks.js (ver código-fonte)
Edição das 13h45min de 16 de agosto de 2022
, há 1 anosem sumário de edição
imported>Jaideraf Sem resumo de edição |
imported>Jaideraf Sem resumo de edição |
||
// Author: @vitorsilverio
// Author: @jaideraf
if (document.readyState === "complete" || (document.readyState !== "loading")) {▼
main();▼
} else {▼
document.addEventListener("DOMContentLoaded", main);▼
}▼
function main() {
`Documentação do campo
if (window.location.href.match(/A\d{6}/) ||▼
marcFieldHelpLink.setAttribute("href",▼
||
} else
▲ });
`https://www.loc.gov/marc/bibliographic/bd${tagFromDropdown}.html`
}
});
});
}
);
▲ // build the URL for BN aut record view
} else if (pattern2.test(elem.value)) {
authorityLink.innerText = "Ver autoridade na BN";▼
// build the URL for BN aut record
} else {
// .find(".select2-chosen").text();▼
// find the tag value from the chosen
tagFromDropdown = elem.closest('.instanceMain')
.querySelector(".select2-selection__rendered")▼
// PageForms
tagFromDropdown = tagFromDropdown.substring(0, 3);▼
.getAttribute('title');
// find the tag value from checked radio button
|| tagFromDropdown ===
|| tagFromDropdown ===
▲ } else {
▲ }
▲ };
makeUrlParams(autRecordParams);▼
authorityLink.innerText = "Criar autoridade";▼
authorityLink.setAttribute("href", url.pathname + url.search);▼
}
} else
}
}
};
}
authorityLink.style.display = '';
});
});
}
▲ });
});
});
▲}
▲} else {
}
|