Re: [Archivesspace_Users_Group] voting for ArchivesSpace Governance Board positions starts on June 8

2023-06-08 Thread Alan Manifold
Hi Christine (or anyone),
How do we know what size our institutions falls into? I'm sure we've seen this, 
but we don't know offhand how to verify it.

Regards,
Alan Manifold





Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

 [slv]

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of 
Christine Di Bella
Sent: Thursday, June 8, 2023 2:35 AM
To: Archivesspace Member Reps 
; Archivesspace Users Group 

Cc: archivesspace_bot_memb...@lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] voting for ArchivesSpace Governance Board 
positions starts on June 8

Hello ArchivesSpace members,

Voting for the elections for the representatives to the ArchivesSpace 
Governance Board for the Very Small, Medium, and Large membership levels opens 
on June 8. Candidate statements for the people running for these positions are 
available at 
https://archivesspace.atlassian.net/wiki/spaces/ANC/pages/3361079318/Governance+Board+2023+Elections+-+Candidate+Statements.

Each member organization gets one vote in the election for the representative 
at their membership level. Only the Very Small, Medium, and Large level 
positions are up for election this year. The Voting Member we have on record 
for each eligible organization will receive an email with the ballot this week. 
If your organization is eligible and your Voting Member does not receive the 
ballot, or if your Voting Member has changed, please contact me at 
christine.dibe...@lyrasis.org<mailto:christine.dibe...@lyrasis.org>. Voting 
will close on June 22 at 9 p.m. Eastern Daylight Time.

Please note: if your organization is in the Very Large or Small levels your 
representative position is not up for election and you will not be voting this 
year.

A big thank you to all those who have volunteered to serve, and thanks in 
advance to everyone who votes. To learn more about ArchivesSpace governance, 
please visit https://archivesspace.org/governance-board-and-councils.

Christine

Christine Di Bella
ArchivesSpace Program Manager
christine.dibe...@lyrasis.org<mailto:christine.dibe...@lyrasis.org>

[cid:image001.jpg@01D99ABB.B8240330]

This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Web hooks or triggers on record update

2023-05-10 Thread Alan Manifold
Thanks, Brian and also thanks to Kevin Clair for this tip. It's very helpful 
and I'm currently exploring what kind of results we get from it.

Regards,
Alan




Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

 [slv]

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Brian 
Hoffman
Sent: Wednesday, May 10, 2023 5:02 PM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Web hooks or triggers on record update

Hi Alan,

There is an endpoint that provides a stream of updated records:

http://archivesspace.github.io/archivesspace/api/#get-a-stream-of-updated-records

It is there to enable the indexer to do its work, but perhaps it would work for 
your use case.

There is a window during which records can show up in the feed (60 seconds by 
default) and records in the feed will have a 'sequence' attribute. If you make 
a subsequent request with a 'last_sequence' parameter that is equal to or 
greater than the highest sequence in the feed, the api will block (not respond) 
until a new update appears or the request times out.

The records in the feed don't have any information about what date was updated.

Brian

From: 
archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of Alan Manifold 
mailto:amanif...@slv.vic.gov.au>>
Date: Wednesday, May 10, 2023 at 1:52 AM
To: 
archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@lyralists.lyrasis.org>
 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Web hooks or triggers on record update
Hi ArchivesSpace community,
We're thinking of a few projects that could benefit from something like a 
webhook or a trigger when specific records are updated. For example, when an 
archival object record is edited, it could trigger a custom script that could 
update metadata in our digital asset management system. Or when a record is 
unpublished, it could trigger a custom script that would add an event record.

I haven't found any indication that such functionality exists, but I'm not an 
expert, so I'm asking. If it doesn't exist, is this something you think your 
institution might be able to use as well? If you are a developer, do you think 
it would be difficult or easy to add this to the product, either as an 
enhancement or as a plugin just for our site?

Any thoughts would be welcome!

Regards,
Alan Manifold



Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au<mailto:amanif...@slv.vic.gov.au>
slv.vic.gov.au<http://slv.vic.gov.au>

 [Image removed by sender. slv]
[Image removed by sender.]<https://www.slv.vic.gov.au/email_campaign>



This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Web hooks or triggers on record update

2023-05-09 Thread Alan Manifold
Hi ArchivesSpace community,
We're thinking of a few projects that could benefit from something like a 
webhook or a trigger when specific records are updated. For example, when an 
archival object record is edited, it could trigger a custom script that could 
update metadata in our digital asset management system. Or when a record is 
unpublished, it could trigger a custom script that would add an event record.

