Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

public biographical info on creators in archon is migrating as an unpublished note #22

Open
graykr opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
creator record issues related to the creator record (called agent record in aspace) ready to test with aspace

Comments

@graykr
Copy link

graykr commented Jan 8, 2025

It looks like the addTextNote function (which is called from the inappropriately named "addBiologicalHistoryNote" function... it should be biographical...) is looking for a "publishRecord" variable ... which is defined at the top as false for some reason??

private Boolean publishRecord = false;
https://github.com/archivesspace/archon-migration/blob/5ab5bc4aed3607a71923ec91e0a515680c361f7b/src/org/nyu/edu/dlts/utils/ASpaceMapper.java#L63

private void addTextNote(JSONObject noteJS, String content) throws Exception {
        noteJS.put("jsonmodel_type", "note_text");
        noteJS.put("publish", publishRecord);
        noteJS.put("content", content);
    }

https://github.com/archivesspace/archon-migration/blob/5ab5bc4aed3607a71923ec91e0a515680c361f7b/src/org/nyu/edu/dlts/utils/ASpaceMapper.java#L1486

It looks like for convertDigitalObject function, the convertCollection function, and convertCollectionContent this variable is changed based on whether the digital content is enabled or not:
For example:
publishRecord = convertToBoolean(record.getInt("Browsable"));
https://github.com/archivesspace/archon-migration/blob/5ab5bc4aed3607a71923ec91e0a515680c361f7b/src/org/nyu/edu/dlts/utils/ASpaceMapper.java#L783

Since creators cannot be made private in Archon, I think within the convertCreator function, publishRecord should be set to true.
Perhaps instead of:
agentJS.put("publish", true);
https://github.com/archivesspace/archon-migration/blob/5ab5bc4aed3607a71923ec91e0a515680c361f7b/src/org/nyu/edu/dlts/utils/ASpaceMapper.java#L405

We should have something like:

publishRecord = true; //all creators are public in Archon
agentJS.put("publish", publishRecord);

This would better mirror the other "convert" functions, and the changed value should carry through the successive function calls within the convertCreator function like it does for the other convert functions.

@graykr graykr added the creator record issues related to the creator record (called agent record in aspace) label Jan 8, 2025
@graykr graykr self-assigned this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
creator record issues related to the creator record (called agent record in aspace) ready to test with aspace
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant