Vorlage:BD-Satz-Kopf
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
(Der Versionsvergleich bezieht 47 dazwischenliegende Versionen mit ein.) | |||
Zeile 11: | Zeile 11: | ||
; Gebiet1 : Untergeordnetes Gebiet zum Sammelgebiet. Siehe Vorlage [[Vorlage:SeiteLink|SeiteLink]] Parameter ''Gebiet1''. | ; Gebiet1 : Untergeordnetes Gebiet zum Sammelgebiet. Siehe Vorlage [[Vorlage:SeiteLink|SeiteLink]] Parameter ''Gebiet1''. | ||
; MiNr : Katalognummer(n) der Marke oder des Satzes. | ; MiNr : Katalognummer(n) der Marke oder des Satzes. | ||
+ | ; MiNr1 : Unternummer zur Katalognummer(n) | ||
; Anlass : Kurze Beschreibung des Ausgabeanlass. | ; Anlass : Kurze Beschreibung des Ausgabeanlass. | ||
+ | ; KatNrText: Text der vor der Katalognummer (MiNr/MiNr1) angezeigt werden soll. Standart ist "KatNr.". | ||
+ | ; KatNrText1: Text der anstatt der Katalognummer angezeigt werden soll. Standart ist "KatNr. ''MiNr[/MiNr1]''". | ||
{{tpldoc|section=descend}} | {{tpldoc|section=descend}} | ||
{{tpldoc|section=exmplstart}} | {{tpldoc|section=exmplstart}} | ||
Zeile 29: | Zeile 32: | ||
{{tpldoc|section=exmplnewrow}} | {{tpldoc|section=exmplnewrow}} | ||
|<pre> | |<pre> | ||
- | {{BD-Satz-Kopf |Gebiet=VgnBnd |Gebiet1= | + | {{BD-Satz-Kopf |Gebiet=VgnBnd |Gebiet1=Weihnachtssiegelmarke |MiNr=1959 |KatNrText=Jahr }} |
{{BD-Satz-Abschn |Titel=Abc }} | {{BD-Satz-Abschn |Titel=Abc }} | ||
|Beliebiger Text... | |Beliebiger Text... | ||
Zeile 36: | Zeile 39: | ||
</pre> | </pre> | ||
{{tpldoc|section=exmplnewrow}} | {{tpldoc|section=exmplnewrow}} | ||
- | |{{BD-Satz-Kopf | + | |{{BD-Satz-Kopf |Gebiet=VgnBnd |Gebiet1=Weihnachtssiegelmarke |MiNr=1959 |KatNrText=Jahr }} |
+ | {{BD-Satz-Abschn |Titel=Abc }} | ||
+ | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
+ | {{BD-Satz-Fuss }} | ||
+ | {{tpldoc|section=exmplnewrow}} | ||
+ | |<pre> | ||
+ | {{BD-Satz-Kopf |Gebiet=DDRBM |Gebiet1=FDJ |MiNr=27-32 |MiNr1=1968 |Anlass=... }} | ||
+ | {{BD-Satz-Abschn |Titel=Abc }} | ||
+ | |Beliebiger Text... | ||
+ | {{BD-Satz-AbFuss }} | ||
+ | {{BD-Satz-Fuss }} | ||
+ | </pre> | ||
+ | {{tpldoc|section=exmplnewrow}} | ||
+ | |{{BD-Satz-Kopf |Gebiet=DDRBM |Gebiet1=FDJ |MiNr=27-32 |MiNr1=1968 |Anlass=... }} | ||
{{BD-Satz-Abschn |Titel=Abc }} | {{BD-Satz-Abschn |Titel=Abc }} | ||
|Beliebiger Text... | |Beliebiger Text... | ||
Zeile 44: | Zeile 61: | ||
</noinclude><includeonly><nowiki | </noinclude><includeonly><nowiki | ||
/><html><script type="text/javascript"> | /><html><script type="text/javascript"> | ||
+ | // Check if the printable version of the page is opened | ||
+ | var sQueryString = window.location.search; | ||
+ | var urlParams = new URLSearchParams(sQueryString); | ||
+ | var isPrintable = false; | ||
+ | if (urlParams.has('printable')) | ||
+ | if (urlParams.get('printable') == 'yes') | ||
+ | isPrintable = true; | ||
+ | console.log('sQueryString = ',sQueryString); | ||
+ | console.log('isPrintable = ',isPrintable); | ||
+ | // Template: BD-Satz-Kopf | ||
Gebiet = '</html>{{{Gebiet}}}<html>'; | Gebiet = '</html>{{{Gebiet}}}<html>'; | ||
Gebiet1 = '</html>{{{Gebiet1|}}}<html>'; | Gebiet1 = '</html>{{{Gebiet1|}}}<html>'; | ||
Zeile 49: | Zeile 76: | ||
bvSessionID = ''+Math.round(Math.random()*Math.pow(2,32)); | bvSessionID = ''+Math.round(Math.random()*Math.pow(2,32)); | ||
bvStatus = 0; // 0 = BV deaktiviert; 1 = BV aktiv und angezeigt; 2 = BV aktiv aber ausgeblendet | bvStatus = 0; // 0 = BV deaktiviert; 1 = BV aktiv und angezeigt; 2 = BV aktiv aber ausgeblendet | ||
- | for (var g = 0; g < wgUserGroups.length; g++) | + | if (wgUserGroups !== null) { |
- | + | for (var g = 0; g < wgUserGroups.length; g++) | |
- | if (bvStatus > 0) | + | if (wgUserGroups[g] == 'GBV') bvStatus = 1; |
+ | } | ||
+ | // Cannot use && because the Wiki parser replaces all & by & !!! | ||
+ | if (bvStatus > 0) | ||
if (localStorage.getItem('BVConfig_EinAus') == 'AUS') | if (localStorage.getItem('BVConfig_EinAus') == 'AUS') | ||
bvStatus = 2; | bvStatus = 2; | ||
- | |||
function ZeigeBogen(sBg) | function ZeigeBogen(sBg) | ||
{ | { | ||
Zeile 101: | Zeile 130: | ||
} | } | ||
} | } | ||
+ | sessionStorage.setItem('SelBg_'+BogenListe[nBgIdx].KatNr+'_'+bvSessionID,sBg); | ||
} | } | ||
} | } | ||
// Bestandsverwaltung | // Bestandsverwaltung | ||
bvGM = []; | bvGM = []; | ||
+ | bvKatNr = []; | ||
function bvbfAddGMOnClick(ebvbfAddGM) | function bvbfAddGMOnClick(ebvbfAddGM) | ||
{ | { | ||
Zeile 120: | Zeile 151: | ||
function bvEinAusOnClick() | function bvEinAusOnClick() | ||
{ | { | ||
- | + | bvStatus = (bvStatus==1 ? 2 : 1); | |
- | + | for (var k = 0; k < bvKatNr.length; k++) { | |
- | for (var | + | var ebvbfAddGM = document.getElementById('bvbfAddGM_'+bvKatNr[k]); |
- | + | if (ebvbfAddGM) | |
- | + | ebvbfAddGM.style.display = (bvStatus==1 ? '' : 'none'); | |
- | + | var ebvbfTR = document.getElementById('BV_TR_'+Gebiet+'_'+Gebiet1+'_'+bvKatNr[k]); | |
- | + | if (ebvbfTR) | |
- | + | ebvbfTR.style.display = (bvStatus==1 ? '' : 'none'); | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
var ebvEinAus = document.getElementById('bvEinAus'); | var ebvEinAus = document.getElementById('bvEinAus'); | ||
if (ebvEinAus) | if (ebvEinAus) | ||
- | ebvEinAus.innerHTML = '<b>[BV '+( | + | ebvEinAus.innerHTML = '<b>[BV '+(bvStatus==1 ? 'aus' : 'ein')+']</b>'; |
} | } | ||
</script></html> | </script></html> | ||
Zeile 141: | Zeile 169: | ||
| | | | ||
{|style="background:transparent" cellpadding="0" cellspacing="0" width="100%" | {|style="background:transparent" cellpadding="0" cellspacing="0" width="100%" | ||
- | |<big><b>{{SeiteLink|Typ=Übersicht|Gebiet={{{Gebiet}}}|Gebiet1={{{Gebiet1}}}|KatNr={{{MiNr}}}}} KatNr. {{{MiNr}}}: {{{Anlass}}}</b></big> | + | |<big><b>{{SeiteLink|Typ=Übersicht|Gebiet={{{Gebiet}}}|Gebiet1={{{Gebiet1}}}|KatNr={{{MiNr}}}}} <nowiki |
- | |align="right"|<span id="bvEinAus" style="cursor:pointer;" onclick="bvEinAusOnClick();"><b>[BV aus]</b></span> | + | />{{#if:{{{KatNrText1|}}}|{{{KatNrText1}}}|<nowiki |
+ | />{{#if:{{{KatNrText|}}}|{{{KatNrText}}}|KatNr.}} {{#ifeq:{{{Gebiet1|-}}}|MHB|MHB}}{{#ifeq:{{{MiNr1|-}}}|-|{{{MiNr}}}|{{SeiteLink|Typ=Marke|Gebiet={{{Gebiet}}}|Gebiet1={{{Gebiet1}}}|KatNr={{{MiNr}}}}}/{{{MiNr1}}}}}<nowiki | ||
+ | />}}<nowiki | ||
+ | />{{#if:{{{Anlass|}}}|<nowiki>:</nowiki> {{{Anlass}}}}}</b></big> | ||
+ | |align="right"|<html><span id="bvEinAus" style="display:none;cursor:pointer;" onclick="bvEinAusOnClick();"><b>[BV aus]</b></span></html> | ||
|} | |} | ||
<html><script type="text/javascript"> | <html><script type="text/javascript"> | ||
- | + | var ebvEinAus = document.getElementById('bvEinAus'); | |
- | + | if (ebvEinAus) { | |
- | + | if (bvStatus > 0) { | |
- | ebvEinAus.style.display = 'inline'; | + | if (!isPrintable) { |
- | + | ebvEinAus.style.display = 'inline'; | |
+ | bvStatus = (bvStatus==1 ? 2 : 1); | ||
+ | bvEinAusOnClick(); | ||
+ | } else { | ||
+ | ebvEinAus.innerHTML = ''; | ||
+ | } | ||
+ | } else { | ||
+ | ebvEinAus.innerHTML = ''; | ||
} | } | ||
} | } | ||
</script></html></includeonly> | </script></html></includeonly> |
Aktuelle Version vom 20:31, 24. Mär. 2025
Beschreibung
| ||||||||||||||||||||||||
Beispiele
| ||||||||||||||||||||||||
Zurück zur Referenzliste der Vorlagen |