forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added fn for embargo * using of res policy end_date and added comments * fix string format problem with %s * integration tests are falling down * checkstyle violations * removed findHandle duplicity * added deleted line * checkstyle violations
- Loading branch information
1 parent
dadd1fc
commit 0a0466e
Showing
6 changed files
with
194 additions
and
18 deletions.
There are no files selected for viewing
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
31 changes: 31 additions & 0 deletions
31
...e-oai/src/main/java/org/dspace/xoai/services/impl/resources/functions/GetAvailableFn.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,31 @@ | ||
/** | ||
* The contents of this file are subject to the license and copyright | ||
* detailed in the LICENSE and NOTICE files at the root of the source | ||
* tree and available online at | ||
* | ||
* http://www.dspace.org/license/ | ||
*/ | ||
package org.dspace.xoai.services.impl.resources.functions; | ||
|
||
import org.dspace.utils.SpecialItemService; | ||
|
||
/** | ||
* The GetAvailableFn class extends the StringXSLFunction to provide a custom function | ||
* that retrieves the availability status of an item based on its identifier. | ||
* It uses the SpecialItemService to fetch the available information. | ||
* This function is intended to be used in XSL transformations where the | ||
* "getAvailable" function is called with an item's identifier as a parameter. | ||
* | ||
* @author Michaela Paurikova(michaela.paurikova at dataquest.sk) | ||
*/ | ||
public class GetAvailableFn extends StringXSLFunction { | ||
@Override | ||
protected String getFnName() { | ||
return "getAvailable"; | ||
} | ||
|
||
@Override | ||
protected String getStringResult(String param) { | ||
return SpecialItemService.getAvailable(param); | ||
} | ||
} |
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