This is an important feature that is missing and something that I'd like
to do during the next few weeks. I did some work on the GLI file code
for Greenstone 2.63 that will make renaming files a lot easier, and I
don't think it would take long to implement now.
If you want to do this yourself, I strongly recommend you work on
Greenstone 2.63 (using an older version will be a lot more difficult and
mean that we won't be able to use your changes). You'll need to add some
code into file/FileQueue.java for doing the renaming. A rename is
essentially a move, but I think it would be better if you created a new
"rename" file job type. Processing these jobs will be very similar to
processing move jobs: do the file rename, update metadata, and update
the tree. You'll also need some code in the collection tree to allow the
user to click on a file and enter a new name. Once the user has done
this, you'll need to create a new rename file job and add it to the queue.
As I said, I'll probably get to this soon if you're willing to wait.
>Hi list, i would like to implement rename functionality in files and folders of
>my collection's tree in the gli(i use v2.60). In this way a user could change
>the file/folder names without having to delete, rename in the filesystem and
>then regather the file/folder in the collection. Has anyone done this? If not
>what should i change after renaming a file/folder apart from the corresponding
>entry in the metadata.xml file?
>This mail was sent through http://my.ceid.upatras.gr
>greenstone-devel mailing list