Re: [Dspace-tech] OAI configuration Properties

2013-07-18 Thread helix84
Hi Emilio,

On Thu, Jul 18, 2013 at 9:48 AM, emilio lorenzo  wrote:
> AbstractCatalog.secondsToLive=86401
> AbstractCatalog.granularity=-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

--
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] OAI configuration Properties

2013-07-18 Thread João Melo
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  wrote:

> Hi Emilio,
>
> On Thu, Jul 18, 2013 at 9:48 AM, emilio lorenzo  wrote:
> > AbstractCatalog.secondsToLive=86401
> > AbstractCatalog.granularity=-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 )
DSpace Department
*Lyncode*: Official
website
[image: Follow us on
Facebook]

--
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] OAI configuration Properties

2013-07-18 Thread helix84
On Thu, Jul 18, 2013 at 1:29 PM, João Melo  wrote:
> NOTE: As the OAI-PMH guidelines define there are only two possible 
> granularities (Day and Second).

Thanks for noting that. Actually, I just noticed even in OAICat there
are only these two possible values (day and second):
http://pubserv.oclc.org/oaicat/jars/docs/properties.html


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette