Sets in OAI

170 views
Skip to first unread message

Gabriel Gervasio

unread,
Apr 7, 2016, 4:02:18 PM4/7/16
to DSpace Technical Support

Hi Again, I need to set a specifically set on the OAI interface, can you tell me the steps to make it possible? Thanks

I sent an image to be more clear, sorry for my english.

Claudia Jürgen

unread,
Apr 12, 2016, 11:25:13 AM4/12/16
to dspac...@googlegroups.com
Hi Gabriel,

Sets can be configured in the xoai configuration
[dspace]/config/crosswalks/oai/xoai.xml
using the filter which is appropriate for your set.

e. g. if you want to have a set with all items which got the metadata
dc.type=Article you could do

<Contexts>
<Context baseurl="request" name="Default Context">
<!-- use the set in a specific context -->
<Set ref="typeArticleSet" />
</Context>
</Contexts>
<Filters>
<!-- the filter used in the set definition -->
<Filter id="typeArticleFilter">
<Definition>
<Custom ref="typeArticleCondition"/>
</Definition>
</Filter>
<!-- the condition used in the filter />
<CustomCondition id="typeArticleCondition">
<Class>org.dspace.xoai.filter.DSpaceAtLeastOneMetadataFilter</Class>
<Configuration>
<string name="field">dc.type</string>
<string name="operator">equal</string>
<string name="value">Article</string>
</Configuration>
</CustomCondition>
</Filters>
<Sets>
<!-- the set definition -->
<Set id="typeArticleSet">
<Spec>type:article</Spec>
<Name>Article</Name>
<Filter ref="typeArticleFilter"/>
</Set>
</Sets>

You can even write your own Filter Class if the already existing ones see
https://github.com/DSpace/DSpace/tree/master/dspace-oai/src/main/java/org/dspace/xoai/filter
do not suit your purpose.

Hope this helps

Claudia Jürgen

Am 07.04.2016 um 22:02 schrieb Gabriel Gervasio:
>
> <https://lh3.googleusercontent.com/-AePQ8RRAPEY/Vwa8txegGnI/AAAAAAAAD7E/ytgzfKpizlUmJUEpnyrfpAB4u2STe57Sg/s1600/oaisets.png>
> Hi Again, I need to set a specifically set on the OAI interface, can you
> tell me the steps to make it possible? Thanks
>
> I sent an image to be more clear, sorry for my english.
>

--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.

Gabriel Gervasio

unread,
Apr 13, 2016, 2:29:54 PM4/13/16
to DSpace Technical Support
Thanks Claudia! its works!

Do you have problems with the command ./dspace oai import -c ?
Because when I try that command i have errors in java xoai...

Claudia Jürgen

unread,
Apr 14, 2016, 4:24:04 AM4/14/16
to dspac...@googlegroups.com
Hello Gabriel,

great.

We need mor details about the error with oai import. See
https://wiki.duraspace.org/display/DSPACE/Troubleshoot+an+error
on how to find them.

Hope this helps

Claudia Jürgen




>> claudia...@tu-dortmund.de <javascript:>
Reply all
Reply to author
Forward
0 new messages