Skip to content

Commit

Permalink
Changed hiddenButHarvestable to hidden.
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Aug 10, 2023
1 parent 7e0818f commit 3ba8a27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dspace-api/src/main/java/org/dspace/content/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public boolean isDiscoverable() {

public boolean isHidden() {
String valueOfHidden = getItemService().getMetadataFirstValue(this, "local",
"hiddenButHarvestable", null, Item.ANY);
"hidden", null, Item.ANY);
if (Objects.nonNull(valueOfHidden) && valueOfHidden.equalsIgnoreCase("hidden")) {

return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void existWithdrawnReason() throws Exception {

@Test
public void existsHidden() throws Exception {
MetadataField field = metadataFieldService.findByString(context, "local.hiddenButHarvestable", '.');
MetadataField field = metadataFieldService.findByString(context, "local.hidden", '.');
assertThat("existsHidden 0", field, notNullValue());
}
}
2 changes: 1 addition & 1 deletion dspace/config/registries/local-types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<dc-type>
<schema>local</schema>
<element>hiddenButHarvestable</element>
<element>hidden</element>
<scope_note>Should item be harvestable thru OAI-PMH, but behave like private in frontend?</scope_note>
</dc-type>

Expand Down
2 changes: 1 addition & 1 deletion dspace/config/submission-forms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<row>
<field>
<dc-schema>local</dc-schema>
<dc-element>hiddenButHarvestable</dc-element>
<dc-element>hidden</dc-element>
<dc-qualifier/>
<repeatable>true</repeatable>
<label>Hidden but harvestable</label>
Expand Down

0 comments on commit 3ba8a27

Please sign in to comment.