Skip to content

Commit

Permalink
Merge pull request #206 from TAMULib/dspace-7_x-sprint2-201-metadata-…
Browse files Browse the repository at this point in the history
…registries

Update metadata registries
  • Loading branch information
wwelling authored Oct 31, 2023
2 parents 52dca30 + 4e6830e commit 872d9ae
Show file tree
Hide file tree
Showing 6 changed files with 777 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void findAll() throws Exception {
context.restoreAuthSystemState();

getClient().perform(get("/api/core/metadatafields")
.param("size", String.valueOf(100)))
.param("size", String.valueOf(200)))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$._embedded.metadatafields", Matchers.hasItems(
Expand All @@ -95,7 +95,7 @@ public void findAll() throws Exception {
.andExpect(jsonPath("$._links.next.href", Matchers.containsString("/api/core/metadatafields")))
.andExpect(jsonPath("$._links.last.href", Matchers.containsString("/api/core/metadatafields")))

.andExpect(jsonPath("$.page.size", is(100)));
.andExpect(jsonPath("$.page.size", is(200)));
}

@Test
Expand Down Expand Up @@ -139,14 +139,14 @@ public void findBySchema() throws Exception {

getClient().perform(get("/api/core/metadatafields/search/bySchema")
.param("schema", "dc")
.param("size", String.valueOf(100)))
.param("size", String.valueOf(200)))
.andExpect(status().isOk())
.andExpect(content().contentType(contentType))
.andExpect(jsonPath("$._embedded.metadatafields", Matchers.hasItems(
MetadataFieldMatcher.matchMetadataFieldByKeys("dc", "title", null),
MetadataFieldMatcher.matchMetadataFieldByKeys("dc", "date", "issued"))
))
.andExpect(jsonPath("$.page.size", is(100)));
.andExpect(jsonPath("$.page.size", is(200)));

getClient().perform(get("/api/core/metadatafields/search/bySchema")
.param("schema", schema.getName()))
Expand Down
4 changes: 4 additions & 0 deletions dspace/config/dspace.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,10 @@ registry.metadata.load = schema-publicationVolume-types.xml
registry.metadata.load = openaire4-types.xml
registry.metadata.load = dspace-types.xml
registry.metadata.load = iiif-types.xml
# TAMU Customization - custom metadata registries
registry.metadata.load = thesis-types.xml
registry.metadata.load = dwc-types.xml
# End TAMU Customization - custom metadata registries


#---------------------------------------------------------------#
Expand Down
Loading

0 comments on commit 872d9ae

Please sign in to comment.