Ariel J. Lira created DS-1372:
---------------------------------

             Summary: 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: Improvement
          Components: OAI-PMH
    Affects Versions: 3.0
            Reporter: Ariel J. Lira
         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

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to