pulibrary / dspace-development

DSpace infrastructure and development resources for the Princeton University Library.
https://dspace-development.readthedocs.io/en/latest/
1 stars 0 forks source link

[oar] Generate a report for OAR Item submissions #857

Open jrgriffiniii opened 1 week ago

jrgriffiniii commented 1 week ago

This is in response to the following user request:

jrgriffiniii commented 5 days ago

The total number of items in the OAR is currently 9472

jrgriffiniii commented 1 day ago

Item Views for July 1, 2023 - June 30 2024:

$ export QUERY_TIME="%5B2023%2D07%2D01T00%3A00%3A00%2E000Z%20TO%202024%2D06%2D30T00%3A00%3A00%2E000Z%5D"
$ curl "http://localhost:8080/solr/statistics/select?indent=on&version=2.2&start=0&rows=1&fl=*&wt=json&explainOther=&hl.fl=&facet=true&start=0&q=isBot%3Afalse%20AND%20time%3A$QUERY_TIME%20AND%20type%3A2"
[...]
"response":{"numFound":250064,"start":0,"docs":[
      {
        "ip":"54.195.56.103",
        "dns":"ec2-54-195-56-103.eu-west-1.compute.amazonaws.com.",
        "userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
        "isBot":false,
        "continent":"EU",
        "countryCode":"IE",
        "city":"Dublin",
        "latitude":53.3331,
        "longitude":-6.2489014,
        "id":13815,
        "type":2,
        "owningColl":[49],
        "owningComm":[41],
        "time":"2023-07-01T06:47:24.257Z",
        "statistics_type":"view",
        "uid":"68da54a7-5b08-4939-8c08-5583ce5c093c",
        "_version_":1770214857652568064}]
  },
[...]

Bitstream Downloads for July 1, 2023 - June 30 2024:

$ curl "http://localhost:8080/solr/statistics/select?indent=on&version=2.2&start=0&rows=1&fl=*&wt=json&explainOther=&hl.fl=&facet=true&start=0&q=isBot%3Afalse%20AND%20time%3A$QUERY_TIME%20AND%20type%3A0"
"response":{"numFound":312082,"start":0,"docs":[
      {
        "ip":"66.249.66.10",
        "dns":"crawl-66-249-66-10.googlebot.com.",
        "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 (compatible; GoogleOther)",
        "isBot":false,
        "continent":"NA",
        "countryCode":"US",
        "city":"Mountain View",
        "latitude":37.419205,
        "longitude":-122.0574,
        "id":24986,
        "type":0,
        "owningItem":[14067],
        "owningColl":[39],
        "owningComm":[41],
        "time":"2023-07-01T07:09:05.624Z",
        "bundleName":["ORIGINAL"],
        "statistics_type":"view",
        "uid":"93205893-5474-427e-a79d-7952f3dfe708",
        "_version_":1770216222235820032}]
  },