0cb533b2c4
Fix license headers
...
I meant to use GPL-3.0-only.
2024-04-22 16:59:12 +03:00
9e965afdb7
src/main/java: change getSize() to getSizeBytes()
...
Apparently this changed in DSpace 7. Untested, but it compiles now.
2023-12-28 10:18:40 +03:00
80a336f94d
src: fix context commit in scripts
...
I was wondering why the same bitstreams appeared to be getting de-
leted on every single run. It turns out that the only mode we were
committing the context in was in single item mode. If the argument
was a site, community, or collection we were updating the item but
not actually committing the changes!
2022-10-07 14:49:58 +03:00
5ebf4930cf
src: re-organize switch statements in scripts
...
It makes more sense to me to start from the top level of the hier-
archy.
2022-10-07 13:11:03 +03:00
b396fba043
src: format Java files with google-java-format
...
Using AOSP format so we get four spaces instead of two.
2022-10-06 14:27:51 +03:00
38a9cc5188
src: organize imports in VS Code
2022-10-06 14:26:44 +03:00
16db38967b
src: handle null descriptions in FixJpgJpgThumbnails
2022-10-06 14:17:41 +03:00
2604dc3cce
src: skip Infographics and Maps in FixJpgJpgThumbnails
...
Instead of checking whether they exist and then skipping them just
at the moment when we want to swap the bitstreams let's bail early
when we know an item is an Infographic or a Map.
2022-10-06 14:15:58 +03:00
6772145bec
src: fix SPDX license header
...
Use GPL-3.0-or-later instead of GPL-3.0-only. I had specified this
in pom.xml already.
2022-10-05 16:53:00 +03:00
095f843067
src: add SPDX license headers
2022-10-05 15:48:57 +03:00
3aa1503163
src: bump version of FixJpgJpgThumbnails.java
2022-10-04 21:13:24 +03:00
26597e2f8f
Use dcterms.type in FixJpgJpgThumbnails script
...
We are now using dcterms.type instead of dc.type.
2022-10-04 16:16:43 +03:00
4bc7971ecb
src/main/java: Remove debug comment
2020-08-07 22:55:35 +03:00
da1ecad238
src/main/java: DSpace 6 port of FixJpgJpgThumbnails.java
...
Need to use the new DSpace 6 service model in most places. Not sure
why addBitstream is no longer public, but removeBitstream is...
2020-08-07 22:45:07 +03:00