Tuesday 24 September 2013

Fix for disappearing records in ReDBox


Post upgrade to 1.6 we have had problems with records "disappearing" when progressing through the workflow. This has happened with records created in the previous version that have been sitting in "Investigation" or "Metadata Review" stages. To fix, edit the .tfpackage file for the appropriate record and add in the following after the metadata array:

    "packageType": "dataset",
    "viewId": "default",
    "known_ids": "<redbox_record_id>"



To find the invisible record, go to the dashboard search page and you should be able to see it there. Click on the record and make a note of the record id - to be found at the end of the URL: for example, https://my.domain.edu/researchdata/dashboard/detail/b8e4ac175fa6d8ba7a1f3443a1b0a2df/

To find the .tfpackage file, go to the storage folder in your ReDBox implementation and cd into the folder you find there. Inside that directory you file a number of folders with two digit names. cd into the folder which matches the first two digits of your record id e.g. b8. Continue in this manner until you come to a directory containing a folder with a name matching the record id you are looking for. This is the folder that contains the .tfpackage that we are looking for. For example:

$ cd b8/e4/ac/
$ ls
b8e4ac175fa6d8ba7a1f3443a1b0a2df
$ cd b84ac175fa6d8ba7a1f3443a1b0a2df
$ ls
1.6.1.workflow.backup                                  oai_dc.xml.meta  
1.6.1.workflow.backup.meta                             rif.xml         
d6a0f533-2c48-48be-b7bc-0aea254047c3.tfpackage         rif.xml.meta     
d6a0f533-2c48-48be-b7bc-0aea254047c3.tfpackage.meta    TF-OBJ-META
manifest.lock                                          TF-OBJ-META.meta
marc.xml                                               workflow.metadata
marc.xml.meta                                          workflow.metadata.meta
oai_dc.xml

Once you have found the .tfpackage file, make the changes described above. You then need to go back to your web browser, find the record in the dashboard search and reindex the record. You should now be able to "find" your record in the appropriate workflow step in the normal ReDBox interface.

No comments: