THIS IS ONLY A TEST WIKI - the real SILVER wiki is available at https://silver.kbr.be

Authority

From SILVER
Line 5: Line 5:
 
  |format=XML
 
  |format=XML
 
  |use xpath
 
  |use xpath
  |data=Label=/rdf:RDF/foaf:Person/skos:prefLabel[@xml:lang='{{USERLANGUAGECODE}}'],
+
  |data=Label=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:prefLabel[@xml:lang='{{USERLANGUAGECODE}}'],
  Definition=/rdf:RDF/foaf:Person/skos:definition,
+
  Definition=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:definition,
  Label=/rdf:RDF/foaf:Person/skos:altLabel,
+
  Label=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:altLabel,
  CloseMatch1=/rdf:RDF/foaf:Person/skos:exactMatch[1]/@rdf:resource,
+
  CloseMatch1=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:exactMatch[1]/@rdf:resource,
  CloseMatch2=/rdf:RDF/foaf:Person/skos:exactMatch[2]/@rdf:resource,
+
  CloseMatch2=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:exactMatch[2]/@rdf:resource,
  CloseMatch3=/rdf:RDF/foaf:Person/skos:exactMatch[3]/@rdf:resource,
+
  CloseMatch3=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:exactMatch[3]/@rdf:resource,
  CloseMatch4=/rdf:RDF/foaf:Person/skos:exactMatch[4]/@rdf:resource,
+
  CloseMatch4=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:exactMatch[4]/@rdf:resource,
  CloseMatch5=/rdf:RDF/foaf:Person/skos:exactMatch[5]/@rdf:resource,
+
  CloseMatch5=/rdf:RDF/{{#ifeq:{{{Type|}}}|Person|foaf:Person|foaf:Organization}}/skos:exactMatch[5]/@rdf:resource,
 
}}
 
}}
 
<div class="btn btn-light">[[Mints]]</div><br/>
 
<div class="btn btn-light">[[Mints]]</div><br/>
Line 22: Line 22:
 
<div class="card-body mw-collapsible-content">
 
<div class="card-body mw-collapsible-content">
 
{| class="table table-hover table-condensed"
 
{| class="table table-hover table-condensed"
 +
|[[Authority type::@@@]]
 +
|[[Authority type::{{{Type|}}}]]
 +
|-
 
|[[Nomisma ID::@@@]]
 
|[[Nomisma ID::@@@]]
 
|[[Nomisma ID::{{{Nomisma ID|}}}]]
 
|[[Nomisma ID::{{{Nomisma ID|}}}]]

Revision as of 10:46, 26 May 2021

Template formatting Authorities.