Last active
July 30, 2020 21:37
-
-
Save jesusbagpuss/b1720d3ea23ac1ff7201a3263a247713 to your computer and use it in GitHub Desktop.
Possible fix for eprint item_issues not being exported in v3.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is the block from EPrints::DataObj::EPrint, but with: | |
# export_as_xml => 1 | |
# and | |
# replace_core => 1 (to overwrite the default field) | |
push @{ $c->{fields}->{eprint} }, | |
{ name=>"item_issues", type=>"compound", multiple=>1, | |
fields => [ | |
{ | |
sub_name => "id", | |
type => "id", | |
text_index => 0, | |
}, | |
{ | |
sub_name => "type", | |
type => "id", | |
text_index => 0, | |
sql_index => 1, | |
}, | |
{ | |
sub_name => "description", | |
type => "longtext", | |
text_index => 0, | |
render_single_value => "EPrints::Extras::render_xhtml_field", | |
}, | |
{ | |
sub_name => "timestamp", | |
type => "time", | |
}, | |
{ | |
sub_name => "status", | |
type => "set", | |
text_index => 0, | |
options=> [qw/ discovered ignored reported autoresolved resolved /], | |
}, | |
{ | |
sub_name => "reported_by", | |
type => "itemref", | |
datasetid => "user", | |
}, | |
{ | |
sub_name => "resolved_by", | |
type => "itemref", | |
datasetid => "user", | |
}, | |
{ | |
sub_name => "comment", | |
type => "longtext", | |
text_index => 0, | |
render_single_value => "EPrints::Extras::render_xhtml_field", | |
}, | |
], | |
make_value_orderkey => "EPrints::DataObj::EPrint::order_issues_newest_open_timestamp", | |
render_value=>"EPrints::DataObj::EPrint::render_issues", | |
volatile => 1, | |
export_as_xml => 1, | |
replace_core => 1, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment