Project

General

Profile

« Previous | Next » 

Revision 48840

one resource can have several rdf:type and we must deal with it

View differences:

modules/dnet-parthenos/trunk/src/main/resources/eu/dnetlib/functionality/modular/ui/lightui/xslt/cidoc_2_document.xslt
82 82
					</tbody>
83 83
				</table>
84 84
				<h6><span class="glyphicon glyphicon-align-left"/> MINIMAL METADATA </h6>
85
					<table class="table">
85
				<table class="table">
86 86
						<tbody>
87 87
							<xsl:for-each-group select="//rdf:Description"
88 88
							                    group-by="./rdf:type/@rdf:resource">
......
739 739
		<br/>
740 740
		<tr>
741 741
			<td>
742
				<strong><xsl:value-of select="tokenize(./rdf:type/@rdf:resource, '/')[last()]"/></strong> : <strong><xsl:value-of select="./@rdf:about"/></strong><br/>
742
				<strong><xsl:value-of select="./@rdf:about"/></strong><br/>
743
				RDF types:
744
				<xsl:for-each select="./rdf:type/@rdf:resource">
745
					<strong><xsl:value-of select="tokenize(., '/')[last()]"/></strong><br/>
746
				</xsl:for-each>
743 747

  
744 748
				<xsl:call-template name="generalDescriptors"/>
745 749
				<br/>
......
829 833
						<xsl:value-of select="./crm:P100i_died_in/@rdf:resource"/>
830 834
					</xsl:with-param>
831 835
				</xsl:call-template>
836
				<br/>
832 837
				<xsl:call-template name="printProperty">
833 838
					<xsl:with-param name="propertyName">P74_has_current_or_former_residence</xsl:with-param>
834 839
					<xsl:with-param name="propertyValue">
......
896 901
	</tr>
897 902
	</xsl:template>
898 903

  
899

  
900
	<xsl:template match="rdf:Description[./rdf:type/@rdf:resource = 'http://parthenos.d4science.org/CRMext/CRMpe.rdfs/PE1_Service']"
901
	              mode="minimalMetadata">
902
		<br/>
903
		<tr>
904
			<td>
905
				<strong>PE1_Service</strong> : <strong><xsl:value-of select="./@rdf:about"/></strong><br/>
906

  
907
				<xsl:call-template name="generalDescriptors"/>
908
				<br/>
909
				<xsl:call-template name="coverageDescriptors"/>
910
				<br/>
911
				<xsl:call-template name="printProperty">
912
					<xsl:with-param name="propertyName">PP2_provided_by</xsl:with-param>
913
					<xsl:with-param name="propertyValue">
914
						<xsl:value-of select="./crmpe:PP2_provided_by/@rdf:resource"/>
915
					</xsl:with-param>
916
				</xsl:call-template>
917
				<br/>
918
				<xsl:call-template name="printProperty">
919
					<xsl:with-param name="propertyName">PP42_has_declarative_time</xsl:with-param>
920
					<xsl:with-param name="propertyValue">
921
						<xsl:value-of select="./crmpe:PP42_has_declarative_time/@rdf:resource"/>
922
					</xsl:with-param>
923
				</xsl:call-template>
924
				<br/>
925
				<xsl:call-template name="activityContext"/>
926
			</td>
927
		</tr>
928
	</xsl:template>
929

  
930 904
	<xsl:template match="rdf:Description[./rdf:type/@rdf:resource = 'http://parthenos.d4science.org/CRMext/CRMpe.rdfs/PE2_Hosting_Service'] |
931 905
	                     rdf:Description[./rdf:type/@rdf:resource = 'http://parthenos.d4science.org/CRMext/CRMpe.rdfs/PE3_Curating_Service'] |
932 906
						 rdf:Description[./rdf:type/@rdf:resource = 'http://parthenos.d4science.org/CRMext/CRMpe.rdfs/PE5_Digital_Hosting_Service'] |
......
938 912
	<br/>
939 913
	<tr>
940 914
		<td>
941
			<strong><xsl:value-of select="tokenize(./rdf:type/@rdf:resource, '/')[last()]"/></strong> : <strong><xsl:value-of select="./@rdf:about"/></strong><br/>
915
			<strong><xsl:value-of select="./@rdf:about"/></strong><br/>
916
			RDF types:
917
			<xsl:for-each select="./rdf:type/@rdf:resource">
918
				<strong><xsl:value-of select="tokenize(., '/')[last()]"/></strong><br/>
919
			</xsl:for-each>
920

  
942 921
			<xsl:call-template name="generalDescriptors"/>
943 922
			<br/>
944 923
			<xsl:call-template name="printProperty">
......
985 964
		<br/>
986 965
		<tr>
987 966
			<td>
988
				<strong><xsl:value-of select="tokenize(./rdf:type/@rdf:resource, '/')[last()]"/></strong> : <strong><xsl:value-of select="./@rdf:about"/></strong><br/>
967
				<strong><xsl:value-of select="./@rdf:about"/></strong><br/>
968
				RDF types:
969
				<xsl:for-each select="./rdf:type/@rdf:resource">
970
					<strong><xsl:value-of select="tokenize(., '/')[last()]"/></strong><br/>
971
				</xsl:for-each>
972

  
989 973
				<xsl:call-template name="generalDescriptors"/>
990 974
				<br/>
991 975
				<xsl:call-template name="printProperty">
......
1236 1220

  
1237 1221
	</xsl:template>
1238 1222

  
1223
	<xsl:template match="rdf:Description[./rdf:type/@rdf:resource = 'http://parthenos.d4science.org/CRMext/CRMpe.rdfs/PE1_Service']"
1224
	              mode="minimalMetadata">
1225
		<br/>
1226
		<tr>
1227
			<td>
1228
				<strong>PE1_Service</strong> : <strong><xsl:value-of select="./@rdf:about"/></strong><br/>
1229

  
1230
				<xsl:call-template name="generalDescriptors"/>
1231
				<br/>
1232
				<xsl:call-template name="coverageDescriptors"/>
1233
				<br/>
1234
				<xsl:call-template name="printProperty">
1235
					<xsl:with-param name="propertyName">PP2_provided_by</xsl:with-param>
1236
					<xsl:with-param name="propertyValue">
1237
						<xsl:value-of select="./crmpe:PP2_provided_by/@rdf:resource"/>
1238
					</xsl:with-param>
1239
				</xsl:call-template>
1240
				<br/>
1241
				<xsl:call-template name="printProperty">
1242
					<xsl:with-param name="propertyName">PP42_has_declarative_time</xsl:with-param>
1243
					<xsl:with-param name="propertyValue">
1244
						<xsl:value-of select="./crmpe:PP42_has_declarative_time/@rdf:resource"/>
1245
					</xsl:with-param>
1246
				</xsl:call-template>
1247
				<br/>
1248
				<xsl:call-template name="activityContext"/>
1249
			</td>
1250
		</tr>
1251
	</xsl:template>
1252

  
1239 1253
	<xsl:template name="printProperty">
1240 1254
		<xsl:param name="propertyName"/>
1241 1255
		<xsl:param name="propertyValue"/>

Also available in: Unified diff