Project

General

Profile

« Previous | Next » 

Revision 48767

Updated index and lightui configuration to work with the RDF_XML_PLAIN format

View differences:

cidoc_2_document.xslt
19 19
			<div class="col-xs-10">
20 20
				<xsl:if test="//*[local-name()='title']">
21 21
					<h1 id="overview">
22
						<xsl:value-of select="/crm:P102_has_title"/>
22
						<!-- this is visualized big next to the picture. Since we cannot identify 1 main title, for Parthenos it wil be empty -->
23
						<!--<xsl:value-of select="/crm:P102_has_title"/>-->
23 24
					</h1>
24 25
				</xsl:if>
25 26
			</div>
......
35 36
					<tbody>
36 37
						<tr>
37 38
							<td class="col-xs-3">
38
								<strong>Author</strong>
39
								<strong>Original identifier</strong>
39 40
							</td>
40 41
							<td>
41
								<xsl:for-each select="//*[local-name()='creator']">
42
									<xsl:value-of select="."/>
43
									<br/>
44
								</xsl:for-each>
42
								<xsl:value-of select="//dri:recordIdentifier"/>
45 43
							</td>
46 44
						</tr>
47 45
						<tr>
48 46
							<td class="col-xs-3">
49
								<strong>Title</strong>
47
								<strong>Provenance</strong>
50 48
							</td>
51 49
							<td>
52
								<xsl:for-each select="//crm:P102_has_title">
53
									<xsl:value-of select="."/>
54
									<br/>
55
								</xsl:for-each>
50
								<i>Data source: </i><xsl:value-of select="//dri:datasourcename"/><br/>
51
								<i>D-Net API: </i><xsl:value-of select="//dri:datasourceapi"/>
56 52
							</td>
57 53
						</tr>
58 54
						<tr>
59 55
							<td class="col-xs-3">
60
								<strong>Description</strong>
56
								<strong>Collected</strong>
61 57
							</td>
62 58
							<td>
63
								<xsl:for-each select="//crm:P3_has_note">
64
									<xsl:value-of select="."/>
65
									<br/>
66
								</xsl:for-each>
59
								<xsl:value-of select="//dri:dateOfCollection"/>
67 60
							</td>
68 61
						</tr>
69 62
						<tr>
70 63
							<td class="col-xs-3">
71
								<strong>Identifiers</strong>
64
								<strong>Transformed</strong>
72 65
							</td>
73 66
							<td>
74
								<xsl:for-each select="//crm:P1_is_identified_by/crm:E42_Identifier/@rdf:about">
75
									<xsl:value-of select="."/>
67
								<xsl:value-of select="//dri:dateOfTransformation"/>
68
							</td>
69
						</tr>
70
						<tr>
71
							<td class="col-xs-3">
72
								<strong>Resources (types, labels, and urls)</strong>
73
							</td>
74
							<td>
75
								<xsl:for-each-group select="//rdf:Description" group-by="./rdf:type/@rdf:resource">
76
									<i><xsl:value-of select="tokenize(current-grouping-key(),'/')[last()]"/></i> (<xsl:value-of select="count(current-group())"/>)<br/>
77
										<xsl:for-each select="current-group()">
78
											<xsl:if test="string-length(./rdfs:label) &gt; 0">
79
												- <xsl:value-of select="./rdfs:label"/>
80
												<br/>
81
											</xsl:if>
82
										</xsl:for-each>
76 83
									<br/>
77
								</xsl:for-each>
84
								</xsl:for-each-group>
78 85
							</td>
79 86
						</tr>
80 87
						<tr>
81 88
							<td class="col-xs-3">
82
								<strong>Type</strong>
89
								<strong>Notes</strong>
83 90
							</td>
84 91
							<td>
85
								<xsl:for-each select="//rdf:RDF/*/rdf:type/@rdf:resource">
86
									<xsl:value-of select="substring-after(./text(),'http://www.ics.forth.gr/isl/CRMext/CRMpe.rdfs/')"/>
92
								<xsl:for-each select="//crm:P3_has_note">
93
									<xsl:value-of select="./text()"/>
87 94
									<br/>
88 95
								</xsl:for-each>
89 96
							</td>
......
105 112
	</xsl:template>
106 113

  
107 114
	<xsl:template name="xmlAttr">
108
		<span style='color:red'>
115
		<span style='color:orange'>
109 116
			<xsl:value-of select="concat(' ', local-name())"/>
110 117
		</span>
111 118
		<xsl:value-of select="concat('=&quot;', ., '&quot;')"/>

Also available in: Unified diff