Hi,
There seems to be a problem when we try to harvest our OJS intstance with this kind of query:
https://mydomain/index.php/index/oai?verb=ListRecords&metadataPrefix=nlm
Page is blank and we can see in Apache logs these error message:
PHP Parse error: syntax error, unexpected ')' in /var/www/html/mydomain/plugins/oaiMetadataFormats/nlm/OAIMetadataFormat_NLM.inc.php(206) : runtime-created function on line 1
PHP Warning: usort() expects parameter 2 to be a valid callback, no array or string given in /var/www/html/mydomain/plugins/oaiMetadataFormats/nlm/OAIMetadataFormat_NLM.inc.php on line 206
PHP Fatal error: Call to undefined method ArticleGalley::getFilePath() in /var/www/html/mydomain/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
This type of query is OK:
https://mydomain/index.php/index/oai?verb=ListRecords&metadataPrefix=oai_dc
And return OAI-PMH DC. In fact, all other metadata formats works but not the NLM one.
Any idea ?
thanks,
Pierre