Project

General

Profile

« Previous | Next » 

Revision 36547

support dri:datasourceprefix instead of dri:repositoryId

View differences:

13427cce-e162-40bd-aaf8-7890fd4495d6.xml
17 17
declare_ns dc = "http://purl.org/dc/elements/1.1/";
18 18
dri:objIdentifier = xpath:"//dri:objIdentifier";
19 19
dr:objectIdentifier = xpath:"//dri:objIdentifier";
20
dri:repositoryId = xpath:"//dri:repositoryId";
20
dri:datasourceprefix = xpath:"//dri:datasourceprefix";
21 21
dri:recordIdentifier = xpath:"//dri:recordIdentifier";
22 22
dr:CobjContentSynthesis = empty;
23 23
dr:CobjTypology = "Textual";
......
37 37
apply xpath:"//dc:identifier" if xpath:"starts-with(., 'http')" dc:identifier = xpath:"."; else dr:CobjIdentifier = xpath:".";
38 38
static dri:dateOfCollection = getValue(CURRENTDATE, []);
39 39
static dr:dateOfCollection = getValue(CURRENTDATE, []);
40
static dr:repositoryName = getValue(PROFILEFIELD, [xpath:"//dri:repositoryId", xpath:"//CONFIGURATION/OFFICIAL_NAME"]);
41
static dr:repositoryLink = getValue(PROFILEFIELD, [xpath:"//dri:repositoryId", xpath:"//REPOSITORY_WEBPAGE"]);
42
static dr:repositoryCountry = getValue(PROFILEFIELD, [xpath:"//dri:repositoryId", xpath:"//COUNTRY"]);
43
static dr:repositoryInstitution = getValue(PROFILEFIELD, [xpath:"//dri:repositoryId", xpath:"//REPOSITORY_INSTITUTION"]);
40
static dr:repositoryName = getValue(PROFILEFIELD, [xpath:"concat('collection('/db/DRIVER/RepositoryServiceResources')//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key=&quo
41
t;NamespacePrefix"][value="', //dri:datasourceprefix, '"]]')", xpath:"//CONFIGURATION/OFFICIAL_NAME"]);
42
static dr:repositoryLink = getValue(PROFILEFIELD, [xpath:"concat('collection('/db/DRIVER/RepositoryServiceResources')//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key=&quo
43
t;NamespacePrefix"][value="', //dri:datasourceprefix, '"]]')", xpath:"//REPOSITORY_WEBPAGE"]);
44
static dr:repositoryCountry = getValue(PROFILEFIELD, [xpath:"concat('collection('/db/DRIVER/RepositoryServiceResources')//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key=&
45
quot;NamespacePrefix"][value="', //dri:datasourceprefix, '"]]')", xpath:"//COUNTRY"]);
46
static dr:repositoryInstitution = getValue(PROFILEFIELD, [xpath:"concat('collection('/db/DRIVER/RepositoryServiceResources')//RESOURCE_PROFILE[.//EXTRA_FIELDS/FIELD[key="NamespacePrefix"][value="', //dri:datasourceprefix, '"]]')", xpath:"//REPOSITORY_INSTITUTION"]);
44 47
//dr:CobjCategory = Convert(xpath:"//dc:type", TextTypologies);
45 48
//dc:language = Convert(xpath:"//dc:language", Languages);
46 49
dc:language= xpath:"//dc:language";
......
51 54
        <STATUS/>
52 55
        <SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS>
53 56
    </BODY>
54
</RESOURCE_PROFILE>
57
</RESOURCE_PROFILE>

Also available in: Unified diff