Changeset 1123

Show
Ignore:
Timestamp:
08/31/07 14:05:23 (1 year ago)
Author:
sgillies
Message:

Do not duplicate highest scope

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PleiadesEntity/trunk/Extensions/loader.py

    r1122 r1123  
    211211                if not title_elem: 
    212212                    continue 
    213                 title = title_elem[0].text 
    214                 url = title_elem[0].attrib.get('{http://www.w3.org/1999/xlink}href') 
    215                 scope_text = getalltext(bibl) 
    216                 if not scope_text: 
    217                     bibstr = title 
    218                 else: 
    219                     bibstr = "%s %s" % (title, scope_text) 
    220                  
     213                url = title_elem[0].attrib.get('{http://www.w3.org/1999/xlink}href', '') 
     214                bibstr = getalltext(bibl) 
    221215                id = ptool.normalizeString(bibstr) 
    222216                try: