version 1.7.2.2, 2005/10/11 13:14:01
|
version 1.7.2.9, 2008/10/22 15:37:47
|
Line 18 def getBib(value):
|
Line 18 def getBib(value):
|
return value |
return value |
else: |
else: |
return "" |
return "" |
|
|
def formatBiblHelp(self,found,table,id,foundIB=None): |
def formatBiblHelp(self,found,table,id,foundIB=None): |
ret="" |
ret="" |
if not foundIB: |
if not foundIB: |
try: |
try: |
foundIB=self.ZSQLInlineSearch(_table=table,id=id)[0] |
foundIB=self.ZSQLInlineSearch(_table=table,id=id,_op_id="eq")[0] |
|
|
except: |
except: |
return ret |
return ret |
|
|
if foundIB.reference_type.lower()=='journal article': |
if foundIB.reference_type.lower()=='journal article': |
|
|
ret+=getBib(CRListToSemicolon(foundIB.author))+". ""+getBib(foundIB.title)+". " "+"<i>%s</i>"%getBib(foundIB.secondary_title)+" "+getBib(foundIB.volume)+" (" |
ret+=getBib(CRListToSemicolon(foundIB.author))+". ""+getBib(foundIB.title)+". " "+"<i>%s</i>"%getBib(foundIB.secondary_title)+" "+getBib(foundIB.volume)+" (" |
if not self.ZSQLisEmpty(foundIB.number): |
if not self.ZSQLisEmpty(foundIB.number): |
ret+=foundIB.number+" " |
ret+=foundIB.number+" " |
ret+=foundIB.year+")" |
|
|
if foundIB.year: |
|
ret+=getattr(foundIB,'year','') |
|
ret+=")" |
if foundIB.pages and (not foundIB.pages)=='': |
if foundIB.pages and (not foundIB.pages)=='': |
ret+=": "+foundIB.pages+"." |
ret+=": "+foundIB.pages+"." |
|
|
elif foundIB.reference_type.lower()=='edited book': |
elif foundIB.reference_type.lower()=='edited book': |
ret+=CRListToSemicolon(foundIB.author)+" (Editor/s). <i>"+foundIB.title+"</i>." |
if foundIB.author: |
|
ret+=CRListToSemicolon(foundIB.author)+" (Editor/s). " |
|
if foundIB.title and (not foundIB.title==""): |
|
ret+="<i>"+foundIB.title+"</i>. " |
if foundIB.place_published and (not foundIB.place_published==''): |
if foundIB.place_published and (not foundIB.place_published==''): |
ret+=foundIB.place_published+": " |
ret+=foundIB.place_published+": " |
if foundIB.publisher and (not foundIB.publisher==''): |
if foundIB.publisher and (not foundIB.publisher==''): |
ret+=foundIB.publisher+", " |
ret+=foundIB.publisher+", " |
ret+=foundIB.year+"." |
ret+=getBib(foundIB.year)+"." |
|
|
elif foundIB.reference_type.lower()=='book section': |
elif foundIB.reference_type.lower()=='book section' or foundIB.reference_type.lower()=='in book': |
ret+=getBib(CRListToSemicolon(foundIB.author))+". ""+getBib(foundIB.title)+"." In <i>"+getBib(foundIB.secondary_title)+"</i>" |
ret+=getBib(CRListToSemicolon(foundIB.author))+". ""+getBib(foundIB.title)+"." In: <i>"+getBib(foundIB.secondary_title)+"</i>" |
if (CRListToSemicolon(foundIB.secondary_author)) and (not CRListToSemicolon(foundIB.secondary_author)==''): |
if (CRListToSemicolon(foundIB.secondary_author)) and (not CRListToSemicolon(foundIB.secondary_author)==''): |
ret+=", eds.: "+CRListToSemicolon(foundIB.secondary_author) |
ret+=", eds.: "+CRListToSemicolon(foundIB.secondary_author) |
ret+=". " |
ret+=". " |
Line 55 def formatBiblHelp(self,found,table,id,f
|
Line 61 def formatBiblHelp(self,found,table,id,f
|
ret+=foundIB.place_published+": " |
ret+=foundIB.place_published+": " |
if foundIB.publisher and (not foundIB.publisher==''): |
if foundIB.publisher and (not foundIB.publisher==''): |
ret+=foundIB.publisher+", " |
ret+=foundIB.publisher+", " |
ret+=foundIB.year+"." |
ret+=getBib(foundIB.year)+"." |
|
|
|
|
elif foundIB.reference_type.lower()=='book': |
elif foundIB.reference_type.lower()=='book': |
ret+=getBib(CRListToSemicolon(foundIB.author))+". <i>"+getBib(foundIB.title)+"</i>. " |
ret+=getBib(CRListToSemicolon(foundIB.author))+". <i>"+getBib(foundIB.title)+"</i>. " |
if foundIB.pages and (not foundIB.pages==''): |
# if foundIB.pages and (not foundIB.pages==''): |
ret+=foundIB.pages+". " |
#% ret+=foundIB.pages+". " |
if foundIB.place_published and (not foundIB.place_published==''): |
if foundIB.place_published and (not foundIB.place_published==''): |
ret+=foundIB.place_published+": " |
ret+=foundIB.place_published+": " |
if foundIB.publisher and (not foundIB.publisher==''): |
if foundIB.publisher and (not foundIB.publisher==''): |