Skip to content

Commit

Permalink
Merge pull request #79 from ehenneken/header_update
Browse files Browse the repository at this point in the history
header for IOPscience for non-AAS journals
  • Loading branch information
ehenneken committed Aug 22, 2017
2 parents e3afc77 + 89953e6 commit 1ea9f67
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.0.14

* update of display header info

### 1.0.13

* requirements.txt update and cleanup
Expand Down
1 change: 1 addition & 0 deletions service/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
GRAPHICS_HEADER = {
'EDP':'Every image links to the article on <a href="http://www.aanda.org/" target="_new">Astronomy &amp; Astrophysics</a>',
'IOP':'Every image links to the <a href="http://www.astroexplorer.org/" target="_new">AAS "Astronomy Image Explorer"</a> for more detail.',
'IOPscience':'Every image links to the article on <a href="http://iopscience.iop.org/" target="_new">IOPscience</a>',
'Elsevier':'Every image links to the article on <a href="http://www.sciencedirect.com" target="_new">ScienceDirect</a>'
}
# Define the mapping to help retrieve full text files for a given identifier
Expand Down
3 changes: 3 additions & 0 deletions service/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def get_graphics(bibcode):
results['pick'] = ''
results['number'] = 0
if source in current_app.config.get('GRAPHICS_EXTSOURCES'):
# Non-AAS journals link to IOPscience, rather than AIE
if source == "IOP" and bibcode[4:9] not in ['ApJ..','ApJS.','AJ...']:
source = "IOPscience"
header = current_app.config.get('GRAPHICS_HEADER').get(source,'')
results['header'] = header
try:
Expand Down

0 comments on commit 1ea9f67

Please sign in to comment.