I have harvested an archive with archive_id 28, everything fine till here. Now it has 9000 records, with opac 192.168.8.143/...
I now harvest another archive with archive_id=29 and around 18000 records, using command line, with opac 192.168.8.151/...
but, something strange happens,
The verbose logs are as follows: UPDATE records SET archive_id='28' // it should have been 29
and when i do a ,
SELECT archive_id from record where identifier='KOHA-OAI-TEST:916'
i get : archive_id = 28
why it doesn't take identifier for archive_id=29?
other stats are :
SELECT * from archive_settings;
28 Last Indexed Date 1
29 Last Indexed Date NULL
In the end what happens is , i have archive 29 with only 9000 records, opac 192.168.8.151/... (opac is correct) // record count should have been 18000
and the previous archive 28 ,has 9000 records but all of it's identifiers have incorrect opac 192.168.8.151/... , earlier the opac was correct 192.168.8.143/... //archive 29 overwrote opac of archive 28
To fix this , i opened RecordDAO.inc.php and
at line 170-176 for inserting a new record
$this-update(sprintf('INSERT INTO RECORDS(archive_id, ) VALUES(? ,?,?);
i hardcodeed VALUE 29
similarly, at line 195-204 for updating an existing record
i hardcoded archive_id=29
now , it started harvesting the record for archive_id=29, but in the end it gave me error in ADODB.inc.php, harvester.inc.php, OAIHarvester.inc.php
please suggest me how can i take care of this error. i have around 14 archives set up for harvesting, and i am not able to move to 2nd archive .
And, Sir, please guide me how can i resolve the issue of archives serving the same record identifier.This will be really helpful. Where can i find the same record identifiers for various archives and how can i resolve that. please guide me.
thanks and regards,
Last edited by singhkarki
on Tue Jan 28, 2014 10:12 am, edited 1 time in total.