- 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](https://github.com/ilri/OpenRXV/issues/66)
- 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](https://cgspace.cgiar.org/handle/10568/66839) has 51 views on CGSpace, but 0 on AReS
- Then, the next morning when it's done, check the results of the harvesting, backup the current `openrxv-items` index, and clone the `openrxv-items-temp` index to `openrxv-items`:
- There is one item that appears twice in AReS: [10568/66839](https://cgspace.cgiar.org/handle/10568/66839)
- If I use the Handle filter I see it twice... whereas other items don't appear twice
- I filed a bug on OpenRXV: https://github.com/ilri/OpenRXV/issues/67
- Help Peter troubleshoot an issue with Altmetric badges on AReS
- He generated a report of our repository from Altmetric and noticed that many were missing scores despite having scores on CGSpace item pages
- AReS harvest Altmetric scores using the Handle prefix (10568) in batch, while CGSpace uses the DOI if it is found, and falls back to using the Handle
- I think it's due to the fact that some items were never tweeted, so Altmetric never made the link between the DOI and the Handle
- I did some tweets of five items and within an hour or so the DOI API link registers the associated Handle, and within an hour or so the Handle API link is live with the same score
- A user sent me [feedback about the dspace-statistics-api](https://github.com/ilri/dspace-statistics-api/issues/12)
- He noticed that the indexer fails if there are unmigrated legacy records in Solr
- I added a UUID filter to the queries in the indexer
- I generated a CSV of titles and Handles for 2019 and 2020 items for Peter to Tweet
- We need to make sure that Altmetric has linked them all with their DOIs
- I wrote a quick and dirty script called [doi-to-handle.py](https://gist.github.com/alanorth/281b7624301049e8fa91742b9b8c51b9) to read the DOIs from a text file, query the database, and save the handles and titles to a CSV
- Udana and some editors from IWMI are still having problems editing metadata during the workflow step
- It is the same issue Peter reported last month, that values he edits are not saved when the item gets archived
- I added myself the the edit and approval steps of [the collection](https://dspacetest.cgiar.org/handle/10568/81589) on DSpace Test and asked Udana to submit an item there for me to test
- Atmire got back to me about the duplicate data in Solr
- They want to arrange a time for us to do the stats processing so they can monitor it
- I proposed that I set everything up with a fresh Solr snapshot from CGSpace and then let them start the stats process
## 2021-01-10
- Dominique from IWMI asked about API access to the IWMI collections
- A partner of theirs called AMCOW is interested in harvesting their publications
- I told her that they can use the REST API or OAI to get them from the [IWMI Journal Articles collection](https://cgspace.cgiar.org/handle/10568/36185):
- Udana submitted an item to [the collection](https://dspacetest.cgiar.org/handle/10568/81589) on DSpace Test that I discussed last week
- I was able to take the task, add a new AGROVOC subject, approve the task, and commit it to archive
- The final item had my new AGROVOC subject, so I don't see the issue
- Perhaps the issue only occurs when we replace an existing field? Or only on IWMI fields? I don't know...
- Also there is this warning that occurs in the DSpace log during editing (and many other operations):
```console
2021-01-10 10:03:27,692 WARN com.atmire.metadataquality.batchedit.BatchEditConsumer @ BatchEditConsumer should not have been given this kind of Subject in an event, skipping: org.dspace.event.Event(eventType=MODIFY, SubjectType=ITEM, SubjectID=1e8fb96c-b994-4fe2-8f0c-0a98ab138be0, ObjectType=(Unknown), ObjectID=null, TimeStamp=1610269383279, dispatcher=1544803905, detail=[null], transactionID="TX35636856957739531161091194485578658698")
```
- I filed [a bug on Atmire's issue tracker](https://tracker.atmire.com/tickets-cgiar-ilri/view-ticket?id=907)
- Peter asked me to move the CGIAR Gender Platform community to the top level of CGSpace, but I get an error when I use the community-filiator command:
- The AReS indexing finished this morning and I moved the `openrxv-items-temp` core to `openrxv-items` (see above)
- I sorted the explorer results by Altmetric attention score and I see a few new ones on the top so I think the recent tweeting of Handles by Peter and myself worked
- I deployed the community-filiator fix on CGSpace and moved the Gender Platform community to the top level of CGSpace:
- IWMI is really pressuring us to have a periodic CSV export of their community
- I decided to write a systemd timer to use `dspace metadata-export` every week, and made an nginx alias to make it available [publicly](https://cgspace.cgiar.org/iwmi.csv)
- It is part of the [Ansible infrastructure scripts](https://github.com/ilri/rmg-ansible-public) that I use to provision the servers
- I wrote to Atmire to tell them to try their CUA duplicates processor on DSpace Test whenever they get a chance this week
- I verified that there were indeed duplicate metadata values in the `userAgent_ngram` and `userAgent_search` fields, even in the first few results I saw in Solr
- For reference, the UID of the record I saw with duplicate metadata was: 50e52a06-ffb7-4597-8d92-1c608cc71c98
- I filed [an issue on cg-core](https://github.com/AgriculturalSemantics/cg-core/issues/30) asking about how to handle series name / number
- Currently the values are in format "series name; series number" in the `dc.relation.ispartofseries` field, but Peter wants to be able to separate them
- Start working on CG Core v2 migration for DSpace 6, using [my work](https://alanorth.github.io/cgspace-notes/cgspace-cgcorev2-migration/) from last year on DSpace 5
## 2021-01-14
- More work on the CG Core v2 migration for DSpace 6
- Publish [v1.4.1 of the DSpace Statistics API](https://github.com/ilri/dspace-statistics-api/releases/tag/v1.4.1) based on feedback from the community
- This includes the fix for limiting the Solr query to UUIDs
- Then, the next morning when it's done, check the results of the harvesting, backup the current `openrxv-items` index, and clone the `openrxv-items-temp` index to `openrxv-items`:
- Finish the indexing on AReS that I started yesterday
- Udana from IWMI emailed me to ask why the iwmi.csv doesn't include items he approved to CGSpace this morning
- I told him it is generated every Sunday night
- I regenerated the file manually for him
- I adjusted the script to run on Monday and Friday
- Meeting with Peter and Abenet about CG Core v2
- We also need to remove CTA and CPWF subjects from the input form since they are both closed now and no longer submitting items
- Peter also wants to create new fields on CGSpace for the SDGs and CGIAR Impact Areas
- I suggested `cg.subject.sdg` and `cg.subject.impactArea`
- We also agreed to remove the following fields:
- cg.livestock.agegroup
- cg.livestock.function
- cg.message.sms
- cg.message.voice
- I removed them from the input form, metadata registry, and deleted all the values in the database:
```
localhost/dspace63= > BEGIN;
localhost/dspace63= > DELETE FROM metadatavalue WHERE metadata_field_id IN (115, 116, 117, 118);
DELETE 27
localhost/dspace63= > COMMIT;
```
- I submitted [an issue](https://github.com/AgriculturalSemantics/cg-core/issues/31) to CG Core v2 to propose standardizing the camel case convention for a few more fields of ours
- I submitted [an issue](https://github.com/AgriculturalSemantics/cg-core/issues/32) to CG Core v2 to propose removing `cg.series` and `cg.pages` in favor of `dcterms.isPartOf` and `dcterms.extent`, respectively
- I created [a pull request](https://github.com/AgriculturalSemantics/cg-core/pull/34) to convert several CG Core v2 fields to consistent "camel case"
- Marie said we should create a new minor version of CG Core v2 for this so I tagged it with the ["CG Core v2.1" milestone](https://github.com/AgriculturalSemantics/cg-core/milestone/1)
- I created [a pull request](https://github.com/AgriculturalSemantics/cg-core/pull/35) to fix some links in cgcore.html
## 2021-01-21
- File [an issue](https://github.com/ilri/OpenRXV/issues/68) for the OpenRXV backend API container's missing `unoconv`
- This causes PDF reports to not work, and I always have to go manually re-install it after rebooting the server
- A little bit more work on the CG Core v2 migration in CGSpace
- I updated the `migrate-fields.sh` script for DSpace 6 and created all the new fields in my test instance