[Dspace-tech] OAI output

2015-03-11 Thread Benjamin Ryan
Hi,
Can anyone tell me where to look to resolve the following issue:

Requests to 
http://dspace.jorum.ac.uk/oai/request?verb=ListRecordsmetadataPrefix=oai_dc

Return as source:

?xml-stylesheet type=text/xsl href=static/style.xsl?
OAI-PMH xmlns=http://www.openarchives.org/OAI/2.0/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://www.openarchives.org/OAI/2.0/ 
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd;
responseDate2015-03-11T13:04:03Z/responseDate
request verb=ListRecords 
metadataPrefix=oai_dchttp://open.jorum.ac.uk/oai/request/requesthttp://open.jorum.ac.uk/oai/request%3c/request

I was expecting http://dspace.jorum.ac.uk/oai/request not 
http://open.jorum.ac.uk

The code seems to pull the request URL from the HTTP request object.

Regards,
Ben



[Jisc]http://www.jisc.ac.uk/

Ben Ryan
Jorum Technical Manager

T 0161 275 6032
Skype argaric
Room 5.12 Roscoe Buidling, The University of Manchester, Oxford Road, M13 9PL

jisc.ac.ukhttp://www.jisc.ac.uk/

Jisc is a registered charity (number 1149740) and a company limited by 
guarantee which is registered in England under Company No. 5747339, VAT No. GB 
197 0632 86. Jisc's registered office is: One Castlepark, Tower Hill, Bristol, 
BS2 0JA. T 0203 697 5800. jisc.ac.ukhttp://www.jisc.ac.uk/




--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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 output

2015-03-11 Thread Claudia Jürgen
Hello Ben,

ran into the same issue resulting in an invalid baseUrl which is got here:

https://github.com/DSpace/DSpace/blob/dspace-4.2/dspace-oai/src/main/java/org/dspace/xoai/data/DSpaceIdentify.java#L76-85
and as static determined only once.


The results are cached as configured in
[dspace-src]/dspace/config/modules/oai.cfg
in
[dspace]/var/oai/requests

You can clean the cache
[dspace]/bin/./dspace oai clean-cache

But as long as your oai webapp is accessible in different ways you might 
get into trouble here again. We solved it adding a config param to 
oai.cfg containing the registered baseUrl and using this to determine 
the baseUrl rather than the request.

Hope this helps

Claudia Jürgen




Am 11.03.2015 um 14:52 schrieb Benjamin Ryan:
 Hi,
  Can anyone tell me where to look to resolve the following 
 issue:

  Requests to 
 http://dspace.jorum.ac.uk/oai/request?verb=ListRecordsmetadataPrefix=oai_dc

  Return as source:

  ?xml-stylesheet type=text/xsl href=static/style.xsl?
 OAI-PMH xmlns=http://www.openarchives.org/OAI/2.0/; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://www.openarchives.org/OAI/2.0/ 
 http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd;
 responseDate2015-03-11T13:04:03Z/responseDate
 request verb=ListRecords 
 metadataPrefix=oai_dchttp://open.jorum.ac.uk/oai/request/requesthttp://open.jorum.ac.uk/oai/request%3c/request

 I was expecting http://dspace.jorum.ac.uk/oai/request not 
 http://open.jorum.ac.uk

 The code seems to pull the request URL from the HTTP request object.

 Regards,
  Ben



 [Jisc]http://www.jisc.ac.uk/

 Ben Ryan
 Jorum Technical Manager

 T 0161 275 6032
 Skype argaric
 Room 5.12 Roscoe Buidling, The University of Manchester, Oxford Road, M13 9PL

 jisc.ac.ukhttp://www.jisc.ac.uk/

 Jisc is a registered charity (number 1149740) and a company limited by 
 guarantee which is registered in England under Company No. 5747339, VAT No. 
 GB 197 0632 86. Jisc's registered office is: One Castlepark, Tower Hill, 
 Bristol, BS2 0JA. T 0203 697 5800. jisc.ac.ukhttp://www.jisc.ac.uk/







 --
 Dive into the World of Parallel Programming The Go Parallel Website, sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for all
 things parallel software development, from weekly thought leadership blogs to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/



 ___
 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


-- 
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.juer...@ub.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.

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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 output item header

2012-08-20 Thread helix84
On Mon, Aug 20, 2012 at 11:12 AM, Jacob Andersson
jacob.anders...@mah.se wrote:
 Hi,

 Ivan, could you please show me an example of an XOAI XSLT-transformation that 
 changes the contents of the XML-output's item-header? I haven't been able to 
 figure it out, looking at the XOAI addon files (which is now installed on out 
 test server).

 Thanks,

 Jacob

Please, always keep dspace-tech in CC.

The relevant XSLT files are in
[dspace]/config/modules/oai/metadataFormats (the directory is xoai
in case of the addon). Don't change the standard formats, create a new
one instead (by copying one of the formats and using it as a
template).