I haven't found any indication that such functionality exists, but I'm not an 
expert, so I'm asking. If it doesn't exist, is this something you think your 
institution might be able to use as well? If you are a developer, do you think 
it would be difficult or easy to add this to the product, either as an 
enhancement or as a plugin just for our site?

Any thoughts would be welcome!

Regards,
Alan Manifold



Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

 [slv]

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>



This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Find by ID API call

2022-12-13 Thread Alan Manifold
Thanks, Corey,
This one finally worked for me, based on using the --data-urlencode option and 
seeing what it did, along with the URL that worked for you (which included the 
host but not the http:// part).


http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ark[]=ark%3A%2F%2F119460<http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ark%5b%5d=ark%3A%2F%2F119460>

Embarrassingly, I was using POST instead of GET, which didn't help my testing 
of the other aspects of the find_by_id API.

I have to say that the answer here was not at all obvious. There was no 
indication in the doco that you would have to encode the ARK, although all ARKs 
will have a colon and slashes. Most of our component_id's also have slashes and 
that wasn't indicated for them, either. Perhaps it's obvious to everyone else, 
but I have no idea why we include the "[]" after "ark". I guess you can use 
multiple values or something, but there's no indication of how that is done. 
It's great to have the full doco for all the APIs, but most of it is pretty 
cryptic. A few examples of actually use of them would really go a long way. I 
guess the fact that not so many sites are using ARKs is part of the problem 
here.

In any case, thank you very much for your help. I'm on my way now and that's 
down to you.

Regards,
Alan





Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

 [slv]

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Corey 
Schmidt
Sent: Wednesday, 14 December 2022 8:27 AM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Find by ID API call

Hey Alan,

Big caveat first: we don't use ARKs where I work, so I'm flying a little blind 
here. I enabled ARKs on our testing space just to see if I could replicate your 
request. Here's what I tried and it returned the correct archival object:

curl -H "X-ArchivesSpace-Session: $SESSION" 
"https://our_api_url/repositories/2/find_by_id/archival_objects?ark[]=www.testarkurl.com/ark:/YLTAD111/51/37;resolve[]=archival_objects<https://our_api_url/repositories/2/find_by_id/archival_objects?ark%5b%5d=www.testarkurl.com/ark:/YLTAD111/51/37;resolve%5b%5d=archival_objects>"

I added an external ARK URL to the archival object and put 
www.testarkurl.com/ark:/YLTAD111/51/37<http://www.testarkurl.com/ark:/YLTAD111/51/37>
 in that field. Are you using something like this or trying to access internal 
ARKs? If it's internal, I don't have a way to test that, I'm afraid. Though it 
seems like the following requests are constructed properly:

http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id[]=YLTAD111/51/37<http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id%5b%5d=YLTAD111/51/37>
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ref_id[]=15a419a9464353be174f77bdc8f38874<http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ref_id%5b%5d=15a419a9464353be174f77bdc8f38874>
   (our ref_ids look something like this usually: "ref36_286", that looks like 
the container_id found in an EAD export)

If you're still getting a 404 error, I might also try using the "--url-encode" 
parameter to see if that helps. Dave Mayo at Harvard pointed me in this 
direction which works great for the find_by_id endpoint for resources. Using 
that would look something like:

curl -H "X-ArchivesSpace-Session: $SESSION" -G 
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects 
--data-urlencode 'component_id[]=YLTAD111/51/37'

If you do find a solution, would you mind sharing it with the listserv or me? I 
wrote the API cURL and Python examples for that endpoint and I couldn't find 
anyone using ARKs to build an example from. Adding that would be the last piece 
of the puzzle for that documentation.

Hope this helps,

Corey
Corey Schmidt
Special Collections Libraries | Project Management Librarian/Archivist
corey.schm...@uga.edu<mailto:corey.schm...@uga.edu>
From: 
archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 On Behalf Of Alan Manifold
Sent: Monday, December 12, 2022 10:50 PM
To: ArchivesSpace Users Group 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Find by ID API call

[EXTERNAL SENDER

[Archivesspace_Users_Group] Find by ID API call

2022-12-12 Thread Alan Manifold
Hi ArchivesSpace folks,
I've been trying to get the find_by_id API call to work and haven't had any 
luck. What I really want is to be able to find archival objects by ARK, but I 
tried the other types of IDs to see if they would work and tell me something 
useful. But I can't get any of them to work. We're on version 3.2.0. I have a 
program that establishes a connection and gets a session ID, then sends off the 
API call. When the same program sends this search API, it works:

http://ourhost.com:8089/search?q=component_id:"YLTAD111/51/37"; OR 
component_id:"YLTAD111/51/38" OR component_id:"YLTAD111/51/39"&page=1

Here's what I have tried:

http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ark=https://ourhost.com/ark://119460
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ark=ark://119460
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ark=119460
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ark[]=ark://119460
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ark[]=119460
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id[]=YLTAD111/51/37
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id[]=YLTAD111%2F51%2F37
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id[]='YLTAD111%2F51%2F37'
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id[]='YLTAD111'
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id[]=YLTAD111
http://ourhost.com:8089/repositories/3/find_by_id/archival_objects?component_id[]=YLTAD111
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?component_id[]=YLTAD111;resolve[]=archival_objects
http://ourhost.com:8089/repositories/3/find_by_id/archival_objects?component_id[]=MS%2015856;resolve[]=archival_objects
http://ourhost.com:8089/repositories/3/find_by_id/archival_objects?component_id[]=MS
 15856;resolve[]=archival_objects
http://ourhost.com:8089/repositories/3/find_by_id/archival_objects?component_id[]=MS_15856;resolve[]=archival_objects
http://ourhost.com:8089/repositories/3/find_by_id/archival_objects?component_id[]=MS10840-1.1.1;resolve[]=archival_objects
http://ourhost.com:8089/repositories/3/find_by_id/archival_objects?component_id[]=MS10840-1.1.1;resolve[]=archival_objects
http://ourhost.com:8089/repositories/3/find_by_id/archival_objects?component_id[]=MS10840-1.1.1
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ref_id[]=15a419a9464353be174f77bdc8f38874
http://ourhost.com:8089/repositories/5/find_by_id/archival_objects?ref_id=15a419a9464353be174f77bdc8f38874

Every single call returned a 404 error. Can anyone tell me what I'm doing 
wrong? I'll feel stupid if it's obvious, but I'll still be thankful. Thanks so 
much!

Regards,
Alan



Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

 [slv]

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>



This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Implementing a standalone Solr instance

2021-12-05 Thread Alan Manifold
Related to this, are there instructions out there for implementing 
ArchivesSpace with external SOLR? I'm sure they'll be coming, but I didn't find 
any the last time I looked. We're also thinking about moving to this prior to 
it being required.

Regards,
Alan





Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

 [slv]

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>




From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Jared 
Hutchens 
Sent: Saturday, 4 December 2021 4:33 AM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Implementing a standalone Solr instance

Hi Kyle,

Here at Anderson University we've been running our external Solr instance on 
the same server as ArchivesSpace for over a month now with no issues. That 
being said, the server receives minimal traffic so I can't attest to any volume 
related performance impacts but appears to be similar to running the embedded 
Solr (or in our case, potentially running even better than before).

If any of the larger users have looked into this I'd be interested in seeing 
what you've found.

[https://lh4.googleusercontent.com/2cqdpPanpPHRmQo0drMK5LKoNeS631xRPI1vOTtHcbn8d9ESe8UB7kSF2L-gp9vSpOrGADAfgyrcbVyGk_9S1X8uiCr3IEpvio7nu-2N-OtSYGMWWsZd-h1S5d-Sv3-j3KXXFWWb]


Jared Hutchens  | Library Technology Specialist  | Nicholson Library

Anderson University  |  1100 E. 5th St., Anderson, IN 46012

(765) 641-4270  | jmhutch...@anderson.edu<mailto:jmhutch...@anderson.edu>  | 
anderson.edu<https://au01.z.antigena.com/l/py4nquok8W02CRMcvDDFlIReG-Dlsz8xhGuksoHGXAEkTfo1T4HN-sHOhQsicBQdbcKm-QRdN1wqBLhoPeMeImS11mkL5nFOCDFzDKxeoaZU0g6bzMnEWU6orFBCi-r0f2KQWUu3nn~OSaEjy1LnHYRrxgjK>


On Fri, Dec 3, 2021 at 11:50 AM Kyle Breneman 
mailto:kbrene...@ubalt.edu>> wrote:

Here at the University of Baltimore, we are working to stand up our own 
external Solr installation in preparation for ArchivesSpace’s move away from 
bundled Solr.  Campus IT is asking me whether or not we should install Solr on 
the same server we’re using to host ArchviesSpace.  I see that ArchivesSpace 
officially has no 
opinion<https://au01.z.antigena.com/l/Zm4A3Kakq6bOy8h-3_4z82nr4-mPBn80PoAp4-lxeBYSBhHYJZQcIlee~7wQzNxmC~v_1OODg-p~M62KiwC2EpI70qszUzTVGwIERA8pr9SbS393fouGbeRUfb6a4MHi_VpvZkofd43WNwzBZazNuMsv3zBJQk>
 on this matter (See under “Will you have strict requirements for how to deploy 
Solr?”).



Does anyone on this list have a recommendation about whether an external 
instance of Solr should be installed on the same server as ArchivesSpace, or on 
its own separate server?  I don’t see that it makes much difference, but I am 
also not experienced in managing servers, or in administering Solr.



Kyle Breneman

Integrated Digital Services Librarian

The University of Baltimore

kbrene...@ubalt.edu<mailto:kbrene...@ubalt.edu>

I believe in freedom of thought and

freedom of speech. Do you?



___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org<mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Jetty out of date - critical vulnerability

2021-10-28 Thread Alan Manifold
Perhaps a notice could be sent to Technical Contacts.

Regards,
Alan




Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

 [slv]

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>




From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Andrew 
Morrison 
Sent: Thursday, 28 October 2021 8:11 PM
To: archivesspace_users_group@lyralists.lyrasis.org 

Subject: Re: [Archivesspace_Users_Group] Jetty out of date - critical 
vulnerability

I concur that more information, sent via less public channels, would be
useful.

Andrew.


On 10/28/21 08:35, Peter Heiner wrote:
> Christine Di Bella wrote on 2021-10-27 20:04:00:
>> Given the sensitivity, we maintain security issues in a non-public JIRA.
> This effectively prevents the community from getting involved and even to look
> for possible mitigations on their own. At the very least, could the links
> mentioned that describe the vulnerability be posted to the list, please?
>
> Thanks,
> p
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Errors trying to upgrade to 2.7.1 from 2.5.2

2020-03-01 Thread Alan Manifold
​Thanks for this idea, Blake. I confirmed that it was the release I downloaded, 
not the source.


Regards,

Alan


Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>
[follow   us]
[SLV 
facebook]<http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331>
 [SLV twitter] <http://twitter.com/Library_Vic>  [SLV youtube] 
<http://www.youtube.com/user/statelibraryvictoria>[SLV   instagram] 
<http://instagram.com/library_vic>[Gold Winner 2018 RACV Victorian Tourism 
Awards][MEA Awards 2018 National Winner]



From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Blake 
Carver 
Sent: Saturday, 29 February 2020 12:40 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Errors trying to upgrade to 2.7.1 from 
2.5.2

Is there any chance you downloaded the SOURCE rather than the RELEASE?
This is the release zip file:
https://github.com/archivesspace/archivesspace/releases/download/v2.7.1/archivesspace-v2.7.1.zip

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of James 
Bullen 
Sent: Friday, February 28, 2020 3:32 AM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Errors trying to upgrade to 2.7.1 from 
2.5.2


Hi Alan,

You shouldn’t need to be fiddling with gems if you’re just upgrading. The 
distribution should contain all of the gems.


Cheers,
James


On Feb 28, 2020, at 3:26 PM, Alan Manifold 
mailto:amanif...@slv.vic.gov.au>> wrote:

I was hoping someone might have responded about these problems overnight, but 
since they didn’t, I did some more investigation myself.

Having looked at these problems more, they seem to be distribution problems. 
The sassc gem appears not to have its extensions pre-built. We don’t really 
have a ruby development environment, and it looks like we would have to in 
order to build the extensions. Is that right? Is there a way to install it with 
pre-built extensions?

The ContextAction problem seems to be related to some incompatibility between 
the version of therubyrhino, therubyrhino_jar, and perhaps some javascript 
library somewhere. It seems to be complaining about not being able to find the 
ContextAction.class from org.mozilla.javascript. Is that something we’re 
supposed to already have or is the upgrade supposed to install it or is there 
something else going on.

We could really use some expert help on this, if anyone has any thoughts. 
Thanks!

Regards,
Alan



Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au<mailto:amanif...@slv.vic.gov.au>
slv.vic.gov.au<http://slv.vic.gov.au/>

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>
[follow  us]
[SLV 
facebook]<http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331>
 [SLV twitter] <http://twitter.com/Library_Vic>  [SLV youtube] 
<http://www.youtube.com/user/statelibraryvictoria>[SLV  instagram] 
<http://instagram.com/library_vic> [Gold Winner 2018 RACV Victorian Tourism 
Awards][MEA Awards 2018 National Winner]


From: 
archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 [mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
Alan Manifold
Sent: Thursday, 27 February 2020 2:43 PM
To: 
archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@lyralists.lyrasis.org>
Subject: [Archivesspace_Users_Group] Errors trying to upgrade to 2.7.1 from 
2.5.2

Hi ArchivesSpacers,
We’re trying to upgrade our installation from 2.5.2 to 2.7.1. We’ve run into a 
number of problems, some of which we’ve solved already by adjusting Gemfiles.

But we’ve got two problems that we haven’t been able to figure out so far. One 
is a “missing dependency” for “ContextAction” and the other is some kind of 
problem with the sassc-2.2.1 gem.

The first is a missing dependency:

ContextAction not found in packages org.mozilla.javascript; last error: cannot 
link Java class org.mozilla.javascript.ContextAction, probable missing 
dependency: org/mozilla/javascript/ContextAction : Unsupported major.minor 
version 52.0

const_missing at uri:classloader:/jruby/java/core_ext/module.rb:45

Re: [Archivesspace_Users_Group] Errors trying to upgrade to 2.7.1 from 2.5.2

2020-02-27 Thread Alan Manifold
I was hoping someone might have responded about these problems overnight, but 
since they didn’t, I did some more investigation myself.

Having looked at these problems more, they seem to be distribution problems. 
The sassc gem appears not to have its extensions pre-built. We don’t really 
have a ruby development environment, and it looks like we would have to in 
order to build the extensions. Is that right? Is there a way to install it with 
pre-built extensions?

The ContextAction problem seems to be related to some incompatibility between 
the version of therubyrhino, therubyrhino_jar, and perhaps some javascript 
library somewhere. It seems to be complaining about not being able to find the 
ContextAction.class from org.mozilla.javascript. Is that something we’re 
supposed to already have or is the upgrade supposed to install it or is there 
something else going on.

We could really use some expert help on this, if anyone has any thoughts. 
Thanks!

Regards,
Alan



Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>
[follow   us]
[SLV 
facebook]<http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331>
 [SLV twitter] <http://twitter.com/Library_Vic>  [SLV youtube] 
<http://www.youtube.com/user/statelibraryvictoria>[SLV   instagram] 
<http://instagram.com/library_vic>[Gold Winner 2018 RACV Victorian Tourism 
Awards][MEA Awards 2018 National Winner]


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
[mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org] On Behalf Of 
Alan Manifold
Sent: Thursday, 27 February 2020 2:43 PM
To: archivesspace_users_group@lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Errors trying to upgrade to 2.7.1 from 
2.5.2

Hi ArchivesSpacers,
We’re trying to upgrade our installation from 2.5.2 to 2.7.1. We’ve run into a 
number of problems, some of which we’ve solved already by adjusting Gemfiles.

But we’ve got two problems that we haven’t been able to figure out so far. One 
is a “missing dependency” for “ContextAction” and the other is some kind of 
problem with the sassc-2.2.1 gem.

The first is a missing dependency:

ContextAction not found in packages org.mozilla.javascript; last error: cannot 
link Java class org.mozilla.javascript.ContextAction, probable missing 
dependency: org/mozilla/javascript/ContextAction : Unsupported major.minor 
version 52.0

const_missing at uri:classloader:/jruby/java/core_ext/module.rb:45
   at 
/usr/local/archivesspace-v2.7.1/gems/gems/therubyrhino-2.1.2/lib/rhino/context.rb:99
at 
/usr/local/archivesspace-v2.7.1/gems/gems/therubyrhino-2.1.2/lib/rhino/context.rb:36
at 
/usr/local/archivesspace-v2.7.1/gems/gems/therubyrhino-2.1.2/lib/rhino/context.rb:3
  require at org/jruby/RubyKernel.java:956
at 
/usr/local/archivesspace-v2.7.1/gems/gems/therubyrhino-2.1.2/lib/rhino.rb:1
  require at org/jruby/RubyKernel.java:956
   (root) at 
/usr/local/archivesspace-v2.7.1/gems/gems/therubyrhino-2.1.2/lib/rhino.rb:61
 find at org/jruby/RubyEnumerable.java:643
   (root) at 
/usr/local/archivesspace-v2.7.1/gems/gems/execjs-2.7.0/lib/execjs/ruby_rhino_runtime.rb:1
   available? at 
/usr/local/archivesspace-v2.7.1/gems/gems/execjs-2.7.0/lib/execjs/ruby_rhino_runtime.rb:91
   at 
/usr/local/archivesspace-v2.7.1/gems/gems/execjs-2.7.0/lib/execjs/runtimes.rb:63
at 
/usr/local/archivesspace-v2.7.1/gems/gems/execjs-2.7.0/lib/execjs/runtimes.rb:57
  require at org/jruby/RubyKernel.java:956
at 
/usr/local/archivesspace-v2.7.1/gems/gems/execjs-2.7.0/lib/execjs.rb:5
  require at org/jruby/RubyKernel.java:956
at 
/usr/local/archivesspace-v2.7.1/gems/gems/execjs-2.7.0/lib/execjs.rb:4
  require at org/jruby/RubyKernel.java:956
at 
/usr/local/archivesspace-v2.7.1/gems/gems/coffee-script-2.4.1/lib/coffee_script.rb:1
  require at org/jruby/RubyKernel.java:956
  block in (root) at 
/usr/local/archivesspace-v2.7.1/gems/gems/coffee-script-2.4.1/lib/coffee_script.rb:1
 each at org/jruby/RubyArray.java:1735
  block in (root) at 
/usr/local/archivesspace-v2.7.1/gems/gems/coffee-script-2.4.1/lib/coffee-script.rb:1
 each at org/jruby/RubyArray.java:1735
   (root) at 
/usr/local/archivesspace-v2.7.1/gems/gems/coffee-script-2.4.1/lib/coffee-script.r

[Archivesspace_Users_Group] Errors trying to upgrade to 2.7.1 from 2.5.2

2020-02-26 Thread Alan Manifold
 at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
WARNING:  description and summary are identical
  Successfully built RubyGem
  Name: sassc
  Version: 2.2.1
File: sassc-2.2.1.gem

Any help on this problems would be appreciated. We can submit a ticket if that 
would be helpful, but we thought someone might be able to give some guidance on 
the list.

Regards,
Alan

Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>
[follow   us]
[SLV 
facebook]<http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331>
 [SLV twitter] <http://twitter.com/Library_Vic>  [SLV youtube] 
<http://www.youtube.com/user/statelibraryvictoria>[SLV   instagram] 
<http://instagram.com/library_vic>[Gold Winner 2018 RACV Victorian Tourism 
Awards][MEA Awards 2018 National Winner]


