diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/formatRefs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/formatRefs.py b/tools/formatRefs.py index 265f04d..280a444 100755 --- a/tools/formatRefs.py +++ b/tools/formatRefs.py @@ -138,6 +138,9 @@ if __name__ == '__main__': # when was it published? when = first (getRecursive (s, g, ref, s.datePublished)) + if not when: + # fall back to creation date + when = first (getRecursive (s, g, ref, s.dateCreated)) # where can we find it? (print) # print from root to ref (i.e. magazine, volume, issue) |