Permalink
Browse files

don't use SummaryPage to export subject dataobjs

  • Loading branch information...
phluid61 committed Aug 19, 2014
1 parent 88a36fc commit a2c9961170fc0836660c61da1a0968f9c0239609
Showing with 1 addition and 1 deletion.
  1. +1 −1 perl_lib/EPrints/Apache/CRUD.pm
@@ -894,7 +894,7 @@ sub content_negotiate_best_plugin
{
# summary page is higher priority than anything else for /id/eprint/23
# and /id/contents
- if( $self->scope == CRUD_SCOPE_DATAOBJ || $self->scope == CRUD_SCOPE_USER_CONTENTS )
+ if( ( $self->scope == CRUD_SCOPE_DATAOBJ && $self->{database}->base_id ne "subject" ) || $self->scope == CRUD_SCOPE_USER_CONTENTS )

This comment has been minimized.

Show comment
Hide comment
@jiadiyao

jiadiyao Mar 17, 2015

Contributor

This change breaks eprints when opening, e.g. http://local/id/eprint/150
Error :Can't call method "base_id" on an undefined value at /opt/eprints3/perl_lib/EPrints/Apache/CRUD.pm line 897.\n,

@jiadiyao

jiadiyao Mar 17, 2015

Contributor

This change breaks eprints when opening, e.g. http://local/id/eprint/150
Error :Can't call method "base_id" on an undefined value at /opt/eprints3/perl_lib/EPrints/Apache/CRUD.pm line 897.\n,

{
my $plugin = $repo->plugin( "Export::SummaryPage" );
my $mimetype = $plugin->param( "produce" );

1 comment on commit a2c9961

@sebastfr

This comment has been minimized.

Show comment
Hide comment
@sebastfr

sebastfr Mar 17, 2015

Contributor

{database} should read {dataset} ;-)

Contributor

sebastfr commented on a2c9961 Mar 17, 2015

{database} should read {dataset} ;-)

Please sign in to comment.