Ticket #3827 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

DOI import - set first page and last page

Reported by: tmb Owned by:
Priority: Customer Report Milestone: EPrints 3.2.x (general bugs/features for 3.2)
Component: Import Version: 3.2
Severity: normal Keywords:
Cc:

Description

DOI import currently only sets first page.

Change History

Changed 4 years ago by tmb

--- perl_lib/EPrints/Plugin/Import/DOI.pm       (revision 97)
+++ perl_lib/EPrints/Plugin/Import/DOI.pm       (working copy)
@@ -232,6 +232,13 @@
        {
                $epdata->{pagerange} = $data->{"first_page"};
        }
+       if( defined $data->{"last_page"} )
+       {
+               $epdata->{pagerange} = "" unless defined $epdata->{pagerange};
+               $epdata->{pagerange} .= "-" . $data->{"last_page"};
+       }
 
        if( defined $data->{"doi.conference_paper"} )
        {

Changed 4 years ago by pm705@…

  • status changed from new to closed
  • resolution set to fixed

Fixed on trunk r5728. merged on 3.2 r5729

Note: See TracTickets for help on using tickets.