Important: when you change the XSLT file, the change won't show up
because of caching. You have to clear the cache ([dspace]/bin/dspace
oai clean-cache resp. [dspace]/bin/dspace xoai clean-cache) after
every change. This has been reported and will be fixed in a later
version [1].

[1] https://github.com/lyncode/DSpace/issues/35

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] OAI output item header

2012-08-20 Thread Jacob Andersson
Hi,

Thanks. I've looked at all the included files in both the metadataFormats and 
transformers folders, but I can't find any code that changes the item header. 
The XSLT-files in the metadataFormats folder make no mention of the item 
header, so I'm assuming it is generated elsewhere?

Yours,
Jacob
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] OAI output item header

2012-08-20 Thread helix84
On Mon, Aug 20, 2012 at 12:22 PM, Jacob Andersson
jacob.anders...@mah.se wrote:
 Thanks. I've looked at all the included files in both the metadataFormats and 
 transformers folders, but I can't find any code that changes the item header. 
 The XSLT-files in the metadataFormats folder make no mention of the item 
 header, so I'm assuming it is generated elsewhere?

OK, my mistake. I actually tried it now. It seems the metadataFormats
templates simply do not get the header at their input, only metadata.
I'm sure Lyncode will be able to advise you what you should do
instead.

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] OAI output item header

2012-08-20 Thread DSpace @ Lyncode
Hi Jacob,

in order to have control over the list of sets you will need to override
the default XOAI behaviour.

https://github.com/lyncode/xoai/blob/master/src/main/java/com/lyncode/xoai/dataprovider/data/AbstractItemIdentifier.java


I think you need a virtual set, listed on top the the list. So basically,
you'll need to change the order of the list of sets, populating it firstly
with virtual sets (also called static sets) leaving the dynamic sets
(DSpace sets at the end).

Then you'll need to change the dspace-oai/dspace-oai-api/pom.xml in order
to use your overridden implementation. You can also propose a change(pull
request) to the official library (https://github.com/lyncode/xoai), it
could support a Sortable list of sets, by default it would do nothing, but
each data source implementation could provide a sortable implementation.

Another solution would be a XSL proxy.

On 20 August 2012 14:16, helix84 heli...@centrum.sk wrote:

 On Mon, Aug 20, 2012 at 12:22 PM, Jacob Andersson
 jacob.anders...@mah.se wrote:
  Thanks. I've looked at all the included files in both the
 metadataFormats and transformers folders, but I can't find any code that
 changes the item header. The XSLT-files in the metadataFormats folder make
 no mention of the item header, so I'm assuming it is generated elsewhere?

 OK, my mistake. I actually tried it now. It seems the metadataFormats
 templates simply do not get the header at their input, only metadata.
 I'm sure Lyncode will be able to advise you what you should do
 instead.

 Regards,
 ~~helix84




-- 
Thanks,
DSpace Department
*Lyncode*: Official
websitehttp://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ

[image: Follow us on
Facebook]http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q
http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] OAI output item header

2012-08-14 Thread Jacob Andersson
Hi.

We're running 1.8.2 with XMLUI.

I'm having trouble finding where I can define the item header in the XML output 
for OAI-PMH harvesting. I've worked with the crosswalk XSLT files but in these 
I can't find any reference to the headers.

This is a snippet of the XML-file:

record
header
identifieroai:dspace.mah.se:2043/619/identifier
datestamp2011-08-23T08:58:59Z/datestamp
setSpechdl_2043_616/setSpec

-- Here is where I'd like to insert some text --

/header
metadata
.lots of stuff that I know how to change.
/metadata
/record


(more of a sample XML-file is here: 
http://dspace.mah.se/oai/request?verb=ListRecordsmetadataPrefix=oai_dcset=hdl_2043_616)

Any help appreciated,

Jacob Andersson
Librarian
Malmö University
Library and IT / Digital Information Services
205 06 Malmö
Sweden
jacob.anders...@mah.se
+46-(0)40-665 8387



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] OAI output item header

2012-08-14 Thread helix84
Hi Jacob,

the header generation is buried in the OAICat library [1] which DSpace
uses for this. It's not a simple XSLT transformation there, you would
need to modify some Java code of OAICat, rebuild OAICat, update the
oaicat dependency in DSpace and rebuild DSpace.

However, there's now OAI 2.0 based on the XOAI library, which will
most likely replace the old oai webapp in DSpace 3.0. OAI 2.0 can do
this simply by an XSLT transformation. You can also get it as an addon
for DSpace 1.8 [2], which you can deploy on your existing DSpace
instance, even side-by-side with the old oai. For more details, see
[3].

So let us know which route you decide to take and if you need any more help.

[1] http://code.google.com/p/oaicat/source/checkout
[2] http://www.lyncode.com/dspace/addons/xoai/
[3] https://jira.duraspace.org/browse/DS-1202

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech