Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have a problem while using the sample view "Biblio OAI-PMH" in an HTTP GET request :
The preview in drupal is OK, but an URL constructed with the openarchive protocol (http://www.openarchives.org/OAI/openarchivesprotocol.html), for example http://mysite/oai?verb=Identify, returns the error page :
2011-08-03T14:44:30Z
http://mysite
Do not use them same argument more than once.
Have you an explanation ?
Thanks in advance
Comments
Comment #1
rjerome CreditAttribution: rjerome commentedUnfortunately I can't explain that, it should work. I just tried the same URL on my system and it works as expected.
You might try clearing your "views" cache (admin/structure/views/settings/advanced) to see that helps.
Comment #2
rcoffion CreditAttribution: rcoffion commentedThank you for your answer.
Unfortunately, the clearing of the views-cache doesn't resolve the problem.
What is the component's version which is working on your system ?
Comment #3
rjerome CreditAttribution: rjerome commentedYou do need Views 3.x to use this plugin, (probably the latest -dev of both views and ctools is a good idea).
Comment #4
rcoffion CreditAttribution: rcoffion commentedHere are my versions :
Views 7.x-3.x-dev
Views OAI-PMH 7.x-1.0-beta1
Chaos tools 7.x-1.x-dev
Do you think that's OK ?
Comment #5
rjerome CreditAttribution: rjerome commentedYep, (assuming those -devs are the latest) it looks all good.
What happens if you enter the following...
/oai?verb=ListRecords&metadataPrefix=oai_dc
Comment #6
rcoffion CreditAttribution: rcoffion commentedWith /oai?verb=ListRecords&metadataPrefix=oai_dc :
Do not use them same argument more than once.
The combination of the given values results in an empty list.
Comment #7
rjerome CreditAttribution: rjerome commentedDid you change the "path" in the view?
You might try un-installing and re-installing the module.
Comment #8
rcoffion CreditAttribution: rcoffion commented1 : no, I keep the default value for the path : Path: /oai
2 : if I re-install the module, what is your recommendation : do I take the version 7.x-1.0-beta1 or 7.x-1.x-dev ?
Comment #9
rjerome CreditAttribution: rjerome commentedI don't think there have been any changes to the -dev version since beta1 so they are essentially identical.
Comment #10
rcoffion CreditAttribution: rcoffion commentedHere is what I did :
- update ctools (rc1)
- uninstall module "Views OAI-PMH"
- reinstall v. 7.x-1.x-dev
- clear views' cache + all caches
- test of /oai?verb=ListRecords&metadataPrefix=oai_dc
- always the same error page :
"Do not use them same argument more than once."
"The combination of the given values results in an empty list."
In the file views_oai_pmh_plugin_display.inc, it seems to be the error code 'sameArgument' (in function oai_error) ??
Comment #11
rjerome CreditAttribution: rjerome commentedOK, maybe we need to go outside the module to more detail about your setup.
What OS/Web server/PHP versions are you using?
Comment #12
rcoffion CreditAttribution: rcoffion commentedI tried :
- Wampserver 2.0 on windows 7 SP1 - AND - apache 2 on debian 6.0
- Both with PHP 5.3.0 and Drupal 7.2
Comment #13
rjerome CreditAttribution: rjerome commentedI think the issue is related to the content (or lack there of) of the $_SERVER global.
Try commenting out lines 207 - 210 in views_oai_pmh_plugin_display.inc as shown below...
Comment #14
rcoffion CreditAttribution: rcoffion commentedOK, thank you very much : it works !
In your mind, what's the best solution :
- let these lines commented
- put a content on $_SERVER : have you an example ?
Comment #15
rjerome CreditAttribution: rjerome commentedNow that you have confirmed that this is the problem, I'm going to remove those lines from the code since they were carried forward from some older code and I don't think they are really necessary in the context of this module.
Cheers,
Ron.
Comment #16
rcoffion CreditAttribution: rcoffion commentedI hope this will be useful for other users of your very important module.
Many thanks again.
Bye
Comment #17
rjerome CreditAttribution: rjerome commentedPushed changes to repository...
http://drupalcode.org/project/views_oai_pmh.git/commit/a72fb78
Comment #18
rcoffion CreditAttribution: rcoffion commentedComment #19
rcoffion CreditAttribution: rcoffion commented