<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>I’m trying to create a 2nd repository with the same contact/agent info as the first. </div><div><br></div><div>First repo created by posting this json to <a href="http://localhost:8089/repositories/with_agent">http://localhost:8089/repositories/with_agent</a> :</div><div><br></div><div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);">{</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "repository" : {</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "country" : "US",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "repo_code" : "uva-sc",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "name" : "University of Virginia, Special Collections Dept.",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "contact_persons" : "",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "description" : "University of Virginia, Special Collections Dept. Virginia Heritage Archivesspace repo",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "parent_institution_name" : "University of Virginia, Special Collections Dept.",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "url" : "<a href="http://www.lib.virginia.edu/small">http://www.lib.virginia.edu/small</a>",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "image_url" : "<a href="http://ead.lib.virginia.edu/vivaead/logos/uva-sc.jpg">http://ead.lib.virginia.edu/vivaead/logos/uva-sc.jpg</a>",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "org_code" : "ViU"</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> },</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "agent_representation" : {</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "agent_contacts" : [</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> {</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "country" : "United States",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "telephone" : "Phone: (434) 243-1776",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "address_3" : "University of Virginia",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "region" : "Virginia",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "name" : "University of Virginia, Special Collections Dept.",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "post_code" : "22904-4110",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "note" : "(generated from contact xml files and POSTed to AS via curl.)",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "address_2" : "P.O. Box 400110",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "address_1" : "Albert and Shirley Small Special Collections Library",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "email" : "",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "email_signature" : "",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "city" : "Charlottesville",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "fax" : "Fax: (434) 924-4968",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "telephone_ext" : ""</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> }</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> ],</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "names" : [</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> {</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "source" : "local",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "primary_name" : "University of Virginia, Special Collections Dept.",</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> "sort_name" : "uva-sc"</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> }</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> ]</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172);"> }</div><div style="margin: 0px; font-family: Menlo; background-color: rgb(212, 192, 172); position: static; z-index: auto;">}</div></div><div><br></div><div><br></div><div><br></div><div>If I try changing the repo_code and submitting again to /repositories/with_agent, I get: </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{"error":{"names":["Agent must be unique"]}}</div><div><br></div><div><br></div><div>However, If I try using the existing agent reference URI instead, posting to either /repostories or /repositories/with_agent </div><div>I get a 2nd repo created, with a different agent URI from the one I posted being created, and no contact information. </div><div><br></div><div><br></div><div>If I change the primary and sort names as well, I can create a new repo, with a new agent, but if I then try to merge the</div><div>agents, I get a “something went wrong” message and the merge fails. </div><div><br></div><div><br></div><div>Is there a better way to do this, or is what I’m trying to do impossible in this model ? </div><div><br></div><div>I was thinking we could use different repositories to manage different workflows, with access rights set for </div><div>different work groups, and then move them all to another repo when processing and QA complete and ready to publish. </div><div><br></div><div>We may be able to live with differently named agents as long as they all have the same contact info, but I would </div><div>prefer not to have to edit and maintain the same info in multiple places. </div><div><br></div><div><br></div><div>— Steve Majewski / UVA Alderman Library </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></body></html>