|
28 | 28 | xmlns:dc="http://purl.org/dc/elements/1.1/" |
29 | 29 | xmlns:dct="http://purl.org/dc/terms/" |
30 | 30 | xmlns:dcat="http://www.w3.org/ns/dcat#" |
| 31 | + xmlns:dqv="http://www.w3.org/ns/dqv#" |
31 | 32 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
32 | 33 | xmlns:skos="http://www.w3.org/2004/02/skos/core#" |
33 | 34 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
34 | 35 | xmlns:vcard="http://www.w3.org/2006/vcard/ns#" |
35 | 36 | xmlns:locn="http://www.w3.org/ns/locn#" |
36 | 37 | xmlns:foaf="http://xmlns.com/foaf/0.1/" |
| 38 | + xmlns:oa="http://www.w3.org/ns/oa#" |
37 | 39 | xmlns:owl="http://www.w3.org/2002/07/owl#" |
38 | 40 | xmlns:dcatap="http://data.europa.eu/r5r/" |
39 | 41 | xmlns:spdx="http://spdx.org/rdf/terms#" |
40 | 42 | xmlns:schema="http://schema.org/" |
41 | 43 | xmlns:mdcat="https://data.vlaanderen.be/ns/metadata-dcat#" |
| 44 | + xmlns:mobilitydcatap="https://w3id.org/mobilitydcat-ap" |
42 | 45 | xmlns:gn-fn-render="http://geonetwork-opensource.org/xsl/functions/render" |
43 | 46 | xmlns:gn-fn-metadata="http://geonetwork-opensource.org/xsl/functions/metadata" |
44 | 47 | xmlns:gn-fn-dcat-ap="http://geonetwork-opensource.org/xsl/functions/profiles/dcat-ap" |
|
386 | 389 | <xsl:variable name="sectionContent"> |
387 | 390 | <xsl:apply-templates mode="render-view" select="section|field"/> |
388 | 391 | </xsl:variable> |
| 392 | + |
389 | 393 | <!-- Hide sections if empty --> |
390 | 394 | <xsl:if test="normalize-space($sectionContent)"> |
391 | 395 | <div id="gn-section-{generate-id()}" class="gn-tab-content"> |
|
433 | 437 | </xsl:template> |
434 | 438 |
|
435 | 439 | <!-- Field with lang : display only field of current lang or first one if not exist --> |
436 | | - <xsl:template mode="render-field" match="dct:title|dct:description|foaf:name|adms:versionNotes"> |
| 440 | + <xsl:template mode="render-field" match="dct:title|dct:description|foaf:name|adms:versionNotes|foaf:firstName|foaf:surname"> |
437 | 441 | <xsl:param name="xpath"/> |
438 | 442 | <xsl:variable name="stringValue" select="string()"/> |
439 | 443 | <xsl:variable name="name" select="name()"/> |
|
549 | 553 | </xsl:if> |
550 | 554 | </xsl:template> |
551 | 555 |
|
| 556 | + <!-- render the element name (key) and the @rdf:resource (value) --> |
552 | 557 | <xsl:template mode="render-field" |
553 | | - match="dcat:accessURL|dcat:downloadURL|dcat:landingPage"> |
| 558 | + match="dcat:accessURL|dcat:downloadURL|dcat:landingPage|foaf:mbox|foaf:phone|foaf:workplaceHomepage"> |
554 | 559 | <xsl:param name="xpath"/> |
555 | 560 | <xsl:variable name="stringValue" select="string(@rdf:resource)"/> |
556 | 561 | <xsl:if test="normalize-space($stringValue) != ''"> |
557 | 562 | <tr> |
558 | 563 | <th style="{$thStyle}"> |
559 | | - <xsl:value-of select="gn-fn-metadata:getLabel($schema, 'rdf:resource', $labels, name(.), '', concat(gn-fn-dcat-ap:concatXPaths($xpath, gn-fn-metadata:getXPath(.), name(.)), '/@rdf:resource'))/label" /> |
| 564 | + <xsl:value-of select="gn-fn-metadata:getLabel($schema, name(.), $labels, name(..), '', gn-fn-dcat-ap:concatXPaths($xpath, gn-fn-metadata:getXPath(.), name(.)))/label" /> |
560 | 565 | </th> |
561 | 566 | <td style="{$tdStyle}"> |
562 | 567 | <xsl:apply-templates mode="render-url" select="@rdf:resource" /> |
|
570 | 575 | <xsl:template mode="render-field" match="dct:type|dct:accrualPeriodicity|dcat:theme|dct:language|dct:format|dcat:mediaType| |
571 | 576 | adms:status|mdcat:levensfase|mdcat:ontwikkelingstoestand|dct:accessRights|dcat:compressFormat| |
572 | 577 | dcat:packageFormat|dct:subject|mdcat:MAGDA-categorie|mdcat:statuut| |
573 | | - dcatap:hvdCategory"> |
| 578 | + dcatap:hvdCategory| |
| 579 | + mobilitydcatap:networkCoverage|mobilitydcatap:transportMode| mobilitydcatap:mobilityTheme| |
| 580 | + mobilitydcatap:georeferencingMethod|mobilitydcatap:intendedInformationService"> |
574 | 581 | <xsl:param name="xpath"/> |
575 | 582 | <xsl:variable name="name" select="name()"/> |
576 | 583 | <xsl:if test="not(preceding-sibling::*[name(.) = $name and position()=1])"> |
|
600 | 607 | </xsl:if> |
601 | 608 | </xsl:template> |
602 | 609 |
|
| 610 | + <!-- element that include an ao:hasBody --> |
| 611 | + <xsl:template mode="render-field" match="mobilitydcatap:assessmentResult|dqv:hasQualityAnnotation"> |
| 612 | + <xsl:param name="xpath"/> |
| 613 | + <xsl:variable name="stringValue" select="string(oa:hasBody/@rdf:resource)"/> |
| 614 | + <xsl:if test="normalize-space($stringValue) != ''"> |
| 615 | + <tr> |
| 616 | + <th style="{$thStyle}"> |
| 617 | + <xsl:value-of select="gn-fn-metadata:getLabel($schema, name(.), $labels, name(..), '', gn-fn-dcat-ap:concatXPaths($xpath, gn-fn-metadata:getXPath(.), name(.)))/label" /> |
| 618 | + </th> |
| 619 | + <td style="{$tdStyle}"> |
| 620 | + <xsl:apply-templates mode="render-url" select="oa:hasBody/@rdf:resource" /> |
| 621 | + <xsl:if test="dct:issued"> |
| 622 | + (<xsl:value-of select="gn-fn-metadata:getLabel($schema, 'dct:issued', $labels)/label "/><xsl:value-of select="' '"/><xsl:value-of select="dct:issued"/>) |
| 623 | + </xsl:if> |
| 624 | + </td> |
| 625 | + </tr> |
| 626 | + </xsl:if> |
| 627 | + </xsl:template> |
| 628 | + |
603 | 629 |
|
604 | 630 | <!-- Bbox is displayed with an overview and the geom displayed on it and |
605 | 631 | the coordinates displayed around --> |
|
0 commit comments