Hello,

I am using Drupal 7.15 with Views OAI-PMH 7.x-1.0-beta1.
After I added an OAI-PMH display to an existing view, I randomly see some errors on my drupal pages.

The errors are :
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 24 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 27 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 24 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice : Undefined index: verb in views_oai_pmh_plugin_style->render() (ligne 27 dans /var/www/frantiq/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).

Also, I experience problems with my OAI-PMH export :
< error code="badVerb" >The request method GET is unknown.< /error >

Maybe my badverb issue is related to the Undefined index : verb errors.

Thanks

CommentFileSizeAuthor
#7 views_oai_return_limits.png38.01 KBrjerome
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sanky82’s picture

Hello, I have exactly the same problem with my OAI-PMH, and I do not know how to fix. I do not wanted to create duplicated posts about the same issue. I hope somebody can help us.

Thanks

rjerome’s picture

This may be related to the fact that you added it to an existing view. If you could export the view and post it here, it might help in debugging.

sanky82’s picture

The path in the view:
Notice: Undefined index: verb in views_oai_pmh_plugin_style->render() (line 24 of /var/nas2/jails/drupal.bibdigital.rjb.csic.es/home/user/www/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).
Notice: Undefined index: verb in views_oai_pmh_plugin_style->render() (line 27 of /var/nas2/jails/drupal.bibdigital.rjb.csic.es/home/user/www/sites/all/modules/views_oai_pmh/plugins/views_oai_pmh_plugin_style.inc).

http://mysite.es/oai

And this is what I see in view oai-pmh:
2012-09-28T08:40:30Zhttp://mysite.esThe request method GET is unknown.

regisrob’s picture

1) the "badVerb" error is due to a wrong URL of the OAI feed :
If you have not modified the default View path in Drupal, the URL should be like this : "http://www.mydomain.fr/oai?verb=ListRecords&metadataPrefix=oai_dc" ou "http://www.mydomain.fr/oai?verb=Identify", and so on for the other OAI verbs...

2) there is also a bug that returns an OAI "badArgument" error (everything is explained in details here : http://drupal.org/node/1238240). To fix it, you just have to comment l.207-210 in "plugins/views_oai_pmh_plugin_display.inc".

It works fine for me.

sanky82’s picture

Thanks a lot!! It already works, although I have a problem with ListRecord verb request. Why this verb only shows the 18 first DC records from my repository? Do I have to change anything in OAI-PMH settings?

Thanks in advance

tigunn’s picture

Hi sanky82,
"this verb only shows the 18 first DC records from my repository"; ListRecord returns a number of record at a time and works like a pager. The harvester recovered the first recordings and call the following.

rjerome’s picture

FileSize
38.01 KB

The "pager" setting in the view controls how many items are returned before a "resumption" token is issued. The resumption token is used to determine where to start on the next request.

views_oai_return_limits.png

adriancid’s picture

Issue summary: View changes
Status: Active » Closed (outdated)