mailr9813 - /branches/bmrb/bmrblib/citations/citations.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 27, 2009 - 20:58:
Author: bugman
Date: Tue Oct 27 20:58:05 2009
New Revision: 9813

URL: http://svn.gna.org/viewcvs/relax?rev=9813&view=rev
Log:
Modified the citation label so that the multiple entries wouldn't have the 
same name.


Modified:
    branches/bmrb/bmrblib/citations/citations.py

Modified: branches/bmrb/bmrblib/citations/citations.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/bmrblib/citations/citations.py?rev=9813&r1=9812&r2=9813&view=diff
==============================================================================
--- branches/bmrb/bmrblib/citations/citations.py (original)
+++ branches/bmrb/bmrblib/citations/citations.py Tue Oct 27 20:58:05 2009
@@ -60,7 +60,7 @@
     def add(self, citation_label='citation', authors=None, doi=None, 
pubmed_id=None, full_citation=None, title=None, status='published', 
type='journal', journal_abbrev=None, journal_full=None, volume=None, 
issue=None, page_first=None, page_last=None, year=None):
         """Add the citation information to the data nodes.
 
-        @keyword citation_label:    A label to call the saveframe.
+        @keyword citation_label:    A label to call the saveframe.  If left 
at 'citation', then the citation ID number will be appended.
         @type citation_label:       str
         @keyword authors:           The list of authors.  Each author 
element is a list of four elements: the first name, last name, first initial, 
and middle initials.
         @type authors:              list of lists of str
@@ -131,6 +131,8 @@
         self.citation_id_num = [str(translate(self.citation_num))]
 
         # Initialise the save frame.
+        if citation_label == 'citation':
+            citation_label = 'citation_' + repr(self.citation_num)
         self.frame = SaveFrame(title=citation_label)
 
         # Create the tag categories.




Related Messages


Powered by MHonArc, Updated Tue Oct 27 21:20:02 2009