Module: Puree::XMLExtractor::PeerReviewedMixin
- Included in:
- JournalArticle, Paper
- Defined in:
- lib/puree/xml_extractor/mixins/peer_reviewed_mixin.rb
Overview
Peer reviewed extractor mixin.
Instance Method Summary collapse
Instance Method Details
#peer_reviewed ⇒ Boolean?
10 11 12 13 14 15 |
# File 'lib/puree/xml_extractor/mixins/peer_reviewed_mixin.rb', line 10 def peer_reviewed xpath_result = xpath_query_for_single_value('/peerReview') return true if xpath_result === 'true' return false if xpath_result === 'false' nil end |