This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Switching ArchivesSpace to https when not running Apache

2020-02-23 Thread Alan Manifold
Hi ArchivesSpace list,
We’re planning to go live to the public with our AS PUI soon and wanted to 
switch it to https before we do that. We have looked at the excellent document 
on this at 
https://archivesspace.github.io/archivesspace/user/serving-archivesspace-user-facing-applications-over-https/,
 which is quite helpful.

However, we’re not currently running Apache (or Nginx) on our AS server, so 
this process doesn’t look as easy as I first thought.

Does anyone have any tips or documentation about how to start using Apache with 
ArchivesSpace? I’ve looked at the pages on “ArchivesSpace with Subdomains” and 
“ArchivesSpace over HTTPS”, which are also helpful, but they don’t address the 
bit of incorporating Apache into our setup in the first place.

We can figure it out by ourselves, but if anyone can provide doco or tips, that 
might make it a tad easier.

Regards,
Alan

Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>
[follow   us]
[SLV 
facebook]<http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331>
 [SLV twitter] <http://twitter.com/Library_Vic>  [SLV youtube] 
<http://www.youtube.com/user/statelibraryvictoria>[SLV   instagram] 
<http://instagram.com/library_vic>[Gold Winner 2018 RACV Victorian Tourism 
Awards][MEA Awards 2018 National Winner]


