EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10364


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Access Namedset values from EPS


Hi Alan,

I believe the tags function should work on both set and namedset fields.  E.g.

my $eprint_ds = $repo->dataset( 'eprint' );
my @types = $eprint_ds->get_field( 'type' )->tags; # namedset
my @statuses = $eprint_ds->get_field( 'eprint_status' )->tags; # set
use Data::Dumper;
print STDERR "types: ".Dumper( @types )."\n\n";
print STDERR "statuses: ".Dumper( @statuses )."\n";

I will look into adding an "Additional Functions" section to each of the MetaField pages listed under https://wiki.eprints.org/w/Category:EPrints_Metadata_Fields

Regards

David Newman

On 29/04/2026 10:43, Alan.Stiles [He/Him/They] wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Hi,
Am I missing a mechanism to access the options of a Namedset outside of an input metafield? e.g. in an EPScript or perl script? I’m not seeing anything in the wiki or looking at the code.

Cheers,

Alan

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/