strip "http://dx.doi.org/" etc from DOI

Bug #385913 reported by Sebastian Busch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Referencer
Fix Released
Undecided
Unassigned

Bug Description

When using "Add Reference with ID...", it would be useful if not only the input of the DOI itself but also in the forms

* doi:<DOI> (cf. https://bugs.launchpad.net/referencer/+bug/125495/comments/1)
* doi: <DOI>
* [spaces]<DOI>[spaces]
* http://dx.doi.org/<DOI>

would be allowed.

This would allow to faster copy & paste DOIs from various websites.

Thanks already now for this gorgeous feature of ID imports!
Sebastian.

Revision history for this message
John S (jcspray) wrote :

Fix committed: strip the following leading tokens:
"doi:"
"doi: "
"http://dx.doi.org/"
"dx.doi.org/"

(whitespace was already being stripped)

Changed in referencer:
status: New → Fix Committed
Changed in referencer:
milestone: none → 1.2.0
Changed in referencer:
status: Fix Committed → Fix Released
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.