Open t4k opened 9 years ago
The one other option I would suggest is instead load the islandora datastream with islandora_datastream_load ($dsid, $fedora_object_id) and check if the datastream exists that way. It would be cleaner than using the baseurl file_get_contents and fopen
As an example, see: https://github.com/btmash/islandora_entity_bridge/blob/7.x-1.x/handlers/views_islandora_entity_bridge_handler_field_datastream_xml.inc#L47
My use case was the following:
I think it may have crashed Fedora. I had to restart Fedora afterwards.
Hopefully there is a way to validate that the datastream supplied in the Views option exists before continuing with the code that renders it. This would be useful for all existing handlers: Image, Link, XML, and XPath.
I'm going to commit a variation on this soon for the different handlers: