Hi,

granularity configuration isn't possible at the moment, as it is hard coded
(as one could see [1]).
However, it is possible by replacing
dspace-oai/main/java/org/dspace/xoai/data/DSpaceIdentify.java by  [2].

Edit dspace/config/modules/oai.cfg and add a new configuration value:

# Possible granularities: day or second
granularity = day

NOTE: As the OAI-PMH guidelines define there are only two possible
granularities (Day and Second).

[1]
https://github.com/DSpace/DSpace/blob/master/dspace-oai/src/main/java/org/dspace/xoai/data/DSpaceIdentify.java
[2] https://gist.github.com/lyncodev/6028563


On 18 July 2013 09:48, helix84 <[email protected]> wrote:

> Hi Emilio,
>
> On Thu, Jul 18, 2013 at 9:48 AM, emilio lorenzo <[email protected]> wrote:
> > AbstractCatalog.secondsToLive=86401
> > AbstractCatalog.granularity=YYYY-MM-DDThh:mm:ssZ
>
> I believe these two options can't be configured in the new OAI.
> According to description [1] of these properties in OAICat (the old
> OAI library), the first one determines how long resumptionTokens are
> valid. In XOAI, these are implemented differently and you can't
> control that.
> In any case, the OAI-PMH specification leaves it up to the application
> what the meaning of resumptionTokens is, so your harvester shouldn't
> rely on this.
>
> I don't think you can control granularity in XOAI configuration (it's
> either days or seconds [2]), but if you really need to modify this,
> grep the source of XOAI [3].
>
> > Identify.repositoryName=${dspace.name}
> > Identify.adminEmail=${mail.admin}
> > Identify.earliestDatestamp=2001-01-01T00:00:00Z
> > Identify.deletedRecord=persistent
>
> This feature wasn't implemented in DSpace 3.0 or 3.1, but it will
> actually be part of 4.0 and also 3.2, due to be released next week. If
> you need the patch now, see [4].
>
> [1] http://pubserv.oclc.org/oaicat/jars/docs/properties.html
> [2] https://github.com/lyncode/xoai/blob/master/schemas/oai-pmh.xsd#L275
> [3] https://github.com/lyncode/xoai
> [4] https://jira.duraspace.org/browse/DS-1479
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>



-- 
Thanks, João Melo (My Portfolio <http://www.lyncode.com/m/jmelo/>)
DSpace Department
*Lyncode*: Official
website<http://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2F&sa=D&sntz=1&usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ>
[image: Follow us on
Facebook]<http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q>
<http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncode&sa=D&sntz=1&usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to