1
|
<RESOURCE_PROFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2
|
<HEADER>
|
3
|
<RESOURCE_IDENTIFIER value="3a2518b3-5342-4141-8116-99653e353c13_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
|
4
|
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
|
5
|
<RESOURCE_KIND value="TransformationRuleDSResources"/>
|
6
|
<RESOURCE_URI value=""/>
|
7
|
<DATE_OF_CREATION value="2016-09-30T21:58:45+00:00"/>
|
8
|
</HEADER>
|
9
|
<BODY>
|
10
|
<CONFIGURATION>
|
11
|
<IMPORTED/>
|
12
|
<SCRIPT>
|
13
|
<TITLE>DC to PMF</TITLE>
|
14
|
<CODE>declare_script "dc2pmf";
|
15
|
declare_ns dri = "http://www.driver-repository.eu/namespace/dri";
|
16
|
declare_ns dr = "http://www.driver-repository.eu/namespace/dr";
|
17
|
declare_ns dc = "http://purl.org/dc/elements/1.1/";
|
18
|
dri:objIdentifier = xpath:"//dri:objIdentifier";
|
19
|
dr:objectIdentifier = xpath:"//dri:objIdentifier";
|
20
|
dri:datasourceprefix = xpath:"//dri:datasourceprefix";
|
21
|
dri:recordIdentifier = xpath:"//dri:recordIdentifier";
|
22
|
dr:CobjContentSynthesis = empty;
|
23
|
dr:CobjTypology = "Textual";
|
24
|
dr:CobjModel = "OAI";
|
25
|
dr:CobjMDFormats = "oai_dc";
|
26
|
dr:CobjDescriptionSynthesis = empty;
|
27
|
dc:creator = xpath:"//dc:creator";
|
28
|
dc:title = xpath:"//dc:title";
|
29
|
dc:subject = xpath:"//dc:subject";
|
30
|
dc:publisher = xpath:"//dc:publisher";
|
31
|
dc:source = xpath:"//dc:source";
|
32
|
dc:contributor = xpath:"//dc:contributor";
|
33
|
dc:relation = xpath:"//dc:relation";
|
34
|
dc:description = xpath:"//dc:description";
|
35
|
//dr:aggregatorInstitution = "Bielefeld University Library";
|
36
|
dr:aggregatorName = "DNET";
|
37
|
apply xpath:"//dc:identifier" if xpath:"starts-with(., 'http')" dc:identifier = xpath:"."; else dr:CobjIdentifier = xpath:".";
|
38
|
static dri:dateOfCollection = getValue(CURRENTDATE, []);
|
39
|
static dr:dateOfCollection = getValue(CURRENTDATE, []);
|
40
|
static dr:repositoryName = getValue(PROFILEFIELD, [xpath:"concat('collection(&apos;/db/DRIVER/RepositoryServiceResources&apos;)//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key=&quot;NamespacePrefix&quot;][value=&quot;', //dri:datasourceprefix, '&quot;]]')", xpath:"//CONFIGURATION/OFFICIAL_NAME"]);
|
41
|
static dr:repositoryLink = getValue(PROFILEFIELD, [xpath:"concat('collection(&apos;/db/DRIVER/RepositoryServiceResources&apos;)//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key=&quot;NamespacePrefix&quot;][value=&quot;', //dri:datasourceprefix, '&quot;]]')", xpath:"//REPOSITORY_WEBPAGE"]);
|
42
|
static dr:repositoryCountry = getValue(PROFILEFIELD, [xpath:"concat('collection(&apos;/db/DRIVER/RepositoryServiceResources&apos;)//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key=&quot;NamespacePrefix&quot;][value=&quot;', //dri:datasourceprefix, '&quot;]]')", xpath:"//COUNTRY"]);
|
43
|
static dr:repositoryInstitution = getValue(PROFILEFIELD, [xpath:"concat('collection(&apos;/db/DRIVER/RepositoryServiceResources&apos;)//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key=&quot;NamespacePrefix&quot;][value=&quot;', //dri:datasourceprefix, '&quot;]]')", xpath:"//REPOSITORY_INSTITUTION"]);
|
44
|
//dr:CobjCategory = Convert(xpath:"//dc:type", TextTypologies);
|
45
|
//dc:language = Convert(xpath:"//dc:language", Languages);
|
46
|
dc:language= xpath:"//dc:language";
|
47
|
dc:dateAccepted = Convert(xpath:"//dc:date", DateISO8601);
|
48
|
end</CODE>
|
49
|
</SCRIPT>
|
50
|
</CONFIGURATION>
|
51
|
<STATUS/>
|
52
|
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS>
|
53
|
</BODY>
|
54
|
</RESOURCE_PROFILE>
|