This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


[Archivesspace_Users_Group] Working with Ruby

2019-12-17 Thread Alan Manifold
Hi all,
I am new to Ruby, and have been adding some functionality to our PUI through a 
local plugin. I’m finding the testing a bit slow.

Whenever I make a change to the code or configuration files, I have to restart 
the application before I see them in effect. This generally takes 4-5 minutes 
on our server. That’s not terrible, but I wondered if there’s a way to speed up 
the process. Is there any way to avoid restarting the application each time I 
make a change, such as just recompiling a single file or something like that? 
It would save me a lot of time in my testing.

Thanks for any tips you can share.

Regards,
Alan

Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>
[follow   us]
[SLV 
facebook]<http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331>
 [SLV twitter] <http://twitter.com/Library_Vic>  [SLV youtube] 
<http://www.youtube.com/user/statelibraryvictoria>[SLV   instagram] 
<http://instagram.com/library_vic>[Gold Winner 2018 RACV Victorian Tourism 
Awards][MEA Awards 2018 National Winner]


This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Using the API from perl - "Must be a JSONModel(:resource) uri (you provided a Hash)"

2019-11-25 Thread Alan Manifold
By the way, thank you very much! That's the first thing I meant to say!

Regards,
Alan


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Alan 
Manifold 
Sent: Tuesday, 26 November 2019 3:29 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Using the API from perl - "Must be a 
JSONModel(:resource) uri (you provided a Hash)"

