WebService::Kramerius::API4::Rights - Class to rights endpoint in Kramerius v4+ API.
use WebService::Kramerius::API4::Rights; my $obj = WebService::Kramerius::API4::Rights->new(%params); my $rights = $obj->rights($opts_hr);
new
my $obj = WebService::Kramerius::API4::Rights->new(%params);
Constructor.
library_url
Library URL.
This parameter is required.
Default value is undef.
output_dispatch
Output dispatch hash structure. Key is content-type and value is subroutine, which converts content to what do you want.
Default value is blank hash array.
Returns instance of object.
rights
my $rights = $obj->rights($opts_hr);
Get rights info of Kramerius system.
Structure $opts_hr could contain keys:
$opts_hr
actions
pid
Returns string with JSON.
new(): Parameter 'library_url' is required. From Class::Utils::set_params(): Unknown parameter '%s'.
use strict; use warnings; use WebService::Kramerius::API4::Rights; if (@ARGV < 1) { print STDERR "Usage: $0 library_url\n"; exit 1; } my $library_url = $ARGV[0]; my $obj = WebService::Kramerius::API4::Rights->new( 'library_url' => $library_url, ); my $rights_json = $obj->rights; print $rights_json."\n"; # Output for 'http://kramerius.mzk.cz/', pretty print. # { # "replikator_periodicals": false, # "show_print_menu": false, # "show_client_print_menu": true, # "import": false, # "rightsadmin": false, # "convert": false, # "import_k4_replications": false, # "delete": false, # "aggregate": true, # "display_admin_menu": false, # "show_alternative_info_text": false, # "export_k4_replications": false, # "pdf_resource": true, # "enumerator": false, # "show_client_pdf_menu": true, # "export": false, # "replicationrights": false, # "editor": false, # "read": true, # "reindex": false, # "setprivate": false, # "export_cdk_replications": false, # "virtualcollection_manage": false, # "replikator_k3": false, # "sort": false, # "ndk_mets_import": false, # "setpublic": false, # "dnnt_admin": false, # "rightssubadmin": false, # "show_statictics": false, # "manage_lr_process": false, # "criteria_rights_manage": false, # "replikator_monographs": false, # "administrate": false, # "edit_info_text": false # }
WebService::Kramerius::API4::Base.
https://github.com/michal-josef-spacek/WebService-Kramerius-API4
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© Michal Josef Špaček 2015-2023
BSD 2-Clause License
0.02
To install WebService::Kramerius::API4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Kramerius::API4
CPAN shell
perl -MCPAN -e shell install WebService::Kramerius::API4
For more information on module installation, please visit the detailed CPAN module installation guide.