I have discovered some unexpected, but welcome, behaviour in 2.4. It appears that when I import accession records, they are matching and update (based on accession number, I assume) existing records. We have a large number of placeholder accession records that we imported as part of a data migration and we're looking to add detail to them in bulk. I've spent some time thinking about how to accomplish this, and assumed I would have to write some SQL to clean out duplicate records in the database or something. Imagine my surprise when I ran a test import through the web interface and found it updating existing records!Is this doing what I think it's doing? I'd like to confirm the behaviour before I go ahead and import 1000+ accessions to our staging server.I wish I'd known about this before! Is it possible I am missing it in the documentation? From what I can see, updates via import work for archival descriptions, archival institutions, and authority records. Those all have options in the web interface for changing update behaviours, while accession records do not, and yet the log output for the job shows the following (note the line "Update type: import-as-new"):
[info] [2018-03-06 08:05:25] Job 388054 "arFileImportJob": Job started.
[info] [2018-03-06 08:05:25] Job 388054 "arFileImportJob": Importing CSV file: gencat_accessions.csv.
[info] [2018-03-06 08:05:25] Job 388054 "arFileImportJob": Indexing imported records.
[info] [2018-03-06 08:05:25] Job 388054 "arFileImportJob": Update type: import-as-new
[info] [2018-03-06 08:05:27] Job 388054 "arFileImportJob": php '/usr/share/nginx/atom-2.4/symfony' 'csv:accession-import' --index --quiet --source-name='gencat_accessions.csv' '/usr/share/nginx/atom-2.4/uploads/tmp/TMP4c01d2e4'
[info] [2018-03-06 08:05:27] Job 388054 "arFileImportJob": Found 89822
[info] [2018-03-06 08:05:27] Job 388054 "arFileImportJob": .Found 4191
[info] [2018-03-06 08:05:27] Job 388054 "arFileImportJob": .Found 4193
[info] [2018-03-06 08:05:27] Job 388054 "arFileImportJob": .Found 4385
[info] [2018-03-06 08:05:27] Job 388054 "arFileImportJob": .Found 4334
[info] [2018-03-06 08:05:27] Job 388054 "arFileImportJob": .Found 4387
[info] [2018-03-06 08:05:28] Job 388054 "arFileImportJob": .Found 4389
[info] [2018-03-06 08:05:28] Job 388054 "arFileImportJob": .Couldn't find accession # 00.008... creating.
[info] [2018-03-06 08:05:28] Job 388054 "arFileImportJob": .Found 4364
[info] [2018-03-06 08:05:28] Job 388054 "arFileImportJob": .Found 6215
[info] [2018-03-06 08:05:28] Job 388054 "arFileImportJob": .
[info] [2018-03-06 08:05:28] Job 388054 "arFileImportJob": Import complete.
[info] [2018-03-06 08:05:28] Job 388054 "arFileImportJob": Job finished.
--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/4338f179-5ddf-4010-9052-8dfef920f839%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks, Dan! I'll let you know if I discover any unexpected behaviour. In the meantime, hopefully this post will come in useful for anybody else interested in this functionality.Cheers,Damian
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/4338f179-5ddf-4010-9052-8dfef920f839%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-users+unsubscribe@googlegroups.com.
To post to this group, send email to ica-atom-users@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/5ec33500-5f64-476b-b7d3-e3cae389e394%40googlegroups.com.
Thanks, Dan, I appreciate the followup!
Cheers,
Damian
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/5ec33500-5f64-476b-b7d3-e3cae389e394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AtoM Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/ica-atom-users/w3EYlb9VkLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
ica-atom-user...@googlegroups.com.
To post to this group, send email to
ica-ato...@googlegroups.com.
Visit this group at https://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/CAC1FhZJHPopoEZdPo31fdYOj8Qa1tBxMVnhqyXJEXTX1OArXrw%40mail.gmail.com.