#1136: Batch import message misleading
-------------------------+--------------------------------------------------
Reporter: ianwallen | Owner: geonetwork-devel@…
Type: enhancement | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC2
Keywords: |
-------------------------+--------------------------------------------------
If uploading one MEF2 file using the batch import tool, the message
displayed is not correct.
Assuming everything is OK you will get the message
{{{
Total number of metadata records processed: 1
Total number of metadata records added: 1
0 errors
}}}
But this is the total number of files process. Since the MEF file may
hundreds of records, this is not the total number or metadata records
process.
A better message would be something like the following
{{{
Total number of file processed: 1
Total number of metadata records processed: 100
Total number of metadata records added: 100
0 errors
}}}
Since we are more interested in the real number of metadata records that
were add/modified and not the number of files processed.
Also if there is an error in one of the files, it would be nice to
identify the file with the error. I.e. If I batch upload 3 MEF files with
errors I get the following.
{{{
Total number of file processed: 3
Total number of metadata records processed: 3
Total number of metadata records added: 0
3 errors
import-file1.mef: No valid metadata file found in xxxxxxxx-xxxx-xxxx-
xxxx-xxxxxxxxxxxxx/metadata/.
import-file2.mef: No valid metadata file found in yyyyyyyy-yyyy-yyyy-
yyyy-yyyyyyyyyyyyy/metadata/.
import-file3.mef: No valid metadata file found in zzzzzzzz-zzzz-zzzz-
zzzz-zzzzzzzzzzzzz/metadata/.
}}}
A better message would be something like the following
{{{
Total number of metadata records processed: 3
Total number of metadata records added: 0
3 errors
No valid metadata file found in xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxxx/metadata/.
No valid metadata file found in yyyyyyyy-yyyy-yyyy-yyyy-
yyyyyyyyyyyyy/metadata/.
No valid metadata file found in zzzzzzzz-zzzz-zzzz-zzzz-
zzzzzzzzzzzzz/metadata/.
}}}
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1136>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.