Revision 51516
Added by Claudio Atzori about 6 years ago
journaltitles2db.xsl | ||
---|---|---|
7 | 7 |
<xsl:param name="namespacePrefix"/> |
8 | 8 |
|
9 | 9 |
<xsl:template match="/"> |
10 |
<record |
|
11 |
> |
|
10 |
<record> |
|
12 | 11 |
|
13 | 12 |
<xsl:copy-of select=".//*[local-name()='header']"/> |
14 | 13 |
<metadata> |
15 | 14 |
<xsl:variable name="rid" select="normalize-space(//column[./@name='ISSN'])"/> |
16 | 15 |
<xsl:variable name="datasourceId" select="concat($namespacePrefix, '::', $rid)"/> |
17 | 16 |
<xsl:variable name="ISSNNS" select="stringUtils:replace($rid,'-','')"/> |
18 |
<xsl:variable name="oName" select="normalize-space(//column[./@name='Title'])"/> |
|
19 |
<xsl:variable name="organizationId" |
|
20 |
select="translate(concat($namespacePrefix, '::', $oName), ' ', '_')"/> |
|
17 |
|
|
21 | 18 |
<ROWS> |
22 |
<ROW table="datasources"> |
|
19 |
<ROW table="dsm_datasources">
|
|
23 | 20 |
<FIELD name="id"> |
24 | 21 |
<xsl:value-of select="$datasourceId"/> |
25 | 22 |
</FIELD> |
26 |
<FIELD name="_dnet_resource_identifier_"> |
|
27 |
<xsl:value-of select="$datasourceId"/> |
|
28 |
</FIELD> |
|
29 | 23 |
<FIELD name="officialname"> |
30 | 24 |
<xsl:value-of select="normalize-space(//column[./@name='Title'])"/> |
31 | 25 |
</FIELD> |
... | ... | |
35 | 29 |
<FIELD name="od_contenttypes"> |
36 | 30 |
<xsl:value-of select="string('Journal articles')"/> |
37 | 31 |
</FIELD> |
38 |
<FIELD name="od_languages">
|
|
32 |
<FIELD name="languages"> |
|
39 | 33 |
<xsl:value-of select="normalize-space(//column[./@name='Language'])"/> |
40 | 34 |
</FIELD> |
41 | 35 |
<FIELD name="issn"> |
... | ... | |
53 | 47 |
<FIELD name="namespaceprefix"> |
54 | 48 |
<xsl:value-of select="concat('ojs_', $ISSNNS)"/> |
55 | 49 |
</FIELD> |
56 |
<FIELD name="datasourceclass">pubsrepository::journal</FIELD>
|
|
50 |
<FIELD name="typology">pubsrepository::journal</FIELD>
|
|
57 | 51 |
<FIELD name="collectedfrom"> |
58 | 52 |
<xsl:value-of select="$parentDatasourceId"/> |
59 | 53 |
</FIELD> |
60 |
<FIELD name="provenanceActionClass">sysimport:crosswalk:entityregistry</FIELD> |
|
61 |
<FIELD name="provenanceActionScheme">dnet:provenanceActions</FIELD> |
|
54 |
<FIELD name="provenanceaction">sysimport:crosswalk:entityregistry</FIELD> |
|
62 | 55 |
</ROW> |
63 | 56 |
</ROWS> |
64 | 57 |
</metadata> |
Also available in: Unified diff
using dsm_datasources instead of datasources table, fixed datasource data migration rules for languages and od_contenttypes