Hi Brian,
I would have said that was the first thing I tried (since it's so obvious), but 
obviously I didn't, because it worked immediately. Sheesh! What a lot of wasted 
time trying to figure this out when it was right in front of me!

Regards,
Alan


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Brian 
Harrington 
Sent: Tuesday, 26 November 2019 2:54 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Using the API from perl - "Must be a 
JSONModel(:resource) uri (you provided a Hash)"

Hi Alan,

You ought to be able to add the resource reference to your archival object hash 
as another hash, like:

resource => {ref => "/repositories/3/resources/391”}

If that’s not working, I’d be happy to take a look at your code if you want to 
send it to me directly.

Brian


> Alan Manifold | Library Systems & Digital Preservation Manager |  Collection 
> Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au





Alan Manifold | Library Systems & Digital Preservation Manager |  Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au





On Nov 25, 2019, at 10:12 PM, Alan Manifold  wrote:
>
> Hi all,
> I'm trying to create a perl program to add archival_objects and 
> digital_objects into our ArchivesSpace system. I can query the database fine, 
> and I seem to be able to get to the right API, but I can't seem to find any 
> combination that allows me to embed a "resource" reference into my JSON for 
> the post call.
>
> I have gotten a variety of errors, but they are all telling me that the way I 
> have specified the "resource/ref" is invalid, for example:
>
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Hash) 
> (malformed or invalid uri? check if referenced object exists.)'
> ​
> I am assuming the real problem is that I "provided a Hash", not the 
> "malformed or invalid uri", but in case it's relevant, the uri looks like 
> this: "/repositories/3/resources/391".
>
> I am defining the archival_object as a perl hash, with the various JSON 
> elements as hash entries, e.g.:
>
> my %archival_object =
> (
> jsonmodel_type  =>  "archival_object",
> subjects=>  [],
> linked_events   =>  [],
> extents =>  [],
> lang_materials  =>  [],
> ...
> );
>
> I was able to specify the "dates", "notes", and "external_ids" sections as 
> arrays with a hash as their only value, and that seems to work:
>
> dates   =>
> [
> {
> expression  =>  $rosDate,
> date_type   =>  "inclusive",
> label   =>  "creation",
> jsonmodel_type  =>  "date"
> }
> ],
>
> But I haven't been able to find any way to specify the "resource" section in 
> such a way that the API recognises my "ref" value. I have tried lots of ways, 
> but always get one of these errors:
> ​
> 'resource' => 'Property is required but was missing'
> 'resource' => 'Must be a object (you provided a String)'​
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Hash) 
> (malformed or invalid uri? check if referenced object exists.)'​​​
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a String) 
> (malformed or invalid uri? check if referenced object exists.)'​
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Array) 
> (malformed or invalid uri? check if referenced object exists.)'​​
> ​
> I can't think of any other data types, pointers, or combinations that I can 
> try, and I don't know what the API is looking for. I even tried doing a 
> s

