Sha256: 42f7ebb5959006a043b052d0310cc21dbb200fde98bc59fb86f42d05f51490c1
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
module Relaton module Plateau class TechnicalReportParser < Parser def initialize(entry) @entry = entry super entry["technicalReport"] end private def parse_docid super << create_docid("PLATEAU Tech Report ##{@entry["slug"]}") end def parse_abstract super << create_formatted_string(@item["subtitle"]) end def parse_edition RelatonBib::Edition.new content: "1.0", number: "1.0" end def parse_doctype DocumentType.new type: "technical-report" end def parse_subdoctype @entry["technicalReportCategories"]["nodes"].dig(0, "name") end def parse_date super << create_date(@entry["date"]) end def parse_link super << create_link(@item["pdf"], "pdf") end def parse_filesize @item["filesize"].to_i end def parse_keyword @entry["globalTags"]["nodes"].map { |tag| tag["name"] } end def parse_structuredidentifier strid = RelatonBib::StructuredIdentifier.new( type: "Tech Report", class: parse_subdoctype, agency: ["PLATEAU"], docnumber: @entry["slug"] ) RelatonBib::StructuredIdentifierCollection.new [strid] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relaton-plateau-1.19.0 | lib/relaton/plateau/technical_report_parser.rb |