MediaWiki:MarcEditorDynamicLinks.js: mudanças entre as edições

Ir para navegação Ir para pesquisar
imported>Jaideraf
Sem resumo de edição
imported>Jaideraf
(+ BN view)
text: "Criar autoridade"
});
let patternpattern1 = /\$0\sA\d{6}/;
let pattern2 = /\$0\s\(BN\)\d{9}/;
authorityLink.hide();
$(this).closest("table").find(".createAuthorityLink").html(authorityLink);
$(this).focusout(function() {
// if already recorded
if (patternpattern1.test($(this).val())) {
// 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")