## September, 2021

Wed Sep 01, 2021 by Alan Orth in Notes

## 2021-09-02

- Troubleshooting the missing Altmetric scores on AReS
  - Turns out that I didn’t actually fix them last month because the check for `content.altmetric` still exists, and I can’t access the DOIs using `_h.source.DOI` for some reason
  - I can access all other kinds of item metadata using the Elasticsearch label, but not DOI!!!
  - I will change `DOI` to `tomato` in the repository setup and start a re-harvest… I need to see if this is some kind of reserved word or something…
  - Even as `tomato` I can’t access that field as `_h.source.tomato` in Angular, but it does work as a filter source… sigh
- I’m having problems using the OpenRXV API
  - The syntax Moayad showed me last month doesn’t seem to honor the search query properly…

Read more →

## August, 2021

Sun Aug 01, 2021 by Alan Orth in Notes

## 2021-08-01

- Update Docker images on AReS server (linode20) and reboot the server:

    # docker images | grep -v ^REPO | sed 's/ \+/:/g' | cut -d: -f1,2 | grep -v none | xargs -L1 docker pull

- I decided to upgrade linode20 from Ubuntu 18.04 to 20.04

Read more →

## July, 2021

Thu Jul 01, 2021 by Alan Orth in Notes

## 2021-07-01

- Export another list of ALL subjects on CGSpace, including AGROVOC and non-AGROVOC for Enrico:

    localhost/dspace63= > \COPY (SELECT DISTINCT LOWER(text_value) AS subject, count(*) FROM metadatavalue WHERE dspace_object_id in (SELECT dspace_object_id FROM item) AND metadata_field_id IN (119, 120, 127, 122, 128, 125, 135, 203, 208, 210, 215, 123, 236, 242, 187) GROUP BY subject ORDER BY count DESC) to /tmp/2021-07-01-all-subjects.csv WITH CSV HEADER;
    COPY 20994

Read more →

## June, 2021

Tue Jun 01, 2021 by Alan Orth in Notes

## 2021-06-01

- IWMI notified me that AReS was down with an HTTP 502 error
  - Looking at UptimeRobot I see it has been down for 33 hours, but I never got a notification
  - I don’t see anything in the Elasticsearch container logs, or the systemd journal on the host, but I notice that the `angular_nginx` container isn’t running
  - I simply started it and AReS was running again:

Read more →

## May, 2021

Sun May 02, 2021 by Alan Orth in Notes

## 2021-05-01

- I looked at the top user agents and IPs in the Solr statistics for last month and I see these user agents:
  - “RI/1.0”, 1337
  - “Microsoft Office Word 2014”, 941
- I will add the RI/1.0 pattern to our DSpace agents overload and purge them from Solr (we had previously seen this agent with 9,000 hits or so in 2020-09), but I think I will leave the Microsoft Word one… as that’s an actual user…

Read more →

## April, 2021

Thu Apr 01, 2021 by Alan Orth in Notes

## 2021-04-01

- I wrote a script to query Sherpa’s API for our ISSNs: `sherpa-issn-lookup.py`
  - I’m curious to see how the results compare with the results from Crossref yesterday
- AReS Explorer was down since this morning, I didn’t see anything in the systemd journal
  - I simply took everything down with docker-compose and then back up, and then it was OK
  - Perhaps one of the containers crashed, I should have looked closer but I was in a hurry

Read more →

## March, 2021

Mon Mar 01, 2021 by Alan Orth in Notes

## 2021-03-01

- Discuss some OpenRXV issues with Abdullah from CodeObia
  - He’s trying to work on the DSpace 6+ metadata schema autoimport using the DSpace 6+ REST API
  - Also, we found some issues building and running OpenRXV currently due to ecosystem shift in the Node.js dependencies

Read more →

## CGSpace CG Core v2 Migration

Sun Feb 21, 2021 by Alan Orth in Notes Migration

Changes to CGSpace metadata fields to align more with DC, QDC, and DCTERMS as well as CG Core v2. Implemented on 2021-02-21.

With reference to CG Core v2 draft standard by Marie-Angélique as well as DCMI DCTERMS.

Read more →

## February, 2021

Mon Feb 01, 2021 by Alan Orth in Notes

## 2021-02-01

- Abenet said that CIP found more duplicate records in their export from AReS
  - I re-opened the issue on OpenRXV where we had previously noticed this
  - The shared link where the duplicates are is here: https://cgspace.cgiar.org/explorer/shared/heEOz3YBnXdK69bR2ra6
- I had a call with CodeObia to discuss the work on OpenRXV
- Check the results of the AReS harvesting from last night:

    $ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty'
    {
      "count" : 100875,
      "_shards" : {
        "total" : 1,
        "successful" : 1,
        "skipped" : 0,
        "failed" : 0
      }
    }

Read more →

## January, 2021

Sun Jan 03, 2021 by Alan Orth in Notes

## 2021-01-03

- Peter notified me that some filters on AReS were broken again
  - It’s the same issue with the field names getting `.keyword` appended to the end that I already filed an issue on OpenRXV about last month
  - I fixed the broken filters (careful to not edit any others, lest they break too!)
- Fix an issue with start page number for the DSpace REST API and statistics API in OpenRXV
  - The start page had been “1” in the UI, but in the backend they were doing some gymnastics to adjust to the zero-based offset/limit/page of the DSpace REST API and the statistics API
  - I adjusted it to default to 0 and added a note to the admin screen
  - I realized that this issue was actually causing the first page of 100 statistics to be missing…
  - For example, this item has 51 views on CGSpace, but 0 on AReS

Read more →