Package org.dspace.xoai.app.plugins
Class AccessStatusElementItemCompilePlugin
- java.lang.Object
-
- org.dspace.xoai.app.plugins.AccessStatusElementItemCompilePlugin
-
- All Implemented Interfaces:
XOAIExtensionItemCompilePlugin
public class AccessStatusElementItemCompilePlugin extends Object implements XOAIExtensionItemCompilePlugin
AccessStatusElementItemCompilePlugin aims to add structured information about the Access Status of the item (if any). The xoai document will be enriched with a structure like that
Returning Values are based on:<element name="others"> <element name="access-status"> <field name="value">open.access</field> </element> </element> OR <element name="others"> <element name="access-status"> <field name="value">embargo</field> <field name="embargo">2024-10-10</field> </element> </element>- See Also:
DefaultAccessStatusHelper
-
-
Constructor Summary
Constructors Constructor Description AccessStatusElementItemCompilePlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.lyncode.xoai.dataprovider.xml.xoai.MetadataadditionalMetadata(Context context, com.lyncode.xoai.dataprovider.xml.xoai.Metadata metadata, Item item)This method allows plugins to add content to the xoai document generated for the item.
-
-
-
Method Detail
-
additionalMetadata
public com.lyncode.xoai.dataprovider.xml.xoai.Metadata additionalMetadata(Context context, com.lyncode.xoai.dataprovider.xml.xoai.Metadata metadata, Item item)
Description copied from interface:XOAIExtensionItemCompilePluginThis method allows plugins to add content to the xoai document generated for the item.- Specified by:
additionalMetadatain interfaceXOAIExtensionItemCompilePlugin- Parameters:
context- the DSpace Contextmetadata- the basic xoai representation of the item that can be manipulated by the pluginitem- the dspace item to index- Returns:
- the altered xoai metadata
-
-