Plugin to retrieve metadata from SciELO

Bug #303839 reported by Leonardo Ferreira Fontenelle
2
Affects Status Importance Assigned to Milestone
Referencer
New
Undecided
Unassigned

Bug Description

This plugin is work-in-progress. Discussion was already initiaded in the mailing list. When the issues are fixed I'll attach a new version.

Revision history for this message
Leonardo Ferreira Fontenelle (leonardof) wrote :
Revision history for this message
huang (zwhuang) wrote : Re: [Bug 303839] Re: Plugin to retrieve metadata from SciELO

Hi,
there are some syntax errors in the code.

On Mon, Dec 1, 2008 at 9:56 AM, Leonardo Ferreira Fontenelle
<email address hidden> wrote:
>
> ** Attachment added: "scielo.py"
> http://launchpadlibrarian.net/20083378/scielo.py
>
> --
> Plugin to retrieve metadata from SciELO
> https://bugs.launchpad.net/bugs/303839
> You received this bug notification because you are subscribed to
> Referencer.
>

Revision history for this message
Leonardo Ferreira Fontenelle (leonardof) wrote :

Fixed syntax errors.

The plugin is making Referencer crash. I'm not sure why, but it seems for me that the crash happens when the plugin uses the document.set_field method with a Unicode string instead of an ASCII one. Could anyone please check if that's the reason?

How to reproduce this:

Open a terminal, set LC_ALL and LANG to C or anything except for "pt" or "es", and launch Referencer. Create an empty reference with a DOI from SciELO, e.g. 10.1590/S0102-311X2008001400009, and try to look up for the metadata. Referencer will crash with this outpu:

 title : Benefits of breastfeeding for maternal and child health: an essay on the scientific evidence
 volume : 24
terminate called after throwing an instance of 'std::logic_error'
  what(): basic_string::_S_construct NULL not valid
Aborted

The title was in English, so it was ASCII safe, but not the journal name ("Cadernos de Saúde Pública"). Now, if you pick the "pt" locale, you'll get this output:

terminate called after throwing an instance of 'std::logic_error'
  what(): basic_string::_S_construct NULL not valid
Aborted

In Portuguese the title would be "Benefícios da amamentação para a saúde da mulher e da criança: um ensaio sobre as evidências".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.