-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from TAMULib/configurable-metadata
configurable label and description predicate precedence, configurable…
- Loading branch information
Showing
56 changed files
with
820 additions
and
730 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
src/main/java/edu/tamu/iiif/config/AbstractIiifConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package edu.tamu.iiif.config; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public abstract class AbstractIiifConfig { | ||
|
||
private List<String> labelPrecedence = new ArrayList<String>(); | ||
|
||
private List<String> descriptionPrecedence = new ArrayList<String>(); | ||
|
||
private List<String> metadataPrefixes = new ArrayList<String>(); | ||
|
||
private String url; | ||
|
||
private String identifier; | ||
|
||
public AbstractIiifConfig() { | ||
|
||
} | ||
|
||
public List<String> getLabelPrecedence() { | ||
return labelPrecedence; | ||
} | ||
|
||
public void setLabelPrecedence(List<String> labelPrecedence) { | ||
this.labelPrecedence = labelPrecedence; | ||
} | ||
|
||
public List<String> getDescriptionPrecedence() { | ||
return descriptionPrecedence; | ||
} | ||
|
||
public void setDescriptionPrecedence(List<String> descriptionPrecedence) { | ||
this.descriptionPrecedence = descriptionPrecedence; | ||
} | ||
|
||
public List<String> getMetadataPrefixes() { | ||
return metadataPrefixes; | ||
} | ||
|
||
public void setMetadataPrefixes(List<String> metadataPrefixes) { | ||
this.metadataPrefixes = metadataPrefixes; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public String getIdentifier() { | ||
return identifier; | ||
} | ||
|
||
public void setIdentifier(String identifier) { | ||
this.identifier = identifier; | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/edu/tamu/iiif/config/DSpaceRdfIiifConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package edu.tamu.iiif.config; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@ConfigurationProperties(prefix = "iiif.dspace") | ||
public class DSpaceRdfIiifConfig extends AbstractIiifConfig { | ||
|
||
private String webapp; | ||
|
||
public DSpaceRdfIiifConfig() { | ||
super(); | ||
setUrl("http://localhost:8080"); | ||
setIdentifier("dspace"); | ||
setWebapp("xmlui"); | ||
} | ||
|
||
public String getWebapp() { | ||
return webapp; | ||
} | ||
|
||
public void setWebapp(String webapp) { | ||
this.webapp = webapp; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/edu/tamu/iiif/config/FedoraPcdmIiifConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package edu.tamu.iiif.config; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@ConfigurationProperties(prefix = "iiif.fedora") | ||
public class FedoraPcdmIiifConfig extends AbstractIiifConfig { | ||
|
||
public FedoraPcdmIiifConfig() { | ||
super(); | ||
setUrl("http://localhost:9000/fcrepo/rest"); | ||
setIdentifier("fedora"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.