mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2018-10-11
This commit is contained in:
@ -174,7 +174,6 @@ org.im4java.core.InfoException: org.im4java.core.CommandException: org.im4java.c
|
||||
|
||||
- This works, but I'm not sure what ImageMagick's long-term plan is if they are going to disable ALL image formats...
|
||||
- I suppose I need to enable a workaround for this in Ansible?
|
||||
- Also I note that for a few days the item views on DSpace Test are broken... I think Sisay must have been doing something
|
||||
|
||||
## 2018-10-11
|
||||
|
||||
@ -186,4 +185,38 @@ dspace=# \COPY (SELECT DISTINCT text_value, count(*) FROM metadatavalue WHERE me
|
||||
COPY 1500
|
||||
```
|
||||
|
||||
- Give WorldFish advice about Handles because they are talking to some company called KnowledgeArc who recommends they do not use Handles!
|
||||
- Last week I emailed Altmetric to ask if their software would notice mentions of our Handle in the format "handle:10568/80775" because I noticed that the [Land Portal does this](https://landportal.org/library/resources/handle1056880775/unlocking-farming-potential-bangladesh%E2%80%99-polders)
|
||||
- Altmetric support responded to say no, but the reason is that Land Portal is doing even more strange stuff by not using `<meta>` tags in their page header, and using "dct:identifier" property instead of "dc:identifier"
|
||||
- I re-created my local DSpace databse container using [podman](https://github.com/containers/libpod) instead of Docker:
|
||||
|
||||
```
|
||||
$ mkdir -p ~/.local/lib/containers/volumes/dspacedb_data
|
||||
$ sudo podman create --name dspacedb -v /home/aorth/.local/lib/containers/volumes/dspacedb_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:9.6-alpine
|
||||
$ sudo podman start dspacedb
|
||||
$ createuser -h localhost -U postgres --pwprompt dspacetest
|
||||
$ createdb -h localhost -U postgres -O dspacetest --encoding=UNICODE dspacetest
|
||||
$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest superuser;'
|
||||
$ pg_restore -h localhost -U postgres -d dspacetest -O --role=dspacetest -h localhost ~/Downloads/cgspace_2018-10-11.backup
|
||||
$ psql -h localhost -U postgres dspacetest -c 'alter user dspacetest nosuperuser;'
|
||||
$ psql -h localhost -U postgres -f ~/src/git/DSpace/dspace/etc/postgres/update-sequences.sql dspacetest
|
||||
```
|
||||
|
||||
- I tried to make an Artifactory in podman, but it seems to have problems because Artifactory is distributed on the Bintray repository
|
||||
- I can pull the `docker.bintray.io/jfrog/artifactory-oss:latest` image, but not start it
|
||||
- I decided to use a Sonatype Nexus repository instead:
|
||||
|
||||
```
|
||||
$ mkdir -p ~/.local/lib/containers/volumes/nexus_data
|
||||
$ sudo podman run --name nexus -d -v /home/aorth/.local/lib/containers/volumes/nexus_data:/nexus_data -p 8081:8081 sonatype/nexus3
|
||||
```
|
||||
|
||||
- With a few changes to my local Maven `settings.xml` it is working well
|
||||
- Generate a list of the top 10,000 authors for Peter Ballantyne to look through:
|
||||
|
||||
```
|
||||
dspace=# \COPY (SELECT DISTINCT text_value, count(*) FROM metadatavalue WHERE metadata_field_id = 3 AND resource_type_id = 2 GROUP BY text_value ORDER BY count DESC LIMIT 10000) to /tmp/2018-10-11-top-10000-authors.csv WITH CSV HEADER;
|
||||
COPY 10000
|
||||
```
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user