Predefinição:GetBookCover: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
Sem resumo de edição |
||
Linha 1: | Linha 1: | ||
<includeonly> |
<includeonly> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
====== ISBNdb ====== |
====== ISBNdb ====== |
||
https://images.isbndb.com/covers/{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-4|2}}/{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-2|2}}/{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}.jpg |
https://images.isbndb.com/covers/{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-4|2}}/{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-2|2}}/{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}.jpg |
||
Linha 7: | Linha 15: | ||
No MARC: <code>856</code> <code>42</code><br> |
No MARC: <code>856</code> <code>42</code><br> |
||
<code><nowiki>$u https://images.isbndb.com/covers/</nowiki>{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-4|2}}/{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-2|2}}/{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}.jpg $yImagem</code> |
<code><nowiki>$u https://images.isbndb.com/covers/</nowiki>{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-4|2}}/{{#sub:{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}|-2|2}}/{{#ifeq: {{#len:{{#replace:{{{1|}}}|-}}}} | 10 | {{#invoke:Converter|ISBN|{{#replace:{{{1|}}}|-}}}} | {{#replace:{{{1|}}}|-}} }}.jpg $yImagem</code> |
||
{{#get_web_data:url=https://capas.bu.ufsc.br/cover?id={{#replace:{{{1|}}}|-}}&provider=aws |
{{#get_web_data:url=https://capas.bu.ufsc.br/cover?id={{#replace:{{{1|}}}|-}}&provider=aws |
||
|format=json |
|format=json |
||
Linha 20: | Linha 27: | ||
No MARC: <code>856</code> <code>42</code><br> |
No MARC: <code>856</code> <code>42</code><br> |
||
<code><nowiki>$u https://</nowiki>{{#sub:{{#external_value:awsurl}}|8}} $yImagem</code> |
<code><nowiki>$u https://</nowiki>{{#sub:{{#external_value:awsurl}}|8}} $yImagem</code> |
||
⚫ | |||
}} |
|||
{{#clear_external_data:}} |
|||
⚫ | |||
|format=json |
|format=json |
||
|use jsonpath |
|use jsonpath |
||
Linha 35: | Linha 40: | ||
<code><nowiki>$u https://</nowiki>{{#sub:{{#external_value:gburl}}|8}}.jpeg $yImagem</code> |
<code><nowiki>$u https://</nowiki>{{#sub:{{#external_value:gburl}}|8}}.jpeg $yImagem</code> |
||
}} |
}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |