[Archivesspace_Users_Group] Resource Creation Statistics - Any ideas?

Kevin W. Schlottmann kws2126 at columbia.edu
Wed Dec 9 15:08:01 EST 2020


Hi Daniel,

We built a report that includes, among other things, created/modified
date/user for all resources.  We also include some other info that's useful
for us, such as external links, user defined fields, and collection
management data.  Post-lockdown, we also added scopenote and bionote
information to aid in targeting remediation efforts.  The data retrieved
from the AS API and written to a Google sheet by a script on a nightly
basis. The Python code is here:

https://github.com/cul/rbml-archivesspace/blob/master/reporting/resource_reporter.py

You would need API access and possibly some developer support, but this is
an alternative to modifying any AS code.

We took this approach both because these were the tools we knew (Python,
Google sheets, scripts), and also because we are hosted -- this keeps our
AS instance clean and easy to upgrade.

Kevin

On Wed, Dec 9, 2020 at 1:48 PM Majewski, Steven Dennis (sdm7g) <
sdm7g at virginia.edu> wrote:

> 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> 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_byadmintranslation
> missing: en.reports.translation_defaults.create_time2015-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> 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
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> 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
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>


-- 
Kevin Schlottmann
Interim Director and Head of Archives Processing
Rare Book & Manuscript Library
Butler Library, Room 801
Columbia University
535 W. 114th St., New York, NY  10027
(212) 854-8483
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20201209/d83f6be2/attachment.html>


More information about the Archivesspace_Users_Group mailing list