Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#303 closed Request (fixed)

Automatic attachment of files to sample (Case) items

Reported by: Jari Häkkinen Owned by: Nicklas Nordborg
Priority: major Milestone: Reggie v1.2
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

We need to attached scanned items to Samples.

Reggie should be extended with a functionality where it automatically associates files in a directory with samples. The association is implicit where the file name is used to deduce the sample name. The work flow to be supported goes like this

  1. The user uploads files to a directory in the BASE file system.
  2. When Reggie is started in "File association mode" the user should be asked for a directory containing the files to be connected.
  3. Reggie should go through all files in the directory and associate file not already associated with sample items.
  4. When all files are processed Reggie should present the number of already associated files, newly associated files, and list the files not associated.

The file names of the files to be associated are simply the sample name with a pdf extension, e.g., 123456.pdf, so Reggie should simply omit the .pdf extension and look for a sample named 123456.

What items should Reggie look for? The standard dialogue that is used in several other places can be used with a default value of 'In current project'.

Change History (4)

comment:1 Changed 9 years ago by Nicklas Nordborg

Status: newassigned

comment:2 Changed 9 years ago by Nicklas Nordborg

(In [1335]) References #303: Automatic attachment of files to sample (Case) items

The functionality is more or less in place. Just need some more polishing up in the gui and error handling.

comment:3 Changed 9 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [1336]) Fixes #303: Automatic attachment of files to sample (Case) items

comment:4 Changed 9 years ago by Nicklas Nordborg

(In [1337]) References #303: Automatic attachment of files to sample (Case) items

Added some info in README.

Note: See TracTickets for help on using tickets.