Add notes for 2023-06-28

This commit is contained in:
2023-06-28 20:11:34 +03:00
parent 4415eec1a0
commit ae41ef3682
32 changed files with 181 additions and 37 deletions

View File

@ -166,4 +166,66 @@ ERROR DOMException: CSSStyleSheet.cssRules getter: Not allowed to access cross-o
- Upload thumbnails for about 42 IITA Journal Articles after resolving their DOIs and making sure they were not CC ND
- I fixed a few bugs in `get_scihub_pdfs.py` in the process
## 2023-06-21
- Stefano got back to me about the MODS OAI-PMH schema test on DSpace Test
- He said that it's fine if we use iso8601 encoding for dates instead of w3cdtf and asked if we can create a custom end point for AGRIS that only includes types like Journal Articles similar to how Salem did it: https://melspace.loc.codeobia.com/oai/agris?verb=ListRecords&metadataPrefix=mods
- I updated DSpace Test with the new date format and said I'd work on the custom AGRIS set
## 2023-06-25
- Export CGSpace to check for missing Initiative collection mappings
- I wanted to start a harvest on AReS but I've seen the load on the server high for a few days and I'm not sure what it is
- I decided to run all updates and reboot it since it's Sunday anyway
## 2023-06-26
- Since the new DSpace 7 will respect newlines in metadata fields I am curious to see how many of our abstracts have poor newlines
- I exported CGSpace and used a custom text facet with this GREL expression in OpenRefine to count the number of newlines in each cell:
```console
value.split('\n').length()
```
- Also useful to check for general length of the text in the cell to make sure it's a reasonably long string
- I spent some time trying to find a pattern that I could use to identify "easy" targets, but there are so many exceptions that it will have to be done manually
- I fixed a few dozen
- Do a bit of work on thumbnails on CGSpace
- I'm trying to troubleshoot the Discovery error I get on DSpace 7:
```console
java.lang.NullPointerException: Cannot invoke "org.dspace.discovery.configuration.DiscoverySearchFilterFacet.getIndexFieldName()" because the return value of "org.dspace.content.authority.DSpaceControlledVocabularyIndex.getFacetConfig()" is null
```
- I reverted to the default `submission-forms.xml` and the `getFacetConfig()` error goes away...
- Kill some long-held locks on CGSpace PostgreSQL, as some users are complaining of slowness in archiving
- I did some testing of the LDAP login issue related to groupmaps
- It does seem to be a regression from the [LDAP auth patch](https://github.com/DSpace/DSpace/pull/8814) from last month, so I [filed an issue](https://github.com/DSpace/DSpace/issues/8920)
- I spent some time on working on Angular and I figured out how to add a custom Angular component to show the UN SDG Goal icons on DSpace 7
## 2023-06-27
- I debugged the NullPointerException and somehow it disappeared
- It seems to be related to the external controlled vocabularies in the submission form
- I removed them all, then added them all back, and now the issue is solved... hmmmm
- Oh now, now they are gone again, sigh...
## 2023-06-28
- Spent a lot of time debugging the browse indexes
- Looking at the [DSpace 7 demo API](https://api7.dspace.org/server/api/discover/browses) I see the four default browse indexes from `dspace.cfg` and the one default `srsc` one that gets automatically enabled from the `<vocabulary>srsc</vocabulary>` in the `submission-forms.xml`
- The same API call on my test DSpace 7 configuration results in the HTTP 500 I've been seeing for some time, and I am pretty sure it's due to the automagic configuration of hierarchical browses based on the submission form
- Yes, if I remove them all from my submission form then this works: http://localhost:8080/server/api/discover/browses
- I went through each of our vocabularies and tested them one by one:
- dcterms-subject: OK
- dc-contributor-author: NO
- cg-creator-identifier: NO
- cg-contributor-affiliation: OK (and with `facetType: "affiliation"` in API response?!)
- cg-contributor-donor: OK (`facetType: "sponsorship"`)
- cg-journal: NO
- cg-coverage-subregion: NO
- cg-species-breed: NO
- Now I need to figure out what it is about those five that causes them to not work!
- Ah, after debugging with someone on the DSpace Slack, I realized that DSpace expects these vocabularies to have corresponding indexes configured in `discovery.xml`, and they must be added as search filters AND sidebar facets.
<!-- vim: set sw=2 ts=2: -->