Re: [Archivesspace_Users_Group] Entering a Second Location through the API

2021-04-02 Thread Valerie Addonizio
Kate,

I can offer general advice. I recommend adding more than one location to a top 
container in the staff interface first, as a sample, and then getting out that 
record through the API to use as a template for understanding how this should 
look. You'll see that multiple locations are listed in the container_locations 
array, separated by a comma. Treat that array like a list, append the new 
location, and then post the top_container record back with the longer array. 
Below is a sample of a single top container with two Current locations. The 
only data required when you append to the array is:

{
"status": "current", <-- Or temporary
"start_date": "2021-04-02",<-- Your choice
"ref": "/locations/3" <-- where this is your new location
}

Sample GET showing multiple locations:

{
"lock_version": 9,
"barcode": "10100151637763",
"indicator": "1",
"created_by": "admin",
"last_modified_by": "admin",
"create_time": "2021-03-31T20:59:17Z",
"system_mtime": "2021-04-02T15:38:24Z",
"user_mtime": "2021-04-02T15:38:24Z",
"type": "box",
"jsonmodel_type": "top_container",
"active_restrictions": [],
"container_locations": [
{
"jsonmodel_type": "container_location",
"status": "current",
"start_date": "2021-04-02",
"system_mtime": "2021-04-02 15:38:24 UTC",
"user_mtime": "2021-04-02 15:38:24 UTC",
"ref": "/locations/1"
},
{
"jsonmodel_type": "container_location",
"status": "current",
"start_date": "2021-04-02",
"system_mtime": "2021-04-02 15:38:24 UTC",
"user_mtime": "2021-04-02 15:38:24 UTC",
"ref": "/locations/2"
}
],
"series": [],
"collection": [
{
"ref": "/repositories/101/accessions/1",
"identifier": "mss--acc--1",
"display_string": "Accession 01"
}
],
"uri": "/repositories/101/top_containers/624",
"repository": {
"ref": "/repositories/101"
},
"restricted": false,
"is_linked_to_published_record": false,
"display_string": "Box 1: [Barcode: 10100151637763]",
"long_display_string": "Box 1 [Barcode: 10100151637763], yuiu [fdfd: a], 
mss--acc--1, Accession 01"
}



From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Herbert, 
Kate F
Sent: Thursday, April 1, 2021 3:35 PM
To: archivesspace_users_group@lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Entering a Second Location through the API

I am pretty new to the API and we are currently undergoing a move of our entire 
collection (just over 58,000 top containers) for a multiyear repair to our 
building. I am trying to find a way to put in the new locations but keep the 
old locations, as they will still be useful for reference points to our old 
finding aids.  I know how to update a top container record in the API but I am  
can not seem to make it work with more than one location. Any ideas on how this 
could be done would be helpful. We have a hosted instance and no direct access 
to the back end.

Thanks,

Kate Herbert
Digital Archivist
Maine State Archives
kate.f.herb...@maine.gov

(she/her/hers)



___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - Preservica added content?

2021-04-02 Thread Busch, Ed
Thanks! I ‘ve got that fixed now and working on the others.

I did note in the created pdfs by ArchivesSpace that the URL strings are not 
working – you cannot click them or copy/paste successfully. It has to do with 
the lines wrapping so the links are incomplete.

Ed Busch, MLIS
Interim Head of University Archives and Historical Collections
Electronic Records Archivist
Conrad Hall, 943 Conrad Road, Room 101
East Lansing, MI 48824
517-884-6438
busch...@msu.edu
he/him/his


From:  on behalf of 
"Majewski, Steven Dennis (sdm7g)" 
Reply-To: "archivesspace_users_group@lyralists.lyrasis.org" 

Date: Thursday, April 1, 2021 at 2:10 PM
To: "archivesspace_users_group@lyralists.lyrasis.org" 

Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
Preservica added content?

I think the issue is not the escaped character codes but the fact the the href 
URLs for some of those daoloc-s start with
'mailto:busch...@msu.edu>> wrote:

Thanks for the help Mark and Brian!
Sorry, we’re getting a little deeper than I understand but am I right in the 
root issue you are describing is the embedded character codes like , , 
, %3. If Preservica just put the real characters it would be fine?

For example, 
https://msu.access.preservica.com/archive/sdb%3AdeliverableUnit|723e8170-d799-4296-8591-2c3e8cf7ab2c/
If this is changed to 
https://msu.access.preservica.com/archive/sdb:AdeliverableUnit|723e8170-d799-4296-8591-2c3e8cf7ab2c/would
 ASpace PDF exporter be happy?

Or am I missing it still?

Ed Busch, MLIS
Interim Head of University Archives and Historical Collections
Electronic Records Archivist
Conrad Hall, 943 Conrad Road, Room 101
East Lansing, MI 48824
517-884-6438
busch...@msu.edu
he/him/his


From: 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of Brian Harrington 
mailto:brian.harring...@lyrasis.org>>
Reply-To: 
"archivesspace_users_group@lyralists.lyrasis.org"
 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Date: Thursday, April 1, 2021 at 12:37 PM
To: 
"archivesspace_users_group@lyralists.lyrasis.org"
 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
Preservica added content?

Hi Ed,

It looks like the problem is with s (or anything else) that have an 
@href attribute that has anything other than the bare URL in it.  For example, 
this one:

  https://us.preservica.com/explorer/explorer.html#prop:76e734ad9-75bc-4f06-a5a0-7aa458e39746Preservica
 Internal/a"
xlink:role="Digital Preservation Staff System" 
xlink:type="locator"/>

The as-ead-pdf.xsl copies the contents of the @href directly into the 
@external-destination of an fo:basic-link element, and then the FOP processor 
is choking on it.

And as a data point for everyone, this should have just started breaking in 
2.8.1.  The included FOP was upgraded to the current version in that release 
(blame me!) and that appears to have better validation of URIs.  It looks like 
older versions simply included in the PDF.

I hope this helps.

Brian


From: 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of "Busch, Ed" mailto:busch...@msu.edu>>
Reply-To: Archivesspace Users Group 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Date: Thursday, April 1, 2021 at 11:43 AM
To: Archivesspace Users Group 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>,
 Benn Joseph mailto:benn.jos...@northwestern.edu>>
Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
Preservica added content?

Sure. I just put a ticket in with my local IT for some help.

Ed Busch, MLIS
Interim Head of University Archives and Historical Collections
Electronic Records Archivist
Conrad Hall, 943 Conrad Road, Room 101
East Lansing, MI 48824
517-884-6438
busch...@msu.edu
he/him/his


From: 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of Benn Joseph 
mailto:benn.jos...@northwestern.edu>>
Reply-To: 
"archivesspace_users_group@lyralists.lyrasis.org"
 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Date: Thursday, April 1, 2021 at 11:35 AM
To: 
"archivesspace_users_group@lyralists.lyrasis.org"
 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Generate PDF Staff side failing - 
Preservica added content?

Hey Ed—can you share the EAD export for one that isn’t working?
--Benn

From: 
archivesspace_users_group-boun...@lyralists.lyrasis.org
 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 On Behalf Of Busch, Ed
Sent: