Class: HalOpenscience::Document
- Inherits:
-
BaseResource
- Object
- BaseResource
- HalOpenscience::Document
- Defined in:
- lib/hal_openscience/resources/document.rb
Constant Summary collapse
- TYPES =
[ 'ART', 'COMM', 'COUV', 'THESE', 'OUV', 'MEM', 'UNDEFINED', 'POSTER', 'REPORT', 'OTHER', 'IMG', 'ISSUE', 'PROCEEDINGS', 'NOTICE', 'BLOG', 'HDR', 'PATENT', 'VIDEO', 'REPORT_LABO', 'LECTURE', 'TRAD', 'REPORT_MAST', 'REPORT_LPRO', 'REPORT_LICE', 'SOFTWARE', 'PRESCONF', 'CREPORT', 'SON', 'REPORT_DOCT', 'MAP', 'REPORT_ETAB', 'REPORT_FORM', 'REPORT_GMAST', 'NOTE', 'SYNTHESE', 'REPORT_FPROJ', 'REPORT_GLICE', 'ETABTHESE', 'REPACT', 'MEMLIC', 'REPORT_RFOINT', 'REPORT_COOR', 'REPORT_RETABINT', 'OTHERREPORT' ].freeze
- SUBTYPES =
[ 'PHOTOGRAPHY', 'RESREPORT', 'BOOKREVIEW', 'ARTREV', 'TECHREPORT', 'ILLUSTRATION', 'DATAPAPER', 'WORKINGPAPER', 'PREPRINT', 'FUNDREPORT', 'GRAPHICS', 'EXPERTREPORT', 'SYNTOUV', 'CRIT', 'MANUAL', 'DRAWING', 'GRAVURE', 'DICTIONAR', 'DMP' ].freeze
- SUBTYPES_PER_TYPE =
{ 'ART' => ['ARTREV', 'DATAPAPER', 'BOOKREVIEW'], 'IMG' => ['DRAWING', 'GRAVURE', 'ILLUSTRATION', 'GRAPHICS', 'PHOTOGRAPHY'], 'OUV' => ['SYNTOUV', 'MANUAL', 'DICTIONAR', 'CRIT'], 'UNDEFINED' => ['PREPRINT', 'WORKINGPAPER'], 'REPORT' => ['RESREPORT', 'TECHREPORT', 'FUNDREPORT', 'EXPERTREPORT', 'DMP'] }
Instance Attribute Summary
Attributes inherited from BaseResource
Class Method Summary collapse
Methods inherited from BaseResource
#initialize, #method_missing, search
Constructor Details
This class inherits a constructor from HalOpenscience::BaseResource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HalOpenscience::BaseResource
Class Method Details
.repository_url ⇒ Object
80 81 82 |
# File 'lib/hal_openscience/resources/document.rb', line 80 def self.repository_url "#{HalOpenscience::BASE_URL}/search/" end |
.search_by_person_id(person_id, fields: [], limit: 30, offset: 0) ⇒ Object
84 85 86 |
# File 'lib/hal_openscience/resources/document.rb', line 84 def self.search_by_person_id(person_id, fields: [], limit: 30, offset: 0) self.search("authIdPerson_i:#{person_id}", fields: fields, limit: limit, offset: offset) end |