[
https://jira.duraspace.org/browse/DS-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26816#comment-26816
]
Ariel J. Lira commented on DS-1372:
-----------------------------------
Hi João,
I've tested the code against Dspace Head and submitted
https://github.com/DSpace/DSpace/pull/128
Please, let me know if the pull request is ok.
> Change OAI2.0 DSpaceMetadataExistsFilter to check for one or more fields
> -------------------------------------------------------------------------
>
> Key: DS-1372
> URL: https://jira.duraspace.org/browse/DS-1372
> Project: DSpace
> Issue Type: Bug
> Components: OAI-PMH
> Affects Versions: 3.0
> Reporter: Ariel J. Lira
> Assignee: João Melo
> Labels: oai, oai-contexts, oai-filters
> Fix For: 3.0
>
> Attachments: DSpaceMetadataExistsFilter.java,
> DSpaceMetadataExistsFilter.patch
>
>
> Class org.dspace.xoai.filter.DSpaceMetadataExistsFilter accepts or rejects
> items based on the existence of a single field among its metadata (indicated
> as an argument). While for most cases this is sufficient, in other cases it
> becomes necessary to check for the existence of at least one of many fields.
> As an example, in sedici.unlp.edu.ar, we have 2 metadata fields for
> authors:"sedici.creator.corporate" and "sedici.creator.person", so in order
> to filter out all items without authors, we should accept only items with
> either or both metadata fields.
> In OAI2.0 configuration syntax:
> <Filter id="authorexistsFilter">
> <Class>org.dspace.xoai.filter.DSpaceMetadataExistsFilter</Class>
> <Parameter key="fields">
> <Value>sedici.creator.person</Value>
> <Value>sedici.creator.corporate</Value>
> </Parameter>
> </Filter>
> I attach a plain diff file (aginst git head) and the full .java file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel