Opened 12 years ago

Last modified 12 years ago

#1136 new enhancement

Batch import message misleading

Reported by: ianwallen Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.10.0 RC0
Component: User interface (web) Version: v2.8.0RC2
Keywords: Cc:

Description

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/.

Change History (1)

comment:1 by ianwallen, 12 years ago

Component: GeneralUser interface (web)
Priority: majorminor
Note: See TracTickets for help on using tickets.