[Archivesspace_Users_Group] batch publishing resources using Staff User Interface?

2020-07-22 Thread Wendy Scheir
Hi,

Unable to find documentation about this: is it possible to create a results
list of resource records and trigger all of them to publish at once?

Many thanks,
Wendy
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Update a Resource via the API

2020-07-22 Thread Corey Schmidt
That did it. Thanks!

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Kennedy, 
Nancy 
Sent: Wednesday, July 22, 2020 12:25 PM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Update a Resource via the API

[EXTERNAL SENDER - PROCEED CAUTIOUSLY]

Hi Corey -
When you post your changes back, try this:

client.post('/repositories/5/resources/1814', json=resource)


Nancy Kennedy
Smithsonian Institution


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Corey 
Schmidt 
Sent: Wednesday, July 22, 2020 11:54 AM
To: archivesspace_users_group@lyralists.lyrasis.org 

Subject: [Archivesspace_Users_Group] Update a Resource via the API


External Email - Exercise Caution

Dear all,

Hello, this is Corey Schmidt, ArchivesSpace Project Manager at the University 
of Georgia. I hope you all are doing well and staying cool!

I'm trying to update records via the API using the Update a Resource endpoint 
(https://archivesspace.github.io/archivesspace/api/#update-a-resource).
 I found Duke made a script 
(https://github.com/duke-libraries/archivesspace-duke-scripts/blob/master/python/asnake_update_all_resources_and_aos.py)
 to do this very thing and I modeled my request on that example. I also found 
what I think is the code for the endpoint, found in 
backend/app/controllers/resource.rb file, line 114 
(https://github.com/archivesspace/archivesspace/blob/0c4cb2dd263bbeacdbce70567ccbb86634cde769/backend/app/controllers/resource.rb#L114).

However, no matter the combinations I try for the request, I'm getting a 
 error with the following message: "error":"Had some trouble 
parsing your request: unexpected token at 

The following is the code I'm running in python:


get_resource = client.get('/repositories/5/resources/1814')
print(get_resource.text)
resource = json.loads(get_resource.text)
resource["restrictions"] = True
print(json.dumps(resource))
update_resource = client.post('/repositories/5/resources/1814', 
json=json.dumps(resource))
# update_resource = client.post('/repositories/5/resources/1814', params={"id": 
1814, "resource": json.dumps(resource), "repo_id": 5})
# the last line produces this error:  {"error":"Had some 
trouble parsing your request: A JSON text must at least contain two octets!"}
print(update_resource, update_resource.text)

I've attached the json file to this email.

Any help would be greatly appreciated. Thanks!

Sincerely,

Corey Schmidt
ArchivesSpace Project Manager
University of Georgia Special Collections Libraries
Email: corey.schm...@uga.edu
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Agent records in ArchivesSpace and compound or hyphenated surnames

2020-07-22 Thread Lara Friedman-Shedlov
I don't know anything about the UK rules for this, so I'm curious,
especially as a person with a hyphenated last name.  I consider that the
primary part of my name is "Friedman-Shedlov," NOT "Shedlov," and if I were
creating an agent record for my name, my understanding is that the primary
part would indeed by "Friedman-Shedlov," going by the rules we use here in
the U.S.  However, it is definitely more ambiguous with compound names that
are not hyphenated.

/ Lara Friedman-Shedlov

On Wed, Jul 22, 2020 at 11:06 AM Natalie Adams  wrote:

> Dear Matthew and Daniel,
>
> Many thanks for replying so quickly.
>
> Matthew- could you share details of how Violet Bonham Carter's agent
> record is constructed in your staff interface?
>
> Daniel- the issue with the UK's NCA Rules is that the primary part of the
> name is the final element of a compound or hyphenated surname (Carter in
> Matthew's example). I wanted to check we'd be right to construct an agent
> record like this:-
>
> Primary part of name: Carter
> Rest of name: Helen Violet Bonham
>
> Not
> Primary part of name: Bonham Carter
> Rest of name: Helen Violet
>
> A sanity check with the listserv would be reassuring!
>
> Best wishes,
>
> Natalie
>
>
>
>
> Natalie Adams
> Systems Archivist
> Cambridge University Library
>
> --
> *From:* archivesspace_users_group-boun...@lyralists.lyrasis.org <
> archivesspace_users_group-boun...@lyralists.lyrasis.org> on behalf of
> Matthew Neely 
> *Sent:* 22 July 2020 16:24
> *To:* Archivesspace Users Group <
> archivesspace_users_group@lyralists.lyrasis.org>
> *Subject:* Re: [Archivesspace_Users_Group] Agent records in ArchivesSpace
> and compound or hyphenated surnames
>
>
> Hi Natalie,
>
>
>
> We’ve followed the UK’s NCA Rules for Names in our implementation (a
> practice we have used historically at the Bodleian). For example, Violet
> Bonham Carter is Carter | Lady | Helen Violet | Bonham | 1887-1969 | née
> Asquith | Baroness Asquith of Yarnbury | Liberal political figure
>  in the Primary
> Part of Name field in the Agent record.
>
>
>
> Best wishes,
>
> Matthew
>
> --
>
> Matthew Neely
>
> Senior Archivist
>
> Special Collections
>
> Bodleian Libraries
>
>
>
> Tel: 01865 287158
>
> Post: The Weston Library, Broad Street, Oxford, OX1 3BG
>
> Email: matthew.ne...@bodleian.ox.ac.uk
>
> Web: http://www.bodleian.ox.ac.uk/weston
>
>
>
> *From:* archivesspace_users_group-boun...@lyralists.lyrasis.org <
> archivesspace_users_group-boun...@lyralists.lyrasis.org> *On Behalf Of 
> *Natalie
> Adams
> *Sent:* 22 July 2020 15:20
> *To:* archivesspace_users_group@lyralists.lyrasis.org
> *Subject:* [Archivesspace_Users_Group] Agent records in ArchivesSpace and
> compound or hyphenated surnames
>
>
>
> Dear all,
>
>
>
> Are there any repositories on the list using ArchivesSpace for agent
> records who would be willing to share any guidance they have prepared for
> users/cataloguers about creating agent records? I'm specifically interested
> in conventions for entering compound and hyphenated surnames or last names.
>
>
>
> Any advice would be really helpful.
>
>
>
> Best wishes,
>
>
>
> Natalie
>
>
>
>
>
> Natalie Adams
>
> Systems Archivist
>
> Cambridge University Library
>
>
>
>
>
> Natalie Adams
>
> Systems Archivist
>
> Cambridge University Library
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>


-- 
Lara D. Friedman-Shedlov(she / they)
Description and Access Archivist | Kautz Family YMCA Archives |
www.lib.umn.edu/ymca
Digital Records Archivist | Archives & Special Collections |
www.lib.umn.edu/special
University of Minnesota Libraries | lib.umn.edu | 612.626.7972
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Agent records in ArchivesSpace and compound or hyphenated surnames

2020-07-22 Thread Natalie Adams
Dear Matthew and Daniel,

Many thanks for replying so quickly.

Matthew- could you share details of how Violet Bonham Carter's agent record is 
constructed in your staff interface?

Daniel- the issue with the UK's NCA Rules is that the primary part of the name 
is the final element of a compound or hyphenated surname (Carter in Matthew's 
example). I wanted to check we'd be right to construct an agent record like 
this:-

Primary part of name: Carter
Rest of name: Helen Violet Bonham

Not
Primary part of name: Bonham Carter
Rest of name: Helen Violet

A sanity check with the listserv would be reassuring!

Best wishes,

Natalie




Natalie Adams
Systems Archivist
Cambridge University Library


From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Matthew 
Neely 
Sent: 22 July 2020 16:24
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] Agent records in ArchivesSpace and 
compound or hyphenated surnames


Hi Natalie,



We’ve followed the UK’s NCA Rules for Names in our implementation (a practice 
we have used historically at the Bodleian). For example, Violet Bonham Carter 
is Carter | Lady | Helen Violet | Bonham | 1887-1969 | née Asquith | Baroness 
Asquith of Yarnbury | Liberal political 
figure in the Primary 
Part of Name field in the Agent record.



Best wishes,

Matthew

--

Matthew Neely

Senior Archivist

Special Collections

Bodleian Libraries



Tel: 01865 287158

Post: The Weston Library, Broad Street, Oxford, OX1 3BG

Email: matthew.ne...@bodleian.ox.ac.uk

Web: http://www.bodleian.ox.ac.uk/weston



From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Natalie 
Adams
Sent: 22 July 2020 15:20
To: archivesspace_users_group@lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Agent records in ArchivesSpace and 
compound or hyphenated surnames



Dear all,



Are there any repositories on the list using ArchivesSpace for agent records 
who would be willing to share any guidance they have prepared for 
users/cataloguers about creating agent records? I'm specifically interested in 
conventions for entering compound and hyphenated surnames or last names.



Any advice would be really helpful.



Best wishes,



Natalie





Natalie Adams

Systems Archivist

Cambridge University Library





Natalie Adams

Systems Archivist

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


[Archivesspace_Users_Group] Update a Resource via the API

2020-07-22 Thread Corey Schmidt
Dear all,

Hello, this is Corey Schmidt, ArchivesSpace Project Manager at the University 
of Georgia. I hope you all are doing well and staying cool!

I'm trying to update records via the API using the Update a Resource endpoint 
(https://archivesspace.github.io/archivesspace/api/#update-a-resource). I found 
Duke made a script 
(https://github.com/duke-libraries/archivesspace-duke-scripts/blob/master/python/asnake_update_all_resources_and_aos.py)
 to do this very thing and I modeled my request on that example. I also found 
what I think is the code for the endpoint, found in 
backend/app/controllers/resource.rb file, line 114 
(https://github.com/archivesspace/archivesspace/blob/0c4cb2dd263bbeacdbce70567ccbb86634cde769/backend/app/controllers/resource.rb#L114).

However, no matter the combinations I try for the request, I'm getting a 
 error with the following message: "error":"Had some trouble 
parsing your request: unexpected token at 

The following is the code I'm running in python:


get_resource = client.get('/repositories/5/resources/1814')
print(get_resource.text)
resource = json.loads(get_resource.text)
resource["restrictions"] = True
print(json.dumps(resource))
update_resource = client.post('/repositories/5/resources/1814', 
json=json.dumps(resource))
# update_resource = client.post('/repositories/5/resources/1814', params={"id": 
1814, "resource": json.dumps(resource), "repo_id": 5})
# the last line produces this error:  {"error":"Had some 
trouble parsing your request: A JSON text must at least contain two octets!"}
print(update_resource, update_resource.text)

I've attached the json file to this email.

Any help would be greatly appreciated. Thanks!

Sincerely,

Corey Schmidt
ArchivesSpace Project Manager
University of Georgia Special Collections Libraries
Email: corey.schm...@uga.edu


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


Re: [Archivesspace_Users_Group] Agent records in ArchivesSpace and compound or hyphenated surnames

2020-07-22 Thread Matthew Neely
Hi Natalie,

We've followed the UK's NCA Rules for Names in our implementation (a practice 
we have used historically at the Bodleian). For example, Violet Bonham Carter 
is Carter | Lady | Helen Violet | Bonham | 1887-1969 | née Asquith | Baroness 
Asquith of Yarnbury | Liberal political 
figure in the Primary 
Part of Name field in the Agent record.

Best wishes,
Matthew
--
Matthew Neely
Senior Archivist
Special Collections
Bodleian Libraries

Tel: 01865 287158
Post: The Weston Library, Broad Street, Oxford, OX1 3BG
Email: matthew.ne...@bodleian.ox.ac.uk
Web: http://www.bodleian.ox.ac.uk/weston

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Natalie 
Adams
Sent: 22 July 2020 15:20
To: archivesspace_users_group@lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Agent records in ArchivesSpace and 
compound or hyphenated surnames

Dear all,

Are there any repositories on the list using ArchivesSpace for agent records 
who would be willing to share any guidance they have prepared for 
users/cataloguers about creating agent records? I'm specifically interested in 
conventions for entering compound and hyphenated surnames or last names.

Any advice would be really helpful.

Best wishes,

Natalie


Natalie Adams
Systems Archivist
Cambridge University Library


Natalie Adams
Systems Archivist
Cambridge University Library
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Agent records in ArchivesSpace and compound or hyphenated surnames

2020-07-22 Thread Daniel Michelson
Hi Natalie,

Could you say more about why compound or hyphenated surnames would require
special treatment?  Can't they be entered as is?

I may not have understood your question.

All the best,

Dan

On Wed, Jul 22, 2020 at 10:20 AM Natalie Adams  wrote:

> Dear all,
>
> Are there any repositories on the list using ArchivesSpace for agent
> records who would be willing to share any guidance they have prepared for
> users/cataloguers about creating agent records? I'm specifically interested
> in conventions for entering compound and hyphenated surnames or last names.
>
> Any advice would be really helpful.
>
> Best wishes,
>
> Natalie
>
>
> Natalie Adams
> Systems Archivist
> Cambridge University Library
>
>
> Natalie Adams
> Systems Archivist
> Cambridge University Library
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>


-- 
Dan Michelson
Project Manager Archivist
Smith College Special Collections

The Special Collections reading room is closed. As of March 18th, all
Special Collections staff will be working remotely. Smith course support is
our primary responsibility at this time.

Minimal reference services will be managed remotely by staff. Reference
inquiries that require access to physical materials will be held in order
of when they were received and responded to once the campus is reopened.
Expect a four to six week delay, minimum. There is a moratorium on
digitization services.

For information about Smith College’s response to Covid-19, please visit
the college’s official website
. For
information about library services during this time, information is
available on our website
.
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] Agent records in ArchivesSpace and compound or hyphenated surnames

2020-07-22 Thread Solek, VivianLea
Please share to the list.  I would be interested in this as well.

Many thanks!

VivianLea Solek
Archivist
Knights of Columbus Supreme Council Archives

Knights of Columbus Museum
1 State Street
New Haven, CT 06511-6702
Phone 203 752-4578
Fax 203 865-0351

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Natalie 
Adams
Sent: Wednesday, July 22, 2020 10:20 AM
To: archivesspace_users_group@lyralists.lyrasis.org
Subject: [Archivesspace_Users_Group] Agent records in ArchivesSpace and 
compound or hyphenated surnames

Dear all,

Are there any repositories on the list using ArchivesSpace for agent records 
who would be willing to share any guidance they have prepared for 
users/cataloguers about creating agent records? I'm specifically interested in 
conventions for entering compound and hyphenated surnames or last names.

Any advice would be really helpful.

Best wishes,

Natalie


Natalie Adams
Systems Archivist
Cambridge University Library


Natalie Adams
Systems Archivist
Cambridge University Library
CONFIDENTIALITY NOTICE: This message and any attachments may contain 
confidential, proprietary or legally privileged information and is intended 
only for the use of the addressee or addressees named above for its intended 
purpose. If you are not the intended recipient of this message, this message 
constitutes notice that any review, retransmission, distribution, copying or 
other use or taking any action in reliance on the information in this message 
and its attachments, is prohibited. If you receive this communication in error, 
please immediately advise the sender by reply e-mail and delete this message 
and its attachments from your system without keeping a copy. Unless expressly 
stated in this e-mail, nothing in this message may be construed as a digital or 
electronic signature. 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] Agent records in ArchivesSpace and compound or hyphenated surnames

2020-07-22 Thread Natalie Adams
Dear all,

Are there any repositories on the list using ArchivesSpace for agent records 
who would be willing to share any guidance they have prepared for 
users/cataloguers about creating agent records? I'm specifically interested in 
conventions for entering compound and hyphenated surnames or last names.

Any advice would be really helpful.

Best wishes,

Natalie


Natalie Adams
Systems Archivist
Cambridge University Library


Natalie Adams
Systems Archivist
Cambridge University Library
___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group