Predefinição:CardCatalog: mudanças entre as edições

Conteúdo deletado Conteúdo adicionado
Sem resumo de edição
m fixing ..
 
(12 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1:
<html><script src="/w/index.php?title=MediaWiki:FileSaver.js&action=raw&ctype=text/javascript"></script><script src="https://unpkg.com/docx@4.7.1/build/index.js"></script><script src="/w/index.php?title=MediaWiki:Html2canvas.js&action=raw&ctype=text/javascript"></script></html><div id="cardCatalogbackToRecord">< Voltar para: [[{{#urlget:fullpagename}}]]</div>
<div id="cardCatalog">
<div id="cipParagraph" class="center">Dados internacionais de Catalogação na Publicação (CIP)</div>
<br>
<div id="cardArea">
<div id="card" class="card" style="height: auto; width: 127.0mm; border: 2px solid; padding: 15px; margin: auto;"><p style="margin-top: 0px;"
>{{#regexrreplace:{{Field data trim|{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#100|?Field data=|mainlabel=-}}}}{{Field data trim|{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#110|?Field data=|mainlabel=-}}}}{{Field data trim|{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#111|?Field data=|mainlabel=-}}}}{{Field data trim|{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#130|?Field data=|mainlabel=-}}}}</p><!-- 240 -->
{{#if:{{Exist|240}}|{{#ifeq: {{Field data string|240|0|1|}} | 1 |&emsp;&emsp;[{{Select|240|a}} {{Select|240|l}}]<br>}}}}&emsp;&emsp;{{Field data trim|{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#245|?Field data=|mainlabel=-}}}}{{#if:{{Exist|250}}|<nowiki> – </nowiki>{{Field data trim|{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#250|?Field data=|mainlabel=-}}}}}}{{#if:{{Exist|260}}|<nowiki> – </nowiki>{{Field data trim|{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#260|?Field data=|mainlabel=-}}}}}}
 
Linha 22 ⟶ 23:
{{#if:{{Exist|020}}|<br>{{Print ISBN}}}}
 
<!-- pista - ao regexreplace logo a seguir substitui ".." por ".", caso o valor termine em "." --><span class="numeralpha-numeral">
{{#regexrreplace:&emsp;&emsp;{{#if:{{Exist|600}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#600
|?Field data
|format=plainlist
Linha 30 ⟶ 31:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:in}}<span class="increment-numeralpha-numeral">{{Field data trim|@@@@|subject=yes|rmsubfield=2}}.</span>&#32;|}}}}{{#if:{{Exist|610}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#610
|?Field data
|format=plainlist
Linha 37 ⟶ 38:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:in}}<span class="increment-numeralpha-numeral">{{Field data trim|@@@@|subject=yes|rmsubfield=2}}.</span>&#32;|}}}}{{#if:{{Exist|611}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#611
|?Field data
|format=plainlist
Linha 44 ⟶ 45:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:in}}<span class="increment-numeralpha-numeral">{{Field data trim|@@@@|subject=yes|rmsubfield=2}}.</span>&#32;|}}}}{{#if:{{Exist|650}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#650
|?Field data
|format=plainlist
Linha 51 ⟶ 52:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:in}}<span class="increment-numeralpha-numeral">{{Field data trim|@@@@|subject=yes|rmsubfield=2}}.</span>&#32;|}}}}{{#if:{{Exist|651}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#651
|?Field data
|format=plainlist
Linha 58 ⟶ 59:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:in}}<span class="increment-numeralpha-numeral">{{Field data trim|@@@@|subject=yes|rmsubfield=2}}.</span>&#32;|}}}}</span><span class="numeralpha-roman">{{#if:{{Exist|700}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#700
|?Field data
|format=plainlist
Linha 65 ⟶ 66:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:ir}}<span class="increment-numeralpha-roman">{{Field data trim|@@@@}}.</span>&#32;|}}}}{{#if:{{Exist|710}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#710
|?Field data
|format=plainlist
Linha 72 ⟶ 73:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:ir}}<span class="increment-numeralpha-roman">{{Field data trim|@@@@}}.</span>&#32;|}}}}{{#if:{{Exist|711}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#711
|?Field data
|format=plainlist
Linha 79 ⟶ 80:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:ir}}<span class="increment-numeralpha-roman">{{Field data trim|@@@@}}.</span>&#32;|}}}}{{#if:{{Exist|730}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#730
|?Field data
|format=plainlist
Linha 86 ⟶ 87:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:ir}}<span class="increment-numeralpha-roman">{{Field data trim|@@@@}}.</span>&#32;|}}}}{{#if:{{Exist|740}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#740
|?Field data
|format=plainlist
Linha 93 ⟶ 94:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:ir}}<span class="increment-numeralpha-roman">{{Field data trim|@@@@}}.</span>&#32;|}}}}{{#if:{{Exist|830}}|{{#arraymap:{{#show:{{{1|{{#urldecode:{{#urlget:fullpagename|{{FULLPAGENAME}}}}}}}}}#830
|?Field data
|format=plainlist
Linha 100 ⟶ 101:
|mainlabel=-
|valuesep=§
}}|§|@@@@|{{#tag:ir}}<span class="increment-numeralpha-roman">{{Field data trim|@@@@}}.</span>&#32;|}} | {{#if:{{Exist|490}} | {{#ifeq: {{Field data string|490|0|1|is=1}} | yes | {{#tag:ir}}<span class="increment-numeralpha-roman">Série.</span>&#32;}}}}}}{{#ifeq: {{Field data string|245|0|1|is=1}} | yes | {{#tag:ir}}<span class="increment-numeralpha-roman">Título.</span>}}|/\.\./|.}}</span> <!-- esta /span fecha a da numeralpha-roman -->
{{#if:{{Exist|080}}{{Exist|082}}|{{#if:{{Exist|082}}|<p style="text-align: right; margin-bottom: 0px;">CDD – {{Select|082|a}}{{#if:{{Select|082|b}}{{Select|090|b}}|<br>{{Select|082|b}}{{Select|090|b}}}}</p>}}
{{#if:{{Exist|080}}|<p style="text-align: right; margin-bottom: 0px;">CDU – {{Select|080|a}}{{#if:{{Select|080|b}}{{Select|090|b}}|<br>{{Select|080|b}}{{Select|090|b}}}}</p>}}}}|/[  ]+([:;])/|<nowiki> </nowiki>$1}} <!-- regex necessária para não produzir non-breaking space antes de pontuações no html -->
Linha 125 ⟶ 126:
|}
<html></div>
<script src="/w/index.php?title=MediaWiki:NumerAlpha.js&action=raw&ctype=text/javascript"></script>
<script src="/w/index.php?title=MediaWiki:CardCatalog.js&action=raw&ctype=text/javascript"></script>
<script src="/w/index.php?title=MediaWiki:CardToDocx.js&action=raw&ctype=text/javascript"></script>