borisveytsman / crossrefware

4 stars 0 forks source link

Bug on bibzbladd #12

Closed pauloney closed 6 years ago

pauloney commented 6 years ago

Line 193 of bibzbladd shoud be changed from:

if ($response->decoded_content =~ /^\s*"zbl_id":\s*"(.*)",\s*$/m) {

to

if ($response->decoded_content =~ /^\s*"zbl_id":\s*"(.*)",?\s*$/m) {

as instructed by Boris, otherwise it is not capable of picking up the ZBL field from the http request answer, as shown on this debug run:

DEBUG:  response: {
  "results": [
    {
      "authors": "Zarkhin, Yu.G.",
      "pagination": "415-419",
      "score": 5.349830150604248,
      "source": "Mat. Zametki 15, 415-419 (1974).",
      "title": "Noncommutative cohomologies and Mumford groups",
      "year": "1974",
      "zbl_id": "0289.14009"
    }
  ]
}

DEBUG: Did not get zbl