Revision 60478
Added by Alessia Bardi about 3 years ago
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/dc_cleaning_OPENAIREplus_erc.xml | ||
---|---|---|
50 | 50 |
// if xpath:"not(contains(//PUB_AUTHORS, ' ')) and not(contains(//PUB_AUTHORS, ',')) and not(contains(//PUB_AUTHORS, '(')) and not(contains(//PUB_AUTHORS, ' and ')) and not(contains(//PUB_AUTHORS, '; ')) and not($varCrossRefAuthor)" dc:creator = xpath:"//PUB_AUTHORS/normalize-space(.)"; else $varDummy = "''"; |
51 | 51 |
// |
52 | 52 |
// if xpath:"contains(//PUB_AUTHORS, '(') and not(contains(//PUB_AUTHORS, ',')) and not(contains(//PUB_AUTHORS, ' and ')) and not(contains(//PUB_AUTHORS, '; ')) and not($varCrossRefAuthor)" dc:creator = xpath:"//PUB_AUTHORS/normalize-space(substring-before(., '('))"; else $varDummy = "''"; |
53 |
dc:title = xpath:"ac:unescapeJava(//PUB_TITLE/normalize-space(.))"; |
|
53 |
//dc:title = xpath:"ac:unescapeJava(//PUB_TITLE/normalize-space(.))"; |
|
54 |
dc:title = xpath:"//PUB_TITLE/normalize-space(.)"; |
|
54 | 55 |
//apply xpath:"//dc:subject" if xpath:"string-length(.) > 0" dc:subject = xpath:"normalize-space(.)"; else $varDummy = "''"; |
55 | 56 |
//apply xpath:"//dc:publisher" if xpath:"string-length(.) > 0" dc:publisher = xpath:"normalize-space(.)"; else $varDummy = "''"; |
56 | 57 |
dc:source = xpath:"//cr:series_title | //cr:journal_title"; |
Also available in: Unified diff
Removed Java unsecape on title. Should fix issue with hostedby setting and XML parsing