Re: [Archivesspace_Users_Group] Using the API from perl - "Must be a JSONModel(:resource) uri (you provided a Hash)"

2019-11-25 Thread Alan Manifold
Hi Brian,
I would have said that was the first thing I tried (since it's so obvious), but 
obviously I didn't, because it worked immediately. Sheesh! What a lot of wasted 
time trying to figure this out when it was right in front of me!

Regards,
Alan


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Brian 
Harrington 
Sent: Tuesday, 26 November 2019 2:54 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Using the API from perl - "Must be a 
JSONModel(:resource) uri (you provided a Hash)"

Hi Alan,

You ought to be able to add the resource reference to your archival object hash 
as another hash, like:

resource => {ref => "/repositories/3/resources/391”}

If that’s not working, I’d be happy to take a look at your code if you want to 
send it to me directly.

Brian


> Alan Manifold | Library Systems & Digital Preservation Manager |  Collection 
> Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au





On Nov 25, 2019, at 10:12 PM, Alan Manifold  wrote:
>
> Hi all,
> I'm trying to create a perl program to add archival_objects and 
> digital_objects into our ArchivesSpace system. I can query the database fine, 
> and I seem to be able to get to the right API, but I can't seem to find any 
> combination that allows me to embed a "resource" reference into my JSON for 
> the post call.
>
> I have gotten a variety of errors, but they are all telling me that the way I 
> have specified the "resource/ref" is invalid, for example:
>
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Hash) 
> (malformed or invalid uri? check if referenced object exists.)'
> ​
> I am assuming the real problem is that I "provided a Hash", not the 
> "malformed or invalid uri", but in case it's relevant, the uri looks like 
> this: "/repositories/3/resources/391".
>
> I am defining the archival_object as a perl hash, with the various JSON 
> elements as hash entries, e.g.:
>
> my %archival_object =
> (
> jsonmodel_type  =>  "archival_object",
> subjects=>  [],
> linked_events   =>  [],
> extents =>  [],
> lang_materials  =>  [],
> ...
> );
>
> I was able to specify the "dates", "notes", and "external_ids" sections as 
> arrays with a hash as their only value, and that seems to work:
>
> dates   =>
> [
> {
> expression  =>  $rosDate,
> date_type   =>  "inclusive",
> label   =>  "creation",
> jsonmodel_type  =>  "date"
> }
> ],
>
> But I haven't been able to find any way to specify the "resource" section in 
> such a way that the API recognises my "ref" value. I have tried lots of ways, 
> but always get one of these errors:
> ​
> 'resource' => 'Property is required but was missing'
> 'resource' => 'Must be a object (you provided a String)'​
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Hash) 
> (malformed or invalid uri? check if referenced object exists.)'​​​
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a String) 
> (malformed or invalid uri? check if referenced object exists.)'​
> 'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Array) 
> (malformed or invalid uri? check if referenced object exists.)'​​
> ​
> I can't think of any other data types, pointers, or combinations that I can 
> try, and I don't know what the API is looking for. I even tried doing a 
> search to get a Resource record and plugging the result directly into my 
> archival_object structure, but that didn't change anything.
>
> How can I define my archival_object structure so that it will validate? 
> Unfortunately, using python or ruby in place of perl probably isn't an 
> option. I'm happy to provide more information, including more of my code, but 
> didn't want to spam everybody with it.
>
> Regards,
> Alan Manifold
> State Library Victoria
>
> Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
> Development & Description
> State Library Victoria | 328 Sw

