Title: Message Title
|
|
I've implemented this on Ohio State's instance. I've divided the bytes by (1024*1024*1024) to work around the too-big for int problem. Our code is at: https://github.com/osulibraries/DSpace/blob/osukb/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/dashboard/ContentStatistics.java Example use in production: https://kb.osu.edu/dspace/content-statistics (Its slow loading). <dspace-repository-statistics date="20131024T193427Z"> <statistic name="communities">189</statistic> <statistic name="collections">1475</statistic> <statistic name="items">54188</statistic> <statistic name="bitstreams">118424</statistic> <statistic name="totalMBytes">111867</statistic> <statistic name="images">86495</statistic> <statistic name="imageMBytes">8907</statistic> </dspace-repository-statistics> mhwood and I were discussing this in #dspace, and we determined that stuffing this in REST might not be a bad idea, and we found this advice: https://blog.apigee.com/detail/restful_api_design_what_about_counts -- Say, you want a count of all of some resource (scoped based on whatever the requester has access to). -- /dogs/count -- In this way, you think about "count" as a reserved word. Thus, this might fit into REST at endpoints: /communities/count, /collections/count, /items/count, /bitstreams/count, /bitstreams/size?unit=GB, /bitstreams/count?mimetype=image*, /bitstreams/size?unit=GB&mimetype=image* The DB logic couldn't reside in rest though, it would have to move to dspace-api.
|
|
|
|
|
A tiny servlet to return counts of bitstreams, items, collections, and communities, and the amount of storage occupied. The attached patch also maps it into both JSPUI and XMLUI at /content-statistics. The returned "page" is an XML document. For now, see the package.html changes in the patch. I'll update the end-user documentation presently. We u...
|
|
|
|
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel