From: Tim Brody <tdb2 AT ecs.soton.ac.uk>
Date: Thu, 18 Mar 2010 09:26:30 +0000
| Threading: | ↑ [EP-tech] Re: EPrint "can't call method get value" error from cannulli AT luiss.it • This Message |
I guess this is a missing field that is referenced in your citation or
workflow files.
Naming a field with a dash (co-supervisor) may cause problems. Just use
[a-z] and '_'.
All the best,
Tim.
On Tue, 2010-03-16 at 08:53 +0100, Chiara Annulli wrote:
> Hi Tim,
> this is our eprints_fields.pl. As you can see I’ve commented the new
> fields we had added, but it’s still not working …
>
> $c->{fields}->{eprint} = [
>
>
>
> # {
>
> # 'name' => 'supervisor',
>
> # 'type' => 'compound',
>
> # 'multiple' => 1,
>
> # 'fields' => [
>
> # {
>
> # 'sub_name' => 'name',
>
> # 'type' => 'name',
>
> # 'hide_honourific' => 1,
>
> # 'hide_lineage' => 1,
>
> # 'family_first' => 1,
>
> # },
>
> # {
>
> # 'sub_name' => 'id',
>
> # 'type' => 'text',
>
> # 'input_cols' => 20,
>
> # 'allow_null' => 1,
>
> # }
>
> # ],
>
> # 'input_boxes' => 1,
>
> # },
>
>
>
> # {
>
> # 'name' => 'co-supervisor',
>
> # 'type' => 'compound',
>
> # 'multiple' => 1,
>
> # 'fields' => [
>
> # {
>
> # 'sub_name' => 'name',
>
> # 'type' => 'name',
>
> # 'hide_honourific' => 1,
>
> # 'hide_lineage' => 1,
>
> # 'family_first' => 1,
>
> # },
>
> # {
>
> # 'sub_name' => 'id',
>
> # 'type' => 'text',
>
> # 'input_cols' => 20,
>
> # 'allow_null' => 1,
>
> # }
>
> # ],
>
> # 'input_boxes' => 1,
>
> # },
>
>
>
> # {
>
> # 'name' => 'academic_year',
>
> # 'type' => 'text',
>
> # },
>
>
>
> # {
>
> # 'name' => 'chair',
>
> # 'type' => 'text',
>
> # 'required' => '1',
>
> # },
>
>
>
> # {
>
> # 'name' => 'session',
>
> # 'type' => 'set',
>
> # 'options' => [
>
> # 'Summer',
>
> # 'Autumn',
>
> # 'Extraordinary',
>
> # ],
>
> # 'input_style' => 'medium',
>
> # 'required' => '1',
>
> # },
>
>
>
> # {
>
> # 'name' => 'ep_language',
>
> # 'type' => 'subject',
>
> # 'multiple' => 1,
>
> # 'top' => 'ep_language',
>
> # 'browse_link' => 'ep_language',
>
> # },
>
>
>
> {
>
> 'name' => 'creators',
>
> 'type' => 'compound',
>
> 'multiple' => 1,
>
> 'fields' => [
>
> {
>
> 'sub_name' => 'name',
>
> 'type' => 'name',
>
> 'hide_honourific' => 1,
>
> 'hide_lineage' => 1,
>
> 'family_first' => 1,
>
> },
>
> {
>
> 'sub_name' => 'id',
>
> 'type' => 'text',
>
> 'input_cols' => 20,
>
> 'allow_null' => 1,
>
> }
>
> ],
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'corp_creators',
>
> 'type' => 'text',
>
> 'multiple' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'title',
>
> 'type' => 'longtext',
>
> 'input_rows' => 3,
>
> },
>
>
>
> {
>
> 'name' => 'ispublished',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'pub',
>
> 'inpress',
>
> 'submitted',
>
> 'unpub',
>
> ],
>
> 'input_style' => 'medium',
>
> },
>
>
>
> {
>
> 'name' => 'subjects',
>
> 'type' => 'subject',
>
> 'multiple' => 1,
>
> 'top' => 'subjects',
>
> 'render_input' =>
> 'EPrints::Extras::subject_browser_input',
>
> 'browse_link' => 'subjects',
>
> },
>
>
>
> {
>
> 'name' => 'divisions',
>
> 'type' => 'subject',
>
> 'multiple' => 1,
>
> 'top' => 'divisions',
>
>
>
> },
>
>
>
> {
>
> 'name' => 'full_text_status',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'public',
>
> 'restricted',
>
> 'none',
>
> ],
>
> 'input_style' => 'medium',
>
> },
>
>
>
> {
>
> 'name' => 'monograph_type',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'technical_report',
>
> 'project_report',
>
> 'documentation',
>
> 'manual',
>
> 'working_paper',
>
> 'discussion_paper',
>
> 'other',
>
> ],
>
> 'input_style' => 'medium',
>
> },
>
>
>
> {
>
> 'name' => 'pres_type',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'paper',
>
> 'lecture',
>
> 'speech',
>
> 'poster',
>
> 'keynote',
>
> 'other',
>
> ],
>
> 'input_style' => 'medium',
>
> },
>
>
>
> {
>
> 'name' => 'keywords',
>
> 'type' => 'longtext',
>
> 'input_rows' => 2,
>
> },
>
>
>
> {
>
> 'name' => 'note',
>
> 'type' => 'longtext',
>
> 'input_rows' => 3,
>
> },
>
>
>
> {
>
> 'name' => 'suggestions',
>
> 'type' => 'longtext',
>
> 'render_value' =>
> 'EPrints::Extras::render_highlighted_field',
>
> },
>
>
>
> {
>
> 'name' => 'abstract',
>
> 'type' => 'longtext',
>
> 'input_rows' => 10,
>
> },
>
>
>
> {
>
> 'name' => 'date',
>
> 'type' => 'date',
>
> 'min_resolution' => 'year',
>
> },
>
>
>
> {
>
> 'name' => 'date_type',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'published',
>
> 'submitted',
>
> 'completed',
>
> ],
>
> 'input_style' => 'medium',
>
> },
>
>
>
> {
>
> 'name' => 'series',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'publication',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'volume',
>
> 'type' => 'text',
>
> 'maxlength' => 6,
>
> },
>
>
>
> {
>
> 'name' => 'number',
>
> 'type' => 'text',
>
> 'maxlength' => 6,
>
> },
>
>
>
> {
>
> 'name' => 'publisher',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'place_of_pub',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'pagerange',
>
> 'type' => 'pagerange',
>
> },
>
>
>
> {
>
> 'name' => 'pages',
>
> 'type' => 'int',
>
> 'maxlength' => 6,
>
> 'sql_index' => 0,
>
> },
>
>
>
> {
>
> 'name' => 'event_title',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'event_location',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'event_dates',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'event_type',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'conference',
>
> 'workshop',
>
> 'other',
>
> ],
>
> 'input_style' => 'medium',
>
> },
>
>
>
> {
>
> 'name' => 'id_number',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'patent_applicant',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'institution',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'department',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'thesis_type',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'masters',
>
> 'phd',
>
> 'engd',
>
> 'other',
>
> ],
>
> 'input_style' => 'medium',
>
> },
>
>
>
> {
>
> 'name' => 'refereed',
>
> 'type' => 'boolean',
>
> 'input_style' => 'radio',
>
> },
>
>
>
> {
>
> 'name' => 'isbn',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'issn',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'book_title',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'editors',
>
> 'type' => 'compound',
>
> 'multiple' => 1,
>
> 'fields' => [
>
> {
>
> 'hide_honourific' => 1,
>
> 'type' => 'name',
>
> 'hide_lineage' => 1,
>
> 'family_first' => 1,
>
> 'sub_name' => 'name',
>
> },
>
> {
>
> 'input_cols' => 20,
>
> 'allow_null' => 1,
>
> 'type' => 'text',
>
> 'sub_name' => 'id',
>
> }
>
> ],
>
> 'input_boxes' => 4,
>
> },
>
>
>
> {
>
> 'name' => 'official_url',
>
> 'type' => 'url',
>
> },
>
>
>
> {
>
> 'name' => 'related_url',
>
> 'type' => 'compound',
>
> 'multiple' => 1,
>
> 'fields' => [
>
> {
>
> 'sub_name' => 'url',
>
> 'type' => 'url',
>
> 'input_cols' => 40,
>
> },
>
> {
>
> 'sub_name' => 'type',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'pub',
>
> 'author',
>
> 'org',
>
> ],
>
> }
>
> ],
>
> 'input_boxes' => 1,
>
> 'input_ordered' => 0,
>
> },
>
>
>
> {
>
> 'name' => 'referencetext',
>
> 'type' => 'longtext',
>
> 'input_rows' => 15,
>
> },
>
>
>
> {
>
> 'name' => 'funders',
>
> 'type' => 'text',
>
> 'multiple' => 1,
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'projects',
>
> 'type' => 'text',
>
> 'multiple' => 1,
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'output_media',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'exhibitors',
>
> 'type' => 'compound',
>
> 'multiple' => 1,
>
> 'fields' => [
>
> {
>
> 'sub_name' => 'name',
>
> 'type' => 'name',
>
> 'hide_honourific' => 1,
>
> 'hide_lineage' => 1,
>
> 'family_first' => 1,
>
> },
>
> {
>
> 'sub_name' => 'id',
>
> 'type' => 'text',
>
> 'input_cols' => 20,
>
> 'allow_null' => 1,
>
> }
>
> ],
>
> 'input_boxes' => 2,
>
> },
>
>
>
> {
>
> 'name' => 'num_pieces',
>
> 'type' => 'int',
>
> },
>
>
>
> {
>
> 'name' => 'composition_type',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'producers',
>
> 'type' => 'compound',
>
> 'multiple' => 1,
>
> 'fields' => [
>
> {
>
> 'sub_name' => 'name',
>
> 'type' => 'name',
>
> 'hide_honourific' => 1,
>
> 'hide_lineage' => 1,
>
> 'family_first' => 1,
>
> },
>
> {
>
> 'sub_name' => 'id',
>
> 'type' => 'text',
>
> 'input_cols' => 20,
>
> 'allow_null' => 1,
>
> }
>
> ],
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'conductors',
>
> 'type' => 'compound',
>
> 'multiple' => 1,
>
> 'fields' => [
>
> {
>
> 'sub_name' => 'name',
>
> 'type' => 'name',
>
> 'hide_honourific' => 1,
>
> 'hide_lineage' => 1,
>
> 'family_first' => 1,
>
> },
>
> {
>
> 'sub_name' => 'id',
>
> 'type' => 'text',
>
> 'input_cols' => 20,
>
> 'allow_null' => 1,
>
> }
>
> ],
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'lyricists',
>
> 'type' => 'compound',
>
> 'multiple' => 1,
>
> 'fields' => [
>
> {
>
> 'sub_name' => 'name',
>
> 'type' => 'name',
>
> 'hide_honourific' => 1,
>
> 'hide_lineage' => 1,
>
> 'family_first' => 1,
>
> },
>
> {
>
> 'sub_name' => 'id',
>
> 'type' => 'text',
>
> 'input_cols' => 20,
>
> 'allow_null' => 1,
>
> }
>
> ],
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'accompaniment',
>
> 'type' => 'text',
>
> 'multiple' => 1,
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'data_type',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'pedagogic_type',
>
> 'type' => 'set',
>
> 'options' => [
>
> 'presentation',
>
> 'activity',
>
> 'case',
>
> 'enquiry',
>
> 'problem',
>
> 'collaboration',
>
> 'communication',
>
> ],
>
> },
>
>
>
> {
>
> 'name' => 'completion_time',
>
> 'type' => 'text',
>
> },
>
>
>
> {
>
> 'name' => 'task_purpose',
>
> 'type' => 'longtext',
>
> },
>
>
>
> {
>
> 'name' => 'skill_areas',
>
> 'type' => 'text',
>
> 'multiple' => 1,
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'copyright_holders',
>
> 'type' => 'text',
>
> 'multiple' => 1,
>
> 'input_boxes' => 1,
>
> },
>
>
>
> {
>
> 'name' => 'learning_level',
>
> 'type' => 'text',
>
> },
>
>
>
> ];
>
>
>
> From: Tim Brody <tdb2 AT ecs.soton.ac.uk>
> Date: Mon, 15 Mar 2010 16:09:22 +0000
>
>
>
> Threading:
>
>
> ↑ [EP-tech] EPrint "can't call
> method get value" error from
> cannulli AT luiss.it
> • This Message
>
>
> Can you post your eprints_fields.pl please.
>
> Thanks,
> Tim.
>
> On Mon, 2010-03-15 at 17:00 +0100, Chiara Annulli wrote:
> > Hi!
> >
> > We’re personalizing our EP archive for thesis, but today we
> > encountered this error: after having modified (without any problem)
> > eprints_fields.pl, eprints_fields.xml and the Workflow default.xml, ↵
we
> > cannot deposit any item neither edit it from the “Manage ↵
deposits”
> > screen. The error is:
> >
> >
> >
> > Can't call method "get_value" on unblessed reference
> > at /usr/share/eprints3/perl_lib/EPrints/DataObj.pm line 404.
> >
> >
> >
> > I’ve seen another similar thread, but I couldn’t understand if a
> > solution was found and, if yes, which it was.
> >
> >
> >
> > I’ve tried also to upload the old files again, but now it seems not
> > working anymore …
> >
> >
> >
> > Thanks!
> >
> > Chiara Annulli
>
>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/