Skip to content

Commit

Permalink
[SERV-768] Add support for static image manifests (#237)
Browse files Browse the repository at this point in the history
* Add support for static image manifests
  • Loading branch information
ksclarke authored Mar 9, 2024
1 parent d498e10 commit 13e1aee
Show file tree
Hide file tree
Showing 16 changed files with 1,674 additions and 1,092 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<properties>
<!-- Docker image dependencies -->
<ubuntu.tag>22.04</ubuntu.tag>
<jdk.version>17.0.9+9-1~22.04</jdk.version>
<jdk.version>17.0.10+7-1~22.04.1</jdk.version>
<python3.version>3.10.6-1~22.04</python3.version>
<curl.version>7.81.0-1ubuntu1.15</curl.version>

Expand Down Expand Up @@ -110,7 +110,7 @@

<!-- Versions of tools used for testing -->
<jsoup.version>1.15.3</jsoup.version>
<aws.sdk.version>1.12.298</aws.sdk.version>
<aws.sdk.version>1.12.664</aws.sdk.version>
<testcontainers.version>1.16.3</testcontainers.version>
<jcip.annotations.version>1.0-1</jcip.annotations.version>

Expand Down Expand Up @@ -1266,7 +1266,7 @@
<parent>
<artifactId>freelib-parent</artifactId>
<groupId>info.freelibrary</groupId>
<version>8.0.4</version>
<version>8.0.5</version>
</parent>
</project>

9 changes: 9 additions & 0 deletions src/main/java/edu/ucla/library/iiif/fester/CSV.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ public final class CSV {
*/
public static final String WAVEFORM = "Waveform";

/**
* The row's thumbnail URL.
*/
public static final String THUMBNAIL = "Thumbnail";

/**
* A private constructor for the CSV constants class.
*/
private CSV() {
// This is intentionally left empty.
}
}
31 changes: 31 additions & 0 deletions src/main/java/edu/ucla/library/iiif/fester/CsvHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ public class CsvHeaders {
*/
private int myWaveformIndex = -1;

/**
* The index position for the thumbnail column.
*/
private int myThumbnailIndex = -1;

/**
* Create a new CSV headers object.
*
Expand Down Expand Up @@ -175,6 +180,9 @@ public CsvHeaders(final String[] aRow) {
case CSV.WAVEFORM:
setWaveformIndex(index);
break;
case CSV.THUMBNAIL:
setThumbnailIndex(index);
break;
default:
// Our default is to ignore things we don't care about
}
Expand All @@ -186,6 +194,29 @@ public CsvHeaders(final String[] aRow) {
*/
@SuppressWarnings("unused")
private CsvHeaders() {
// This is intentionally left empty.
}

/**
* Gets the thumbnail index position.
*
* @return The thumbnail index position
*/
@JsonGetter
public int getThumbnailIndex() {
return myThumbnailIndex;
}

/**
* Sets the thumbnail index position.
*
* @param aThumbnailIndex The position of the thumbnail header
* @return This CSV headers
*/
@JsonSetter
public CsvHeaders setThumbnailIndex(final int aThumbnailIndex) {
myThumbnailIndex = aThumbnailIndex;
return this;
}

/**
Expand Down
Loading

0 comments on commit 13e1aee

Please sign in to comment.