Bug #1288
closedmetacat insertion/update issues
0%
Description
With morpho 1.5, the user can create several versions of a package without ever
having saved the package to metacat (or locally). It is thus impossible to tell
if a package with a version number greater than 1 has ever been saved. This
means that one cannot tell whether to 'insert' or 'update' based only on the id
version.
Also, the current version of metacat requires only that a newly updated document
have a version number greater than any previous version, while previously a
nmerically sequential series of versions was required. Also Insertion/Update
method has become simpler without triples, but this means new methods were needed.
Also, we now need to check for uri references to data files to be stored along
with the primary metadata. This requires an iteration over entities to find such
data files and check if they have been sent to metacat. [There is a statement in
MetacataDataStore to throw a FileNotFoundException, except the method also
contained an enclosing catch. Thus the thrown exception never got to calling
methods outside the class!]