« March 2012 | Main | May 2012 »
April 24, 2012
File naming conventions
The Research Gateway needs one.
[descriptive_terms]_[startdate]_[enddate]_v[versionnumber].[extension]
Version numbers would increment with non-minor changes to the file (e.g., reformatting, addition of data, header changes).
I dislike the fact that end dates would also change. In my mind, once a file name is set, the only thing that should change going forth is the version number.
I should probably add an additional data set ID (or data file ID) to the file name.
Currently, I use the following (somewhat strictly enforced convention):
[descriptive_terms]_v[version number].[extension]
Posted by kkwaiser at 04:02 PM | Comments (0)
April 23, 2012
Bookmark-able searches for Drupal's Biblio module
I've noticed that searches into our bibliography don't produce a linkable URL. While there may be other ways around this, one can always add /search/[terms] to the end of the URL:
http://umbs.lsa.umich.edu/research/bibliography/search/burn+plots
Posted by kkwaiser at 02:12 PM | Comments (0)
April 10, 2012
Incorrect path for CCK FileField
Strange bug that give an uploaded file the incorrect path for a time. To recreate:
1. Upload a file to a node. Will get a path like this:
~/sites/default/files/Snakescope.pdf
2. Save. Path remains:
~/sites/default/files/Snakescope.pdf
3. Now go into Edit mode. The path is now correct:
~/sites/default/files/private/publications/Snakescope.pdf
Related issues on Drupal.org
It is the fault of FileField Paths.
File name replacement pattern does not work anymore (CCK + FileField) but after second saving
Node links to original file path after creation until the node is saved again
Agileware proposes a solution: change the module weights (how? IDK).
Hefox proposes a patch (with rave reviews).
Summary:
Fixed in the dev version of FileField Paths. The stable version is now 2+ years old!!!!!!!!!
Posted by kkwaiser at 04:33 PM | Comments (1)