[Archivesspace_Users_Group] Using the API from perl - "Must be a JSONModel(:resource) uri (you provided a Hash)"

2019-11-25 Thread Alan Manifold
Hi all,

I'm trying to create a perl program to add archival_objects and digital_objects 
into our ArchivesSpace system. I can query the database fine, and I seem to be 
able to get to the right API, but I can't seem to find any combination that 
allows me to embed a "resource" reference into my JSON for the post call.


I have gotten a variety of errors, but they are all telling me that the way I 
have specified the "resource/ref" is invalid, for example:


'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Hash) 
(malformed or invalid uri? check if referenced object exists.)'
?
I am assuming the real problem is that I "provided a Hash", not the "malformed 
or invalid uri", but in case it's relevant, the uri looks like this: 
"/repositories/3/resources/391".

I am defining the archival_object as a perl hash, with the various JSON 
elements as hash entries, e.g.:


my %archival_object =
(
jsonmodel_type  =>  "archival_object",
subjects=>  [],
linked_events   =>  [],
extents =>  [],
lang_materials  =>  [],
...
);

I was able to specify the "dates", "notes", and "external_ids" sections as 
arrays with a hash as their only value, and that seems to work:

dates   =>
[
{
expression  =>  $rosDate,
date_type   =>  "inclusive",
label   =>  "creation",
jsonmodel_type  =>  "date"
}
],

