# CGSpace Notes
Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository.

## 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 →

## December, 2020

Tue Dec 01, 2020 by Alan Orth in Notes

## 2020-12-01

- Atmire responded about the issue with duplicate data in our Solr statistics
  - They noticed that some records in the statistics-2015 core haven’t been migrated with the AtomicStatisticsUpdateCLI tool yet and assumed that I haven’t migrated any of the records yet
  - That’s strange, as I checked all ten cores and 2015 is the only one with some unmigrated documents, as according to the `cua_version` field
  - I started processing those (about 411,000 records):

Read more →

## CGSpace DSpace 6 Upgrade

Sun Nov 15, 2020 by Alan Orth in Notes Migration

Notes about the DSpace 6 upgrade on CGSpace in 2020-11.

Read more →

## November, 2020

Sun Nov 01, 2020 by Alan Orth in Notes

## 2020-11-01

- Continue with processing the statistics-2019 Solr core with the AtomicStatisticsUpdateCLI tool on DSpace Test
  - So far we’ve spent at least fifty hours to process the statistics and statistics-2019 core… wow.

Read more →

## October, 2020

Tue Oct 06, 2020 by Alan Orth in Notes

## 2020-10-06

- Add tests for the new `/items` POST handlers to the DSpace 6.x branch of my dspace-statistics-api
  - It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available
  - Tag and release version 1.3.0 on GitHub: https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0
- Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
  - During the FlywayDB migration I got an error:

Read more →

## September, 2020

Wed Sep 02, 2020 by Alan Orth in Notes

## 2020-09-02

- Replace Marissa van Epp for Rhys Bucknall in the CCAFS groups on CGSpace because Marissa no longer works at CCAFS
- The AReS Explorer hasn’t updated its index since 2020-08-22 when I last forced it
  - I restarted it again now and told Moayad that the automatic indexing isn’t working
- Add `Alliance of Bioversity International and CIAT` to affiliations on CGSpace
- Abenet told me that the general search text on AReS doesn’t get reset when you use the “Reset Filters” button
  - I filed a bug on OpenRXV: https://github.com/ilri/OpenRXV/issues/39
- I filed an issue on OpenRXV to make some minor edits to the admin UI: https://github.com/ilri/OpenRXV/issues/40

Read more →