If the data source declares a default namespace (e.g., <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/">), this must be assigned a non-empty prefix using registerXPathNamespace() in order for it to be accessible through the xpath() function.
For discussion, see for instance: http://www.perlmonks.org/?node_id=530519.
The attached patch allows setting a prefix to solve this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| oaipmh.inc_.patch | 1.27 KB | woutgg |
Comments
Comment #2
seanbSome feedback below. Please check out the documentation on how to contribute patches https://www.drupal.org/node/707484. This saves people time applying and improving patches. Thanks for taking the time to contribute!
Use @see for links related to documentation. https://www.drupal.org/docs/develop/coding-standards/api-documentation-a...
These should be somewhere after the constructor and have some documentation.
Unrelated change.
Comment #4
seanbFixed the minor issues and committed. Thanks!