But I haven't been able to find any way to specify the "resource" section in 
such a way that the API recognises my "ref" value. I have tried lots of ways, 
but always get one of these errors:
?
'resource' => 'Property is required but was missing'
'resource' => 'Must be a object (you provided a String)'?
'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Hash) 
(malformed or invalid uri? check if referenced object exists.)'???
'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a String) 
(malformed or invalid uri? check if referenced object exists.)'?
'resource/ref' => 'Must be a JSONModel(:resource) uri (you provided a Array) 
(malformed or invalid uri? check if referenced object exists.)'??
?
I can't think of any other data types, pointers, or combinations that I can 
try, and I don't know what the API is looking for. I even tried doing a search 
to get a Resource record and plugging the result directly into my 
archival_object structure, but that didn't change anything.

How can I define my archival_object structure so that it will validate? 
Unfortunately, using python or ruby in place of perl probably isn't an option. 
I'm happy to provide more information, including more of my code, but didn't 
want to spam everybody with it.

Regards,
Alan Manifold
State Library Victoria

Alan Manifold | Library Systems & Digital Preservation Manager | Collection 
Development & Description
State Library Victoria | 328 Swanston Street | Melbourne VIC 3000
T +61 3 8664 7122 | amanif...@slv.vic.gov.au
slv.vic.gov.au<http://slv.vic.gov.au>

[https://www.slv.vic.gov.au/sites/default/files/email_signature/signature.jpg?9]<https://www.slv.vic.gov.au/email_campaign>
[follow   us]
[SLV 
facebook]<http://www.facebook.com/pages/Melbourne-Australia/State-Library-of-Victoria/32256104331>
 [SLV twitter] <http://twitter.com/Library_Vic>  [SLV youtube] 
<http://www.youtube.com/user/statelibraryvictoria>[SLV   instagram] 
<http://instagram.com/library_vic>[Gold Winner 2018 RACV Victorian Tourism 
Awards][MEA Awards 2018 National Winner]


This message and any attachment is intended only for the use of the Addressee 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please delete all copies of the message and its attachments and 
notify the sender immediately. Thank you.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group