I have found a couple of changes that I needed in the “harvest_oai.php” script in order to harvest records onto our Windows 2008 VuFind server:
· Added “$response = utf8_encode($response);” to the _sendRequest() function – this prevented the script from crashing out when it calls simplexml_load_string($xml); in the _processResponse() function (some of our older records are not UTF8 encoded)
· Added a “\r” to the line fputs($file, implode("\r\n", $harvestedIds)); in the _processRecords() function as all the IDs need to be on a separate line if you want to use the log file to delete imported records – not sure why the “\n” didn’t do this on its own.
Just in case anyone else spends days trying to harvest records and comes across problems with certain sets.
Library Assistant (Systems), Tremough Library
University College Falmouth
Tremough, Penryn, Cornwall TR10 9EZ