Changes
Page history
Update oai pmh
authored
Feb 14, 2023
by
Peter Toth
Show whitespace changes
Inline
Side-by-side
oai-pmh.md
View page @
95445de1
...
@@ -58,6 +58,32 @@ For the element langstring the attribute xml:lang is used.
...
@@ -58,6 +58,32 @@ For the element langstring the attribute xml:lang is used.
```
```
> Hint: The repository has to ensure that the language code corresponds to the text of the element!
> Hint: The repository has to ensure that the language code corresponds to the text of the element!
## Vocabs
### Creativ Commons
```
xml
<lom:description>
<lom:langstring
xml:lang=
"x-t-cc-url"
>
https://creativecommons.org/licenses/by-sa/4.0
</lom:langstring>
</lom:description>
```
This uri is expected https://creativecommons.org/licenses/by-sa/4.0 and following the link shows the details of the license.
The ingester expects *https://creativecommons.org/licenses/* as an example for the RegExp
```
perl
$linkCC =~ /^https
\:\/\/
creativecommons.org
\/
licenses
\/
(.
*
)/ )
```
There is no short *CC* in the link. It is added by the ingester.
### ÖFOS
The expected part of the source uri ends with */vocabs/oefos2012*
```
perl
if ( $taxonPath->{source} =~ /(.
*
)
\/
vocabs
\/
oefos2012$/ ) {
```
To get the Oefos ID the uri has */vocabs/oefos2012* and the id at the end
```
perl
if ( ($prefixurl, $number) = $id =~ /(.
*)\/vocabs\/oefos2012\/(.*
)/ ) {
```
## Links
## Links
- https://www.openarchives.org/
- https://www.openarchives.org/
- https://metacpan.org/pod/Net::OAI::Harvester
- https://metacpan.org/pod/Net::OAI::Harvester
...
...
...
...