Skip to content

Commit

Permalink
lens-converter: add check for back element
Browse files Browse the repository at this point in the history
  • Loading branch information
pkra committed Feb 25, 2016
1 parent a70c60d commit af383cf
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 af383cf

Please sign in to comment.