Dear Gary,

On 01/04/2011 08:42 PM, holman wrote:
[...]
What can I do to fix this issue? I have modified the collectionname with
a manual sql query, however the 'P' still persists in the collectiontree.

I have not verified yet if there is indeed a bug in Invenio v0.99.3
affecting the creation of collection with "&" characters in the name.
(BTW which browser/version are you using?)

However since you have updated the collection name manually, you should
be able to see the updated name in the collection tree. However note the
following:

1) The URL of the collection (for eg. <http://localhost/collection/foo>)
   will remain 'foo' even if renamed in that way to 'bar'.
   In other words updating the collection name that way just changes the
   way it is displayed to the users on web pages, but does not really
   change its identifying name.

   Is it the case for you that your collection is still:
   <http://localhost/collection/p> ?

2) Updates to the collection tree are done only once the WebColl task
   has run. You should force it to update the collection:
   /opt/cds-invenio/bin/webcoll -f -c 'foo'

   Note that I am using name 'foo' even though I "renamed" the
   collection to 'bar'.
   Also make sure that the task has run in BibSched:
   /opt/cds-invenio/bin/bibsched

3) Make sure that you are looking at the collection in the correct
   language. You might be looking at a different translation.

4) When you really want to rename a collection (including its URL)
   you can use the following command:
sudo -u www-data echo "UPDATE collection SET name='Procedures, ES&H, Safety' where id=44" | /opt/cds-invenio/bin/dbexec
   (in addition to the one you used to update the d_isplayed_ name)

   Make sure you run WebColl. You might also want to clear your browser
   cache and restart Apache to clean any cached file too.

   A better alternative is usually to recreate the collection with the
   wanted name (so that you can keep the old collection URL, in case
   one has bookmarked it), but you are not really in that case.

Best regards
--
Jerome Caffaro ** Invenio Developer ** <http://invenio-software.org/>

Reply via email to