MediaWiki:MarcEditorDynamicLinks.js (ver código-fonte)
Edição das 17h06min de 28 de março de 2021
, há 3 anos+ BN view
imported>Jaideraf Sem resumo de edição |
imported>Jaideraf (+ BN view) |
||
text: "Criar autoridade"
});
let
let pattern2 = /\$0\s\(BN\)\d{9}/;
authorityLink.hide();
$(this).closest("table").find(".createAuthorityLink").html(authorityLink);
$(this).focusout(function() {
// if already recorded
if (
// build the URL for Wikincat aut record edit
authorityLink.text("Editar autoridade");
authorityLink.attr("href", "/wiki/Special:FormEdit/AutRecord/Autoridade:" +
$(this).val().match(/A\d{6}/));
} else if (pattern2.test($(this).val())) {
// build the URL for BN aut record view
authorityLink.text("Ver autoridade na BN");
authorityLink.attr("href", "http://acervo.bn.br/sophia_web/autoridade/detalhe/" +
$(this).val().match(/\d{9}/));
} else {
// find the tag value from the chosen dropdown
tagFromDropdown = $(this).closest(".instanceMain")
|