← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3595: Add an opportunity to list works, other than master thesis.

 

------------------------------------------------------------
revno: 3595
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Fri 2015-02-20 12:11:52 +0100
message:
  Add an opportunity to list works, other than master thesis.
modified:
  doc/sphinx/bib2rst.py


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'doc/sphinx/bib2rst.py'
--- doc/sphinx/bib2rst.py	2011-02-11 18:26:51 +0000
+++ doc/sphinx/bib2rst.py	2015-02-20 11:11:52 +0000
@@ -62,7 +62,10 @@
 		elif type=='phdthesis':
 			line+='%s (%s), **%s**. PhD thesis at *%s*.'%(author,i['year'],i['title'],i['school'])
 		elif type=='mastersthesis':
-			line+='%s (%s), **%s**. Master thesis at *%s*.'%(author,i['year'],i['title'],i['school'])
+			typeThesis = 'Master thesis'
+			if i.has_key('note'):
+				typeThesis = i['note']
+			line+='%s (%s), **%s**. %s at *%s*.'%(author,i['year'],i['title'],typeThesis,i['school'])
 		elif type=='proceedings':
 			if i.has_key('editor'): line+='%s (ed.), '%i['editor']
 			line+='**%s** (%s).'%(i['title'],i['year'])
@@ -77,7 +80,7 @@
 		def escapeUrl(url): return url.replace('<','%3c').replace('>','%3e')
 		if i.has_key('doi'): line+=' DOI `%s <http://dx.doi.org/%s>`_'%(i['doi'],escapeUrl(i['doi'])) 
 		if i.has_key('url'): line+=' `(fulltext) <%s>`__'%escapeUrl(i['url'])
-		if i.has_key('note'): line+=' (%s)'%i['note']
+		if (i.has_key('note') and type<>'mastersthesis'): line+=' (%s)'%i['note']
 		ret.append(line)
 	return [l.replace('@tilde@','~') for l in ret]
 


Follow ups