Opened 16 years ago

Closed 16 years ago

#279 closed task (fixed)

"Replace srcdoc with html" should work if GSDL is remote, and changes

Reported by: ak19 Owned by: ak19
Priority: moderate Milestone: Release 2.81
Component: GLI Severity: major
Keywords: GLI, replace_srcdoc_with_html, gsdlremote Cc:


Presently the script replace_srcdoc_with_html works when GSDL is running locally. gli/src/org/greenstone/gatherer/gui/ should be adjusted to work when GSDL is remote as well. And then tested.

Once tested, the changes need to be incorporated into Greenstone 3 as well.

$GSDLHOME/bin/script's has been changed, and has been added. $GSDLHOME/perllib/plugins now has changes to *.pm files ConvertToPlug and ALL its subclasses, as well as $GSDLHOME/perllib/ has changes to, while there are new additions to the file $GSDLHOME/gli/classes/ also has additions.

Finally, there are some changes to gli java source code files too: CollectionTree, CollectionTreeNode, FileManager, Plugin, PluginManager, Plugins. There have been some changes to CollectionManager and GShell to deal with spaces in filepaths.

Change History (2)

comment:1 by ak19, 16 years ago

Finished this off - the rightclick context menu feature that allows one to Replace Source Documents With HTML works remotely now as well.

SVN revisions 15164-15172. There were mainly changes to:

  • added handling of replace_srcdoc_with_html's arguments in run_script where it also ensures that spaces in filenames are escaped, to deal with such filenames. Added file-exists cmd and corresponding file_exists method.

Additional changes were required to the files:

  • soft_link routine modified to have additional parameter that will ensure src, dest paths are absolute
  • files and make use of the modified soft_link subroutine to ensure absolute filepaths (since remote GSDL only passes relative file path to import directory).
  •, it must return some output to STDERR or STDOUT on success (GShell.runRemote() requires it)

comment:2 by ak19, 16 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.