no need to show errors and minimal metadata for now

This commit is contained in:
Alessia Bardi 2019-09-22 18:23:43 +02:00
parent 90b6a4c1f3
commit 07759bdd6b
2 changed files with 5 additions and 1220 deletions

View File

@ -6,34 +6,14 @@
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:aocat="https://www.ariadne-infrastructure.eu/resource/ao/cat/1.0/">
<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:variable name="id" select="//*[local-name() = 'objIdentifier']" />
<div class="well">
<xsl:if test="//dri:invalid">
<div class="well"><strong>The record contains the following uncleaned fields</strong>
<table class="table table-condensed bg-danger">
<thead>
<tr>
<th>XPath</th><th>Value</th><th>Vocabulary</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="//dri:invalid/dri:error">
<tr>
<td><xsl:value-of select="./@xpath" /></td>
<td><xsl:value-of select="./@term" /></td>
<td><xsl:value-of select="./@vocabularies" /></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:if>
<div class="well">
<table>
<tr>
<td style="width: 120px">
@ -50,7 +30,7 @@
/></i> (<xsl:value-of select="count(current-group())"/>) --
</xsl:for-each-group>
<br />
<strong>Notes: </strong><xsl:for-each select="//crm:P3_has_note"><i><xsl:value-of select="." /></i><br/></xsl:for-each><br/>
<strong>Titles: </strong><xsl:for-each select="//aocat:has_title"><i><xsl:value-of select="." /></i><br/></xsl:for-each><br/>
<br />
<button class="btn btn-primary btn-sm" ng-click="getDocument('objidentifier', '{$id}')">show record</button>
</td>