Skip to content

Support fragments in endpoint URLs #49

@twagoo

Description

@twagoo

If endpoint URLs in the XML configuration or in the centre registry contain an URL fragment (starting with #), it should be made sure that

  • the fragment part is included when matching endpoint URLs (i.e. it should be possible to extend such an endpoint from the centre registry in the XML configuration)
  • multiple URLs that are equal except for the fragment should be considered unequal
  • only when making the request the fragment part should be discarded/ignored

For example, it should be possible to have two URLs in the centre registry:

  • https://clarino.uib.no/oai
  • https://clarino.uib.no/oai#FIN-CLARIN

Notice that these are equal except for the URL fragment. However, these should be treated as separate, and if the XML configuration contains the following:

    <provider url="https://clarino.uib.no/oai#FIN-CLARIN" name="FIN-CLARIN">
      <set>FIN-CLARIN</set>
    </provider>

this should ony apply to the harvest of the second 'provider'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions