mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2020-04-14
This commit is contained in:
@ -150,5 +150,22 @@ $ podman create --ulimit nofile=32000:32000 --name artifactory -v artifactory_da
|
||||
$ podman start artifactory
|
||||
```
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
## 2020-04-14
|
||||
|
||||
- A few days ago Peter asked me to update an author's name on CGSpace and in the controlled vocabularies:
|
||||
|
||||
```
|
||||
dspace=# UPDATE metadatavalue SET text_value='Knight-Jones, Theodore J.D.' WHERE resource_type_id=2 AND metadata_field_id=3 AND text_value='Knight-Jones, T.J.D.';
|
||||
```
|
||||
|
||||
- I updated his existing records on CGSpace, changed the controlled lists, added his ORCID identifier to the controlled list, and tagged his thirty-nine items with the ORCID iD
|
||||
- The new DSpace 6 stuff that Atmire sent modifies the Mirage 2's `pom.xml` to copy the each theme's resulting `node_modules` to each theme after building and installing with `ant update` because they moved some packages from bower to npm and now reference them in `page-structure.xsl`
|
||||
- This is a good idea, because bower is no longer supported, and npm has gotten a lot better, but it causes an extra 200,000 files to get copied!
|
||||
- Most scripts are concatenated into `theme.js` during build, so we don't need the `node_modules` after that, but there are three scripts in `page-structure.xsl` that are not included there
|
||||
- The scripts are a very old version of modernizr which is not even available on npm, html5shiv, and respond.js
|
||||
- For modernizr I can simply download a static copy and put it in `0_CGIAR/scripts` and concatenate it into `theme.js`
|
||||
- For the others, I can revert to using them from bower's `vendor` directory, which is installed by the parent XMLUI Mirage 2 theme
|
||||
- During this process I also realized that `mvn clean` doesn't actually clean everything, and `dspace/modules/xmlui-mirage2/target` is remaining from previous builds and contains a bunch of shit from previous builds (including all the themes which I was trying to build without!)
|
||||
- This must be a DSpace bug, but I should theoretically check on vanilla DSpace and then file a bug...
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user