Diff for /MPIWGWeb/bibliography.py between versions 1.5 and 1.7.2.1

version 1.5, 2004/11/16 15:15:23 version 1.7.2.1, 2005/10/10 08:42:49
Line 12  def getBib(value): Line 12  def getBib(value):
         return value          return value
     else:      else:
         return ""          return ""
 def formatBiblHelp(self,found,table,id):  def formatBiblHelp(self,found,table,id,foundIB=None):
     ret=""      ret=""
       if not foundIB:
     try:      try:
         foundIB=self.ZSQLInlineSearch(_table=table,id=id)[0]          foundIB=self.ZSQLInlineSearch(_table=table,id=id)[0]
   
Line 31  def formatBiblHelp(self,found,table,id): Line 32  def formatBiblHelp(self,found,table,id):
   
     elif foundIB.reference_type.lower()=='edited book':      elif foundIB.reference_type.lower()=='edited book':
         ret+=foundIB.author_semi_colon+" (Editor/s). <i>"+foundIB.title+"</i>."          ret+=foundIB.author_semi_colon+" (Editor/s). <i>"+foundIB.title+"</i>."
         if not foundIB.place_published=='':          if foundIB.place_published and (not foundIB.place_published==''):
             ret+=foundIB.place_published+": "              ret+=foundIB.place_published+": "
         if not foundIB.publisher=='':          if foundIB.publisher and (not foundIB.publisher==''):
             ret+=foundIB.publisher+", "              ret+=foundIB.publisher+", "
         ret+=foundIB.year+"."          ret+=foundIB.year+"."
   
     elif foundIB.reference_type.lower()=='book section':      elif foundIB.reference_type.lower()=='book section':
         ret+=foundIB.author_semi_colon+". &quot;"+foundIB.title+".&quot; In <i>"+foundIB.secondary_title+"</i>"          ret+=getBib(foundIB.author_semi_colon)+". &quot;"+getBib(foundIB.title)+".&quot; In <i>"+getBib(foundIB.secondary_title)+"</i>"
         if (foundIB.secondary_author_semi_colon) and (not foundIB.secondary_author_semi_colon==''):          if (foundIB.secondary_author_semi_colon) and (not foundIB.secondary_author_semi_colon==''):
             ret+=", eds.: "+foundIB.secondary_author_semi_colon              ret+=", eds.: "+foundIB.secondary_author_semi_colon
         ret+=". "          ret+=". "
Line 53  def formatBiblHelp(self,found,table,id): Line 54  def formatBiblHelp(self,found,table,id):
         ret+=foundIB.author_semi_colon+". <i>"+foundIB.title+"</i>. "          ret+=foundIB.author_semi_colon+". <i>"+foundIB.title+"</i>. "
         if foundIB.pages and (not foundIB.pages==''):          if foundIB.pages and (not foundIB.pages==''):
             ret+=foundIB.pages+". "              ret+=foundIB.pages+". "
         if not foundIB.place_published=='':          if foundIB.place_published and (not foundIB.place_published==''):
             ret+=foundIB.place_published+": "              ret+=foundIB.place_published+": "
         if not foundIB.publisher=='':          if foundIB.publisher and (not foundIB.publisher==''):
             ret+=foundIB.publisher+", "              ret+=foundIB.publisher+", "
         ret+=foundIB.year+"."          ret+=foundIB.year+"."
   
     elif foundIB.reference_type.lower()=='newspaper article':      elif foundIB.reference_type.lower()=='newspaper article':
         ret+=foundIB.author_semi_colon+". &quot;"+foundIB.title+".&quot; <i>"+foundIB.secondary_title+"</i>, "          ret+=foundIB.author_semi_colon+". &quot;"+foundIB.title+".&quot; <i>"+foundIB.secondary_title+"</i>, "
         ret+=foundIB.date+"."+foundIB.year+","          ret+=foundIB.date+"."+foundIB.year+","
         if not foundIB.pages=='':          if foundIB.pages and (not foundIB.pages==''):
             ret+=foundIB.pages+". "              ret+=foundIB.pages+". "
   
   

Removed from v.1.5  
changed lines
  Added in v.1.7.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>