Islandora/islandora_fits — pull request #16 by MorganDawe (2013-03-27 14:50:59+00:00)
Title: Cleaned up code to be compliant with code standards/file permissions.

This issue was being caused because 3 different attempts are being made to created TECHMD ds xml schema data thru the islandora_fits_create_fits function. As one attempt would fail, another would be made. In this case, FITS was not cleaning up the empty file left behind from the previous attempt. As a result, fits was not able to write to the same directory with the same file name, or edit the existing xml file. An additional verify_fits_xml() function has been added to clean up after each attempt and verify the files size is greater then 0, preparing the file for the next attempt to create TECHMD ds data.