From: Matthew S. <yo....@gm...> - 2006-06-22 03:07:20
|
Hi All, I've made some progress on this topic. There are a couple of changes need to fix the problem. Note - backup any files you edit before changing the code. 1. edit include/class.reindex.php:248 - function indexFezFedoraObjects Find the line which reads 'if (@$HTTP_POST_VARS["override"] ...' and change it to read: if (Misc::checkBox(@$HTTP_POST_VARS["override"]) && !Misc::checkBox(@$HTTP_POST_VARS["recover"])) { 2. In the same file and function change the calls to 'addDatastream' to be 'getUploadLocation' - note you'll need to delete the param "A", as it is not used. There are two of these calls, one for $relsext and one for $fezmd - these are the two most basic datastreams needed by fez. So the one for relsext looks like this: Fedora_API::getUploadLocation($pid, "RELS-EXT", $relsext, "Relationships to other objects", $relsext, "text/xml", "X"); 3. Change the form so that 'override' is always set (we are using the same function with different input to do indexing and reindexing and need to support the opposit meanings of the checkboxes). Edit templates/en/manage/fedoraindex.tpl.html:173 add the line <input type=3D"hidden" name=3D"override" value=3D"on" /> just after the <form.. line. The 'recover' checkbox will now have an effect when indexing new objects! This also fixes reindexing objects with 'override' set to true. Matt On 6/10/06, J=FCrg Hofer <jue...@eb...> wrote: > > Hi Matt > > I didn't see your posting on the indexing matter till now, so sorry. > > No, your work around with indexing, then reindexing again with values > override does not > work on my installation. > Reindexing comes with a long error log, where the root of the problem see= ms > to be getting FezMD. > But I would be happy to send you the full error log if this would be of a= ny > helt for you. > > Juerg > > "Hi All, > > I have found out what's wrong with the indexing / reindexing of fedora > objects into fez. I haven't come up with a patch yet as I need to do > more testing but here is a work around: > > First do 'Index Fedora Objects into Fez'. When it has finished do > 'Reindex Fez Fedora Objects' but tick the box for 'Override values'. > > Please let me know if this works or not because I'm not setup to test > it this afternoon. > > Matt" > > > _______________________________________________ > Fez-users mailing list > Fez...@li... > https://lists.sourceforge.net/lists/listinfo/fez-users > > > |