Project

General

Profile

« Previous | Next » 

Revision 46389

first tentative for rotten checker

View differences:

modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/lightui/xslt/cidoc_2_row.xslt
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
3
                xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/">
3
                xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/" xmlns:dri="http://www.driver-repository.eu/namespace/dri">
4 4

  
5 5
	<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
6 6

  
7 7
	<xsl:template match="/">
8 8
		<xsl:variable name="id"   select="//*[local-name() = 'objIdentifier']" />
9 9

  
10

  
11

  
10 12
		<div class="well">
13
			<xsl:if test="//dri:invalid">
14
				<div class="well"><strong>The record contains the following uncleaned fields</strong>
15
					<table class="table table-condensed bg-danger">
16
						<thead>
17
						<tr>
18
							<th>XPath</th><th>Value</th><th>Vocabulary</th>
19
						</tr>
20
						</thead>
21
						<tbody>
22
						<xsl:for-each select="//dri:invalid/dri:error">
23
							<tr>
24
								<td><xsl:value-of select="./@xpath" /></td>
25
								<td><xsl:value-of select="./@term" /></td>
26
								<td><xsl:value-of select="./@vocabularies" /></td>
27
							</tr>
28
						</xsl:for-each>
29
						</tbody>
30
					</table>
31
				</div>
32
			</xsl:if>
11 33
			<table>
12 34
				<tr>
13 35
					<td style="width: 120px">
14 36
						<img src="../resources/img/record.png" width="80" height="80" />
15 37
					</td>
16 38
					<td>
17
						<strong>Title: </strong><xsl:value-of select="//crm:E73_Information_Object/crm:P102_has_title" /><br/>
18
						<strong>Description: </strong><i><xsl:value-of select="//crm:E73_Information_Object/crm:P3_has_note" /></i><br/>
39
						<strong>Title: </strong><xsl:value-of select="//crm:P102_has_title" /><br/>
40

  
41
						<strong>Notes: </strong><xsl:for-each select="//crm:P3_has_note"><i><xsl:value-of select="." /></i></xsl:for-each><br/>
19 42
						<strong>Author: </strong><xsl:value-of select="//*[local-name()='creator']" /><br/>
20 43
						<br />
21 44
						<button class="btn btn-primary btn-sm" ng-click="getDocument('objidentifier', '{$id}')">show record</button>
modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/LightUiDSResourceType/lightui_minimal.xml
20 20
					<TEXT_FIELD id="title" operator="all" label="Title" />
21 21
					<TEXT_FIELD id="originalid" label="Original Identifier" operator="exact" />
22 22
					<TEXT_FIELD id="objidentifier" label="D-Net Identifier" operator="exact" />
23
					<!--
24
					<TEXT_FIELD id="creator" operator="all" label="Author" />
25
					<TEXT_FIELD id="objidentifier" label="Identifier"
26
						operator="exact" />
27
					-->
23

  
28 24
					<BROWSE_FIELD id="subjectforbrowsing" label="Subject" />
25

  
26
					<BROWSE_FIELD id="datasourcenameforbrowsing" label="Data Source" />
27
					<SELECT_FIELD id="cleaned" label="Cleaned records" operator="exact">
28
						<VALUE id="true" label="true" />
29
						<VALUE id="false" label="false" />
30
					</SELECT_FIELD>
29 31
					<!-- <SELECT_FIELD id="objecttype" label="Select field (Mock)" operator="exact"> -->
30 32
					<!-- <VALUE id="0001" label="1" /> -->
31 33
					<!-- <VALUE id="0002" label="2" /> -->
32 34
					<!-- <VALUE id="0003" label="3" /> -->
33 35
					<!-- <VALUE id="0004" label="4" /> -->
34 36
					<!-- </SELECT_FIELD> -->
35
					<BROWSE_FIELD id="datasourcenameforbrowsing" label="Data Source" />
36 37
				</FIELDS>
37 38
				<!-- TODO: define XSLT TO format CIDOC records in the GUI -->
38 39
				<FORMATTER xslt="/eu/dnetlib/functionality/modular/ui/lightui/xslt/cidoc_2_row.xslt" />
......
42 43
				<FIELDS>
43 44
					<!-- TODO: define the fields we want to browse for in the GUI -->
44 45
					<BROWSE_FIELD id="datasourcenameforbrowsing" label="Data Source" />
45

  
46 46
					<BROWSE_FIELD id="subjectforbrowsing" label="Subject" />
47
					<!--
48
					<BROWSE_FIELD id="publisherforbrowsing" label="Publisher" />
49
					-->
47
					<BROWSE_FIELD id="language" label="Language" />
50 48
				</FIELDS>
51 49
				<!-- TODO: check the following formatter works fine with CIDOC records -->
52 50
				<FORMATTER
modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/bootstrap/profiles/MDFormatDSResourceType/8e3f5472-5f52-4f10-aa3c-a59c1f0d8b87.xml
18 18
                <!-- TODO: define the fields to index of CIDOC RDF records -->
19 19
                <LAYOUT name="index">
20 20
                    <FIELDS>
21

  
21 22
                        <FIELD indexable="true" name="objidentifier" result="false" stat="false" tokenizable="false" xpath="//dri:objIdentifier"/>
22
                        <FIELD indexable="true" name="datasourcename" result="true" stat="false" xpath="//dri:datasourcename"/>
23
                        <FIELD indexable="true" name="datasourcename" result="false" stat="false" xpath="//dri:datasourcename"/>
23 24
                        <FIELD indexable="true" name="datasourceprefix" result="false" stat="false" xpath="//dri:datasourceprefix"/>
24 25
                        <FIELD indexable="true" name="title" result="true" stat="false" xpath="//crm:P102_has_title"/>
25 26
                        <FIELD indexable="true" name="subject" result="true" stat="false"  xpath="//crm:P129_is_about/crm:E73_Information_Object/crm:P129_is_about"/>
26 27
                        <FIELD indexable="true" name="originalid" result="true" stat="false" tokenizable="false" xpath="//crm:P1_is_identified_by"/>
28
                        <FIELD indexable="true" name="language" result="true" stat="false" tokenizable="false" xpath="//crm:P72_has_language"/>
29
	                    <FIELD indexable="true" name="note" result="true" stat="false" xpath="//crm:P3_has_note"/>
27 30

  
31

  
32
                        <!-- ERRORS IN CLEANING -->
33
                        <FIELD indexable="true" name="cleaned" type="boolean" result="false" stat="false" tokenizable="false" xpath="not(//dri:error)"/>
34
                        <FIELD indexable="false" stored="true" name="cleaningErrors" result="false" stat="false" tokenizable="false" xpath="//dri:invalid"/>
35

  
36

  
37

  
28 38
                        <!--<FIELD indexable="true" name="cobjcontentsynthesis" result="true" stat="false" xpath="//dr:CobjContentSynthesis"/>-->
29 39
                        <!--<FIELD indexable="true" name="cobjtypology" result="true" stat="false" tokenizable="false" xpath="//dr:CobjTypology"/>-->
30 40
                        <!--<FIELD indexable="true" name="cobjidentifier" result="true" stat="false" tokenizable="false" xpath="//dr:CobjIdentifier"/>-->

Also available in: Unified diff