EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
EPrints::NamedSet - Repository Configuration
$namedset = EPrints::NamedSet->new( "eprint", repository => $repository ); $namedset->add_option( "performance", "my_package" ); $namedset->remove_option( "thesis", "my_package" );
A utility class to manipulate named sets. Add and remove methods are designed to be called by Bazaar Packages
$namedset = EPrints::NamedSet->new( $id, %opts )
$nameset->add_option( $option, $package_name [, $index] )
Add an option to the named set.
If the option already exists and is not core or already beloning to this package then a required_by field is added to the file.
If it already exists, index is ignored.
$namedset->remove_option( $option, $package_name )
Remove an option from the named set.
$ok = $namedset->remove
Remove the namedset from the file system.