[Archivesspace_Users_Group] Accession CSV Subject Import
brian
brianjhoffman at gmail.com
Mon Apr 6 21:11:37 EDT 2015
Hi Maura,
Here's the base converter file for accession csv.
https://github.com/archivesspace/archivesspace/blob/master/backend/app/converters/accession_converter.rb
Brian
Sent from my T-Mobile 4G LTE Device
<div>-------- Original message --------</div><div>From: Maura Carbone <mauraa at brandeis.edu> </div><div>Date:04/06/2015 3:35 PM (GMT-05:00) </div><div>To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org> </div><div>Cc: </div><div>Subject: Re: [Archivesspace_Users_Group] Accession CSV Subject Import </div><div>
</div>Hi Chris,
Any progress on that example? I actually tried to work on it myself, but I'm not entirely sure which files need to be altered (aside from accession_converter). Ideally, I want to be able to import multiple subjects and multiple agents -- I was hoping to copy the date setup (where there are multiple dates date1 date2 etc.) but I haven't found the file where the terms (such as date_label_1) are mapped to the date object (and so on for subject and agents etc.)
Thanks!
Maura
On Tue, Mar 31, 2015 at 4:03 PM, Maura Carbone <mauraa at brandeis.edu> wrote:
What I was doing was:
subject_source,subject_term_type,subject_term,subject_source,subject_term_type,subject_term, Unspecified ingested source,Topical,Pepperoni,Unspecified ingested source,Topical,Cheese. Then only Cheese gets created and imported.
Yeah, and I can take a look at how the importer works now as well, I just wasn't sure if it was a known issue, or if there was a specific reason for it.
Thanks!
Maura
On Tue, Mar 31, 2015 at 3:29 PM, Chris Fitzpatrick <Chris.Fitzpatrick at lyrasis.org> wrote:
Hi Maura,
So, you're just adding more subject columns to the CSV? Yes, what you describe about overwriting is exactly what's happening...the CSV importer only allows for one subject per row.
I have a plugin example I started working on last week to show how to tweak the CSV importer...I'll try and finish that up tomorrow and send it out for people to have a look...
b,chris.
Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat | Phone: 918.236.6048
http://archivesspace.org/
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Maura Carbone <mauraa at brandeis.edu>
Sent: Tuesday, March 31, 2015 7:06 PM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] Accession CSV Subject Import
Hi all,
I've been working on importing accessions with CSV files, but I've noticed that on import only one subject ever gets brought in (the last one). Is this a bug, or just a current limitation? I'm not getting an error, it just appears that the subject field keeps being over-written until the last subject, then imported.
Thanks,
Maura
--
Maura Carbone
Digital Initiatives Librarian
Brandeis University
Library and Technology Services
(781) 736-4659
415 South Street, (MS 017/P.O. Box 549110)
Waltham, MA 02454-9110
email: mauraa at brandeis.edu
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
--
Maura Carbone
Digital Initiatives Librarian
Brandeis University
Library and Technology Services
(781) 736-4659
415 South Street, (MS 017/P.O. Box 549110)
Waltham, MA 02454-9110
email: mauraa at brandeis.edu
--
Maura Carbone
Digital Initiatives Librarian
Brandeis University
Library and Technology Services
(781) 736-4659
415 South Street, (MS 017/P.O. Box 549110)
Waltham, MA 02454-9110
email: mauraa at brandeis.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150406/544b57df/attachment.html>
More information about the Archivesspace_Users_Group
mailing list