From be88ab1cf56d6b09991f942d211f98b8fc2b4fe0 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Mon, 18 Nov 2013 20:41:16 +0100 Subject: [PATCH] added 'pdf' field to docfile search in bibfile --- pubs/bibstruct.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pubs/bibstruct.py b/pubs/bibstruct.py index 3c086df..087923a 100644 --- a/pubs/bibstruct.py +++ b/pubs/bibstruct.py @@ -81,5 +81,7 @@ def extract_docfile(bibdata, remove=False): return f if 'attachments' in entry.fields: return entry.fields['attachments'] + if 'pdf' in entry.fields: + return entry.fields['pdf'] except (KeyError, IndexError): return None