MediaWiki:AddressFromCep.js e B000064: mudanças entre as páginas
(Diferenças entre páginas)
Ir para navegação
Ir para pesquisar
imp>Jaider (version without jQuery) |
imported>Bastrosy Sem resumo de edição |
||
Linha 1: | Linha 1: | ||
{{BibRecord |
|||
// Adapted from https://viacep.com.br/exemplo/javascript/ |
|||
|dateEnteredOnFile=230911 |
|||
function cleanAddressesFields() { |
|||
|itemType=03 |
|||
// It cleans values from addresses fields. |
|||
|recordStatus=n |
|||
document.getElementById("input_6").value = (""); |
|||
|typeOfRecord=i |
|||
document.getElementById("input_7").value = (""); |
|||
|bibliographicLevel=m |
|||
document.getElementById("input_8").value = (""); |
|||
|encodingLevel= |
|||
document.getElementById("input_9").value = (""); |
|||
|descriptiveCatalogingForm=a |
|||
} |
|||
|multipartResourceRecordLevel= |
|||
function myCallback(dados) { |
|||
|typeOfDate=s |
|||
if (!("erro" in dados)) { |
|||
|date2=2008 |
|||
// It updates the addresses fields with the data from the query. |
|||
|placeOfPublication=spb |
|||
document.getElementById("input_6").value = (dados.logradouro); |
|||
|illustrations= |
|||
document.getElementById("input_7").value = (dados.bairro); |
|||
|targetAudience=g |
|||
document.getElementById("input_8").value = (dados.localidade); |
|||
|formOfItem=q |
|||
document.getElementById("input_9").value = (dados.uf); |
|||
|natureOfContents= |
|||
} |
|||
|governmentPublication= |
|||
else { |
|||
|conferencePublication= |
|||
// The CEP searched was not found. |
|||
|festschrift= |
|||
cleanAddressesFields(); |
|||
|index= |
|||
alert("CEP não encontrado."); |
|||
|literaryForm=1 |
|||
} |
|||
|biography=d |
|||
} |
|||
|language=por |
|||
function searchCep(value) { |
|||
|modifiedRecord= |
|||
// A new variable "cep" is made with only digits. |
|||
|catalogingSource=d |
|||
let cep = value.replace(/\D/g, ""); |
|||
}} |
|||
// Testing if the CEP variable has any value. |
|||
{{Field |
|||
if (cep !== "") { |
|||
|tag=020 |
|||
// Regular expression to validate CEP. |
|||
|authorityType=Nenhuma |
|||
let cepValidator = /^[0-9]{8}$/; |
|||
|ind1=# |
|||
// Testing CEP validation. If true... |
|||
|ind2=# |
|||
if (cepValidator.test(cep)) { |
|||
|data=$a 9788561559120 |
|||
// It fills the address fields with "..." while the web service is busy. |
|||
}} |
|||
document.getElementById("input_6").value = "..."; |
|||
{{Field |
|||
document.getElementById("input_7").value = "..."; |
|||
|tag=040 |
|||
document.getElementById("input_8").value = "..."; |
|||
|authorityType=Nenhuma |
|||
document.getElementById("input_9").value = "..."; |
|||
|ind1=# |
|||
// It creates a javaScript element. |
|||
|ind2=# |
|||
let script = document.createElement("script"); |
|||
|data=$a BR-FlWIK $b por $c BR-FlWIK $d BR-FlUSC |
|||
// It sincronizes with callback. |
|||
}} |
|||
script.src = "https://viacep.com.br/ws/" + cep + "/json/?callback=myCallback"; |
|||
{{Field |
|||
// It inserts the script into the document and load the contents. |
|||
|tag=080 |
|||
document.body.appendChild(script); |
|||
|authorityType=Nenhuma |
|||
} |
|||
|ind1=# |
|||
else { |
|||
|ind2=# |
|||
// The CEP is invalid. |
|||
|data=$a 820(73)-31 |
|||
cleanAddressesFields(); |
|||
}} |
|||
alert("Formato de CEP inválido."); |
|||
{{Field |
|||
} |
|||
|tag=090 |
|||
} |
|||
|authorityType=Nenhuma |
|||
else { |
|||
|ind1=# |
|||
// The CEP is empty, it cleans the form fields. |
|||
|ind2=# |
|||
cleanAddressesFields(); |
|||
|data=$a 820(73)-31 $b Y19q |
|||
} |
|||
} |
}} |
||
{{Field |
|||
document.getElementById("input_4").setAttribute("onblur", "searchCep(this.value)"); |
|||
|tag=100 |
|||
|authorityType=Pessoa |
|||
|ind1=1 |
|||
|ind2=# |
|||
|authorityData100=$a Yalom, Irvin D., $d 1931- $0 (BN)000195618 |
|||
}} |
|||
{{Field |
|||
|tag=245 |
|||
|authorityType=Nenhuma |
|||
|ind1=1 |
|||
|ind2=# |
|||
|data=$a Quando Nietzche chorou $h [gravação de som (audiolivro)] / $c Irvin D. Yalom ; na voz de José Wilker |
|||
}} |
|||
{{Field |
|||
|tag=260 |
|||
|authorityType=Nenhuma |
|||
|ind1=# |
|||
|ind2=# |
|||
|data=$a Jurubatuba, SP : $b Plugme, $c [2008?] |
|||
}} |
|||
{{Field |
|||
|tag=300 |
|||
|authorityType=Nenhuma |
|||
|ind1=# |
|||
|ind2=# |
|||
|data=$a CD MP3 (18 horas) |
|||
}} |
|||
{{EndOfRecord}} |
Edição das 16h02min de 11 de setembro de 2023
Título principal
Quando Nietzche chorou [gravação de som (audiolivro)] / Irvin D. Yalom ; na voz de José Wilker
Criado em
Jurubatuba, SP
Publicado por
Plugme
Data de publicação
2008
Descrição física
CD MP3 (18 horas) : digital, estéreo ; 4 3/4 pol.
Série
(Livros para ouvir)
Quando Nietzche chorou [gravação de som (audiolivro)] / Irvin D. Yalom ; na voz de José Wilker
Criado em
Jurubatuba, SP
Publicado por
Plugme
Data de publicação
2008
Descrição física
CD MP3 (18 horas) : digital, estéreo ; 4 3/4 pol.
Série
(Livros para ouvir)
Assunto
Nietzsche, Friedrich Wilhelm, 1844-1900
Breuer, Josef, 1842-1925
Audiolivro
Ficção americana
Responsabilidade
Yalom, Irvin D., 1931-
Wilker, José, 1947-2014
Idioma
Português
ISBN
978-85-61559-12-0
Nietzsche, Friedrich Wilhelm, 1844-1900
Breuer, Josef, 1842-1925
Audiolivro
Ficção americana
Responsabilidade
Yalom, Irvin D., 1931-
Wilker, José, 1947-2014
Idioma
Português
ISBN
978-85-61559-12-0
validar catalogação | ficha catalográfica | referência ABNT | buscar em outras bibliotecas | criar exemplar
exportar: MARC tags, MARCXML, ISO 2709
exportar: MARC tags, MARCXML, ISO 2709
Campo | Ind1 | Ind2 | Dados |
---|---|---|---|
Líder | 00000nim a2200000 a 4500 | ||
001 - Número de controle | B000064 | ||
003 - Identificador do número de controle | BR-FlWIK | ||
005 - Data e hora da última transação | 20230911160253.0 | ||
008 - Informações gerais | 230911suuuu2008spb gq 000 1dpor d | ||
020 - International Standard Book Number (ISBN) | # | # |
$a9788561559120 |
040 - Fonte da catalogação | # | # |
$aBR-FlWIK |
080 - Número na Classificação Decimal Universal (CDU) | # | # |
$a820(73)-31 |
090 - Número de chamada local (etiqueta) | # | # |
$a820(73)-31 |
100 - Ponto de acesso principal - Nome pessoal | 1 | # |
$aYalom, Irvin D., |
245 - Indicação de título | 1 | # |
$aQuando Nietzche chorou |
260 - Publicação, distribuição, etc. (Imprenta) | # | # |
$aJurubatuba, SP : |
300 - Descrição física | # | # |
$aCD MP3 (18 horas) |