[Archivesspace_Users_Group] Resource Creation Statistics - Any ideas?

Cornwall, Daniel D (EED) daniel.cornwall at alaska.gov
Mon Dec 14 17:35:23 EST 2020


Hi Steven,

Thanks for these suggestions. I’ve worked a little with JSON before. I’ll take a closer look at this idea.

Thanks everyone for the suggestions! Between the posts and people who’ve come to me off list, I feel like I have good starting points. I really appreciate this supportive community. – Daniel



==============================
Daniel Cornwall
Library Technology Consultant / OWL Program Manager
Alaska State Library
Ph: 907-465-6332
https://lam.alaska.gov/daniel



From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Majewski, Steven Dennis (sdm7g)
Sent: Wednesday, December 9, 2020 9:49 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Resource Creation Statistics - Any ideas?

On second thought, if you’re not adept with JSON tools, then exporting as CSV and loading in EXCEL to sort and group by created_by might be an easier solution.

And the missing translation errors don’t show up in the CSV:

repository,Albert and Shirley Small Special Collections Library

record_title,identifier,level,resource_type,publish,restrictions,created_by,create_time,date,extent
Jack R. Levien papers,MSS 15241,Collection,,Yes,No,admin,2015-08-11 21:43:13 UTC,"[{""_date"":""Creation: 1960 - 1999, 1960-1999""}]","[{""portion"":""Whole"",""container_summary"":""2 document boxes"",""physical_details"":null,""dimensions"":null,""extent"":""0.80 Cubic Feet""}]"
George family papers,MSS 13543,Collection,Papers,Yes,No,admin,2015-08-11 21:43:17 UTC,"[{""_date"":""Creation: 1816 - 1963, 1816-1963""}]","[{""portion"":""Whole"",""container_summary"":""1 document box"",""physical_details"":null,""dimensions"":null,""extent"":""0.50 Cubic Feet""}]"
Francis Burton Harrison papers,MSS 14969,Collection,Papers,Yes,No,admin,2015-08-11 21:43:21 UTC,"[{""_date"":""Creation: 1921 - 1945, 1921-1945""}]","[{""portion"":""Whole"",""container_summary"":""1 document box"",""physical_details"":null,""dimensions"":null,""extent"":""0.50 Cubic Feet""}]"
Holmes family papers,MSS15167,Collection,,Yes,No,admin,2015-08-11 21:43:24 UTC,"[{""_date"":""Creation: 1766 - 1928, 1908-1975; 1766-1928""}]","[{""portion"":""Whole"",""container_summary"":""4 Hollinger boxes"",""physical_details"":null,""dimensions"":null,""extent"":""934.00 items""}]"
Theron H. Rice papers,MSS15247,Collection,,Yes,No,admin,2015-08-11 21:43:28 UTC,"[{""_date"":""Creation: 1877 - 1923, 1877-1923""}]","[{""portion"":""Whole"",""container_summary"":""1 Hollinger box"",""physical_details"":null,""dimensions"":null,""extent"":""70.00 items""}]"
Benjamin C. Howland papers,MSS 13748,Collection,,Yes,No,admin,2015-08-11 21:43:31 UTC,"[{""_date"":""Creation: 1941 - 1983, 1941-1983""}]","[{""portion"":""Whole"",""container_summary"":""6 Hollinger boxes"",""physical_details"":null,""dimensions"":null,""extent"":""757.00 items""}]"



On Dec 9, 2020, at 12:42 PM, Majewski, Steven Dennis (sdm7g) <sdm7g at virginia.edu<mailto:sdm7g at virginia.edu>> wrote:


You can just add created_by and create_time ( and perhaps other fields like: last_modified_by, finding_aid_author ) to the resource_list_report.rb :


diff --git a/reports/resources/resources_list_report/resources_list_report.rb b/reports/resources/resources_list_report/resources_list_report.rb
index 96f200fed..ad3a96474 100644
--- a/reports/resources/resources_list_report/resources_list_report.rb
+++ b/reports/resources/resources_list_report/resources_list_report.rb
@@ -9,7 +9,8 @@ class ResourcesListReport < AbstractReport
                        level_id as level,
                        resource_type_id as resource_type,
                        publish,
-                       restrictions
+                       restrictions,
+                       created_by, create_time
                from resource
                where repo_id = #{db.literal(repo_id)}"
        end



And add those to the .yml files in that directory, otherwise you will get something like:

translation missing: en.reports.translation_defaults.created_by
admin
translation missing: en.reports.translation_defaults.create_time
2015-08-11 21:43:13 UTC

( And we really should add a translation missing fallback to these reports to make customizing easier! )

That doesn’t make it easily sortable however. That would take more work.
Alternatively, once you have added those fields, you can use the json output format, and write a script, or use ‘jq’ to sort, group, and format the report before printing. However, if you need to group by author, it might just be simpler to run the report outside of archivesspace as a mysql query.

If you wanted that sort of grouping as an ArchivesSpace report, you would need to write a new report, restructuring it as a subreport on resources created by each user.


— Steve M.




On Dec 8, 2020, at 6:51 PM, Cornwall, Daniel D (EED) <daniel.cornwall at alaska.gov<mailto:daniel.cornwall at alaska.gov>> wrote:


Hello,

After fiddling with the reports module in 2.8 and looking at the documentation in ArchivesSpace help center I want to ask you if your institution keeps track of the number of finding aids that someone enters into ArchivesSpace and if so, how you track that. The Resources List Report  ALMOST fits my purposes but doesn’t list the audit information I’d need to filter when resource records were created or modified.

If you’re aware of this kind of functionality, or ideally a report that would produced a list of resource records with creation date by users, please let me know. Otherwise I’ll think about other ways to track.

Thanks! - Daneil

==============================
Daniel Cornwall
Library Technology Consultant / OWL Program Manager
Alaska State Library
Ph: 907-465-6332
https://lam.alaska.gov/daniel

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20201214/20ecf460/attachment.html>


More information about the Archivesspace_Users_Group mailing list