Skip to content

Commit

Permalink
ENH: only generate xref xmlfile for final proceedings
Browse files Browse the repository at this point in the history
  • Loading branch information
deniederhut committed Aug 7, 2018
1 parent 8bdb058 commit 8c84471
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions publisher/build_papers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
dirs = conf.dirs
xref_conf = conf.xref_conf
papers_dir = conf.papers_dir
is_final = conf.status_file_base == 'ready'



Expand All @@ -40,7 +41,7 @@ def paper_stats(paper_id, start, doi_prefix=None):
stats.update({'page': {'start': start,
'stop': stop},
'paper_id': paper_id,
'doi': paper_doi
'doi': paper_doi if is_final else ''
})

return stats
Expand Down Expand Up @@ -72,7 +73,7 @@ def paper_stats(paper_id, start, doi_prefix=None):
# load completed TOC
toc = {'toc': toc_entries}
# make doi for this year's proceedings and for whole conference (static)
scipy_entry['proceedings']['doi'] = make_doi(doi_prefix)
scipy_entry['proceedings']['doi'] = make_doi(doi_prefix) if is_final else ''
scipy_entry['series']['doi'] = make_series_doi(doi_prefix, issn)

# persist metadata
Expand Down

0 comments on commit 8c84471

Please sign in to comment.