Skip to content

Commit

Permalink
Merge pull request elifesciences#146 from pkra/patch-1
Browse files Browse the repository at this point in the history
lens-converter: add check for back element
  • Loading branch information
Michael Aufreiter committed Feb 25, 2016
2 parents a70c60d + af383cf commit cc42407
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions converter/lens_converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,11 @@ NlmToLensConverter.Prototype = function() {

this.extractFigures(state, article);

// Extract back element
// Extract back element, if it exists
var back = article.querySelector("back");
this.back(state,back);
if (back){
this.back(state,back);
}

this.enhanceArticle(state, article);
};
Expand Down

0 comments on commit cc42407

Please sign in to comment.