clarin-eric / VirtualCollectionRegistry

Virtual Collection Registry (VCR)
GNU General Public License v3.0
2 stars 0 forks source link

Add a landing page link in the CMDI export to the VCR #18

Closed dietervu closed 5 years ago

dietervu commented 6 years ago

See https://www.clarin.eu/faq/how-can-i-add-link-original-repository-where-resource-hosted-landing-page - would be good to include a landing page in the ResourceProxyList so that eg you can navigate from the VLO to the VCR

twagoo commented 6 years ago

Example of a record with a landing page (and selflink and resource, all handles): https://vlo.clarin.eu/data/clarin/results/cmdi/HZSK_Repository/oai_corpora_uni_hamburg_de_spoken_corpus_demo.xml

<cmd:ResourceProxy id="LDP-76F9D5B400-EE70-11E4-1888-09173F13E4C5">
  <cmd:ResourceType>LandingPage</cmd:ResourceType>
  <cmd:ResourceRef>http://hdl.handle.net/11022/0000-0000-4F70-A</cmd:ResourceRef>
</cmd:ResourceProxy>
WillemElbers commented 5 years ago

Fixed in https://github.com/clarin-eric/VirtualCollectionRegistry/commit/4e639c257bdde94c2ed83f2526301f2e6867e830

Now generates CMDI as follows:

<?xml version='1.0' encoding='UTF-8'?><CMD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.clarin.eu/cmd/" CMDVersion="1.1" xsi:schemaLocation="http://www.clarin.eu/cmd/ http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1404130561238/xsd">
    <Header>
        <MdCreator>dietuyt_mpi.nl@clarin.eu</MdCreator>
        <MdCreationDate>2019-01-28</MdCreationDate>
        <MdSelfLink>hdl:11372/VC-1001</MdSelfLink>
        <MdProfile>clarin.eu:cr1:p_1404130561238</MdProfile>
        <MdCollectionDisplayName>CLARIN Virtual Collection Registry</MdCollectionDisplayName>
    </Header>
    <Resources>
        <ResourceProxyList>
            <ResourceProxy>
                <ResourceType>LandingPage</ResourceType>
                <ResourceRef>http://hdl.handle.net/11372/VC-1001</ResourceRef>
            </ResourceProxy>
            <ResourceProxy id="r37">
                <ResourceType>Resource</ResourceType>
                <ResourceRef>http://hdl.handle.net/11858/00-001M-0000-0019-1357-7</ResourceRef>
            </ResourceProxy>
            <ResourceProxy id="r38">
                <ResourceType>Resource</ResourceType>
                <ResourceRef>http://hdl.handle.net/1839/00-0000-0000-0016-7EEC-7</ResourceRef>
            </ResourceProxy>
            <ResourceProxy id="r39">
                <ResourceType>Resource</ResourceType>
                <ResourceRef>http://hdl.handle.net/1839/00-0000-0000-0016-7ED5-4</ResourceRef>
            </ResourceProxy>
            <ResourceProxy id="r40">
                <ResourceType>Resource</ResourceType>
                <ResourceRef>http://hdl.handle.net/1839/00-0000-0000-0016-7EEB-7</ResourceRef>
            </ResourceProxy>
            <ResourceProxy id="r41">
                <ResourceType>Resource</ResourceType>
                <ResourceRef>http://hdl.handle.net/1839/00-0000-0000-0016-7ED3-2</ResourceRef>
            </ResourceProxy>
            <ResourceProxy id="r42">
                <ResourceType>Resource</ResourceType>
                <ResourceRef>http://hdl.handle.net/1839/00-0000-0000-0016-40D7-8</ResourceRef>
            </ResourceProxy>
        </ResourceProxyList>
        <JournalFileProxyList/>
        <ResourceRelationList/>
    </Resources>
    <Components>
        <VirtualCollection>
            <Name>Absolute spatial deixis and proto-toponyms in Kata Kolok</Name>
            <Description>Digital references for De Vos, C. (2014). Absolute spatial deixis and proto-toponyms in Kata Kolok. NUSA: Linguistic studies of languages in and around Indonesia, 56, 3-26.</Description>
            <CreationDate>2014-09-26</CreationDate>
            <Status>published</Status>
            <Reproducability>intended</Reproducability>
            <Purpose>research</Purpose>
            <Keyword>sign language</Keyword>
            <Keyword>Kata Kolok</Keyword>
            <Creator>
                <Name>Connie de Vos</Name>
                <Organisation>Max Planck Institute for Psycholinguistics</Organisation>
            </Creator>
            <Resource ref="r37">
                <Label>Journal Article (fulltext)</Label>
                <Description>This paper presents an overview of spatial deictic structures in Kata Kolok, a sign language which is indigenous to a Balinese village community.</Description>
            </Resource>
            <Resource ref="r38">
                <Label>Footnote 3 - video</Label>
                <Description>Absolute versus absolute transpositional pointing signs</Description>
            </Resource>
            <Resource ref="r39">
                <Label>Footnote 4 - video</Label>
                <Description>COME-HERE-FROM-A and GO-FROM-HERE-TO-B</Description>
            </Resource>
            <Resource ref="r40">
                <Label>Footnote 5 - video</Label>
                <Description>GO-FROM-A-TO-B</Description>
            </Resource>
            <Resource ref="r41">
                <Label>Footnote 6 - video</Label>
                <Description>Neutral form of COME</Description>
            </Resource>
            <Resource ref="r42">
                <Label>Footnote 7 - video</Label>
                <Description>LEAVE</Description>
            </Resource>
        </VirtualCollection>
    </Components>
</CMD>