Changeset 1191 for trunk/UTIL


Ignore:
Timestamp:
Feb 27, 2014, 4:56:48 PM (11 years ago)
Author:
aslmd
Message:

BIBWEB : option to remove months. bug fix for accents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/bibweb/ads.py

    r1179 r1191  
    2727             printnum = False,
    2828             verbose = True,
     29             includemonth = False,
    2930             target = None):
    3031
     
    6667      print >> bibfile,html
    6768      bibfile.close()
     69      ## includemonth or not
     70      if not includemonth:
     71        existing = open(linkads+'.bib','r').readlines()
     72        new = open(linkads+'.bib','w')
     73        for lines in existing:
     74         if "month" not in lines:
     75          new.write(lines)
     76        new.close()
    6877   
    6978    ### if only one year and no customcond, make it useful. ask for years >= this value
     
    169178    htmlcontent = find.sub('Journal website',htmlcontent)
    170179
     180    ## fix problem with accents
     181    find = re.compile(r'é')
     182    htmlcontent = find.sub('é',htmlcontent)
     183    find = re.compile(r'è')
     184    htmlcontent = find.sub('è',htmlcontent)
     185
    171186    #find = re.compile(r'.pdf')
    172187    #htmlcontent = find.sub('PDF version',htmlcontent)
Note: See TracChangeset for help on using the changeset viewer.