Tk::MARC::Record - megawidget for editing MARC::Record objects.
use Tk; use Tk::MARC::Record; use MARC::Record use MARC::File::USMARC; # Get a record my $file = MARC::File::USMARC->in( "records.mrc" ); my $record = $file->next(); $file->close(); undef $file my $mw = MainWindow->new; my $TkMARC = $mw->MARC_Record(-record => $record)->pack; my $new_rec; $mw->Button(-text = "Save", -command => sub { $new_rec = $TkMARC->get() } ); MainLoop;
This is a megawidget that allows editing of a MARC::Record object. The widget does not change the MARC::Record, it creates a new MARC::Record when the get() routine is invoked.
The widget is basically a collection of Tk::MARC::Field widgets, which handle the editing of individual fields within the record.
David Christensen, <DChristensenSPAMLESS@westman.wave.ca>
Copyright 2004 by David Christensen
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Tk::MARC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::MARC
CPAN shell
perl -MCPAN -e shell install Tk::MARC
For more information on module installation, please visit the detailed CPAN module installation guide.