Closed (outdated)
Project:
Bibliography Module
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2012 at 01:18 UTC
Updated:
21 Dec 2018 at 20:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
stackpr commentedThis is similar to #932566: retaining DOI number in node, but that appears to relate to a bug in the node-add UI, whereas this focuses on the edit form.
Comment #2
rjerome commentedThis doesn't work when creating a new node, since there is no $form['#node']->nid value yet...
Comment #3
stackpr commentedIt might not be glorious, but it works. The empty nid would be cast to 0. Since there is never a nid=0 in the node table, the query would still work.
It could achieve the same thing if it were to run a different query when the nid is not set, simply without the nid condition.
Comment #4
rjerome commentedThe reason I brought this up is that it didn't work at all when I tested it creating a new node. I always got a "conflict" error pointing to a node that didn't have any DOI attached to it. I didn't chase it down very much, so I can't tell you why at this point.
Ron.
Comment #5
stackpr commentedCorrected patch attached. It was not accounting for empty dois. I have quite a few other customizations at this point, but I think that I extracted the relevant patch info.
Comment #6
stackpr commentedCorrected patch (typo when manually adjusting).
Comment #7
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.