Skip to content

Commit

Permalink
117682: feedback - dc.filtermedia.lastdate to dspace.filtermedia.last…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
Atmire-Kristof committed Jan 30, 2025
1 parent 52b79fe commit 61d4665
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void applyFiltersAllItems(Context context) throws Exception {
boolean storeLastDate = false;
if (fromDate == null) {
storeLastDate = true;
String lastDate = siteService.getMetadata(siteService.findSite(context), "dc.filtermedia.lastdate");
String lastDate = siteService.getMetadata(siteService.findSite(context), "dspace.filtermedia.lastdate");
if (lastDate != null) {
fromDate = new DCDate(lastDate).toDate();
}
Expand Down Expand Up @@ -151,9 +151,9 @@ public void applyFiltersAllItems(Context context) throws Exception {
}
if (storeLastDate) {
siteService.clearMetadata(context, siteService.findSite(context),
"dc", "filtermedia", "lastdate", Item.ANY);
"dspace", "filtermedia", "lastdate", Item.ANY);
siteService.addMetadata(context, siteService.findSite(context),
"dc", "filtermedia", "lastdate", null,
"dspace", "filtermedia", "lastdate", null,
new DCDate(new Date()).toString());
siteService.update(context, siteService.findSite(context));
}
Expand Down
7 changes: 7 additions & 0 deletions dspace/config/registries/dspace-types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,11 @@
<scope_note>Stores the timestamp related to the user authentication on ORCID</scope_note>
</dc-type>

<dc-type>
<schema>dspace</schema>
<element>filtermedia</element>
<qualifier>lastdate</qualifier>
<scope_note>Last date filter-media was run</scope_note>
</dc-type>

</dspace-dc-types>
7 changes: 0 additions & 7 deletions dspace/config/registries/dublin-core-types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,6 @@
<scope_note>Recommend for theses/dissertations.</scope_note>
</dc-type>

<dc-type>
<schema>dc</schema>
<element>filtermedia</element>
<qualifier>lastdate</qualifier>
<scope_note>Last date filter-media was run</scope_note>
</dc-type>

<dc-type>
<schema>dc</schema>
<element>identifier</element>
Expand Down

0 comments on commit 61d4665

Please sign in to comment.