Hello Frédéric: On Tue, 6 Jun 2006, Frédéric Gobry wrote: >> We think it would be better to have: >> >> http://invenio/record/123/files/my_filename.pdf?version=2 > > I've committed some code going this way. I've still a few issues to > solve properly: > > - for the legacy handler on /getfile.py URLs, what should I do with > queries that only provide a docid? return the current content > without any redirection, or redirect to the more general > /record/<recid>/files/ page?
I think a redirect is better, hiding the old URL style. > - would it be possible to have different file names for a same docid > ? file.py does not makes this point very clear Nick? Conceptually speaking, if we go for having filenames in the URL, we'd better foresee the filenames to be unique. > - regarding tests, I don't think there are fulltexts already > inserted in the demo site. What would be the simplest way to do > that? This is a problem we wanted to tackle together with the task of demoing a simple submission setup (1 doctype, 1 collection, no categories) for Atlantis. But we have not done that yet. The easiest way to insert demo fulltexts with records will be available in a couple of months with the new BibUpload in Python that will have an optional fulltext upload feature: https://savannah.cern.ch/task/index.php?func=detailitem&item_id=3234 But it is not ready at the moment yet. So, for the time being, we'd have to copy the files manually to the corresponding places and fill the docID tables and stuff in order to do the getfile tests... Best regards -- Tibor Simko ** CERN IT-UDS ** Bldg 31-S-014 ** Voice: +41-22-7673527 CERN Document Server ** <http://cds.cern.ch/> ** <[email protected]>
