ieee-idams 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/.rubocop_todo.yml +36 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/README.adoc +30 -0
- data/Rakefile +12 -0
- data/lib/ieee/idams/address.rb +32 -0
- data/lib/ieee/idams/affiliation.rb +34 -0
- data/lib/ieee/idams/affiliation_address.rb +37 -0
- data/lib/ieee/idams/affiliation_group.rb +19 -0
- data/lib/ieee/idams/article.rb +24 -0
- data/lib/ieee/idams/article_abstract.rb +22 -0
- data/lib/ieee/idams/article_copyright.rb +20 -0
- data/lib/ieee/idams/article_date.rb +33 -0
- data/lib/ieee/idams/article_filename.rb +22 -0
- data/lib/ieee/idams/article_info.rb +160 -0
- data/lib/ieee/idams/article_page_nums.rb +22 -0
- data/lib/ieee/idams/author.rb +64 -0
- data/lib/ieee/idams/author_group.rb +19 -0
- data/lib/ieee/idams/conf_group.rb +19 -0
- data/lib/ieee/idams/copyright.rb +24 -0
- data/lib/ieee/idams/copyright_group.rb +19 -0
- data/lib/ieee/idams/ics_code_term.rb +17 -0
- data/lib/ieee/idams/ics_codes.rb +17 -0
- data/lib/ieee/idams/isbn.rb +32 -0
- data/lib/ieee/idams/keyword.rb +19 -0
- data/lib/ieee/idams/keyword_set.rb +24 -0
- data/lib/ieee/idams/multimedia.rb +43 -0
- data/lib/ieee/idams/multimedia_component.rb +32 -0
- data/lib/ieee/idams/multimedia_compressed.rb +32 -0
- data/lib/ieee/idams/package_member_set.rb +15 -0
- data/lib/ieee/idams/product_number.rb +19 -0
- data/lib/ieee/idams/pub_sponsor.rb +17 -0
- data/lib/ieee/idams/pub_sponsoring_committee_set.rb +17 -0
- data/lib/ieee/idams/pub_topical_browse_set.rb +48 -0
- data/lib/ieee/idams/publication.rb +40 -0
- data/lib/ieee/idams/publication_acronym.rb +22 -0
- data/lib/ieee/idams/publication_info.rb +184 -0
- data/lib/ieee/idams/publisher.rb +29 -0
- data/lib/ieee/idams/standard_bundle.rb +43 -0
- data/lib/ieee/idams/standard_modifier_set.rb +15 -0
- data/lib/ieee/idams/standard_package_set.rb +15 -0
- data/lib/ieee/idams/standard_relationship.rb +36 -0
- data/lib/ieee/idams/version.rb +7 -0
- data/lib/ieee/idams/volume.rb +25 -0
- data/lib/ieee/idams/volume_info.rb +35 -0
- data/lib/ieee/idams/volume_info_issue.rb +22 -0
- data/lib/ieee/idams/volume_note_group.rb +17 -0
- data/lib/ieee/idams.rb +10 -0
- data/lib/ieee-idams.rb +16 -0
- data/references/ieee-books-xml-metadata-documentation.pdf +0 -0
- metadata +209 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ff847527e8adda475495e40f2f7152257d3684063b30cc0e41595856840a260e
|
4
|
+
data.tar.gz: 9cc43f1dc641bec279c0b5f56cd962b23d85be4651cc0b36221d4f3fd93a80bf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 01e83f160ca63bfc142f23ff0fce3c405e35493824ed2b310832e100f83339edd9fb5524c3e80b0a4127b8474ec7568fd6a731b76714c89a7eed68b61e8a3d1f
|
7
|
+
data.tar.gz: f873460146d9aadca68aab1c7bea5d204bfeff36f7ee5eb9b972e81a75a45ae07bca45340c458c5571742d3471522561fe205c2680773c564f4247a3977cfe6b
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2024-11-13 07:13:09 UTC using RuboCop version 1.68.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: Severity, Include.
|
11
|
+
# Include: **/*.gemspec
|
12
|
+
Gemspec/RequiredRubyVersion:
|
13
|
+
Exclude:
|
14
|
+
- 'ieee-idams.gemspec'
|
15
|
+
|
16
|
+
# Offense count: 2
|
17
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
18
|
+
# AllowedMethods: refine
|
19
|
+
Metrics/BlockLength:
|
20
|
+
Max: 32
|
21
|
+
|
22
|
+
# Offense count: 1
|
23
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
24
|
+
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
25
|
+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
26
|
+
Naming/FileName:
|
27
|
+
Exclude:
|
28
|
+
- 'Rakefile.rb'
|
29
|
+
- 'lib/ieee-idams.rb'
|
30
|
+
|
31
|
+
# Offense count: 2
|
32
|
+
# This cop supports safe autocorrection (--autocorrect).
|
33
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
34
|
+
# URISchemes: http, https
|
35
|
+
Layout/LineLength:
|
36
|
+
Max: 252
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ronald.tse@ribose.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/README.adoc
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
= IEEE IDAMS Exchange Format in Ruby
|
2
|
+
|
3
|
+
image:https://img.shields.io/gem/v/ieee-idams.svg["Gem Version", link="https://rubygems.org/gems/ieee-idams"]
|
4
|
+
image:https://github.com/relaton/ieee-idams/workflows/rake/badge.svg["Build Status", link="https://github.com/relaton/ieee-idams/actions?workflow=rake"]
|
5
|
+
image:https://codeclimate.com/github/relaton/ieee-idams/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/relaton/ieee-idams"]
|
6
|
+
|
7
|
+
== Purpose
|
8
|
+
|
9
|
+
This is a class-oriented Ruby library that parses IEEE IDAMS Exchange data.
|
10
|
+
|
11
|
+
This gem is developed according to:
|
12
|
+
|
13
|
+
* https://www.ieee.org/content/dam/ieee-org/ieee/web/org/pubs/ieee-books-xml-metadata-documentation.pdf[IEEE Publishing Technology Books Metadata Description and XML Documentation, Version 4.1, December 2022]
|
14
|
+
|
15
|
+
== Usage
|
16
|
+
|
17
|
+
=== Ruby API
|
18
|
+
|
19
|
+
[source,ruby]
|
20
|
+
----
|
21
|
+
require 'ieee-idams'
|
22
|
+
|
23
|
+
# Single record under `<publication>`
|
24
|
+
Ieee::Idams::Publication.from_xml(File.read("spec/fixtures/record_1.xml"))
|
25
|
+
----
|
26
|
+
|
27
|
+
|
28
|
+
== License
|
29
|
+
|
30
|
+
Copyright Ribose.
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ieee
|
4
|
+
module Idams
|
5
|
+
# Represents a physical address
|
6
|
+
class Address < Lutaml::Model::Serializable
|
7
|
+
# Street address
|
8
|
+
# @return [String] street address line
|
9
|
+
attribute :street, :string
|
10
|
+
|
11
|
+
# City
|
12
|
+
# @return [String] city name
|
13
|
+
attribute :city, :string
|
14
|
+
|
15
|
+
# Country
|
16
|
+
# @return [String] country name
|
17
|
+
attribute :country, :string
|
18
|
+
|
19
|
+
# Post code
|
20
|
+
# @return [String] postal code
|
21
|
+
attribute :postcode, :string
|
22
|
+
|
23
|
+
xml do
|
24
|
+
root "address"
|
25
|
+
map_element "street", to: :street # , cdata: true
|
26
|
+
map_element "city", to: :city # , cdata: true
|
27
|
+
map_element "country", to: :country # , cdata: true
|
28
|
+
map_element "postcode", to: :postcode
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "affiliation_address"
|
4
|
+
|
5
|
+
module Ieee
|
6
|
+
module Idams
|
7
|
+
# Represents an institutional affiliation
|
8
|
+
class Affiliation < Lutaml::Model::Serializable
|
9
|
+
# AMS ID
|
10
|
+
# @return [Integer] author's AMS ID
|
11
|
+
attribute :amsid, :integer
|
12
|
+
|
13
|
+
# Organization name
|
14
|
+
# @return [String] institution name
|
15
|
+
attribute :orgname, :string
|
16
|
+
|
17
|
+
# Organization division
|
18
|
+
# @return [String] department or division
|
19
|
+
attribute :orgdiv, :string
|
20
|
+
|
21
|
+
# Address information
|
22
|
+
# @return [Address] institutional address
|
23
|
+
attribute :address, AffiliationAddress
|
24
|
+
|
25
|
+
xml do
|
26
|
+
root "affn"
|
27
|
+
map_element "amsid", to: :amsid
|
28
|
+
map_element "orgname", to: :orgname, cdata: true
|
29
|
+
map_element "orgdiv", to: :orgdiv
|
30
|
+
map_element "address", to: :address
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ieee
|
4
|
+
module Idams
|
5
|
+
# Represents a physical address
|
6
|
+
class AffiliationAddress < Lutaml::Model::Serializable
|
7
|
+
# Street address
|
8
|
+
# @return [String] street address line
|
9
|
+
attribute :street, :string
|
10
|
+
|
11
|
+
# City
|
12
|
+
# @return [String] city name
|
13
|
+
attribute :city, :string
|
14
|
+
|
15
|
+
# State
|
16
|
+
# @return [String] state name
|
17
|
+
attribute :state, :string
|
18
|
+
|
19
|
+
# Country
|
20
|
+
# @return [String] country name
|
21
|
+
attribute :country, :string
|
22
|
+
|
23
|
+
# Post code
|
24
|
+
# @return [String] postal code
|
25
|
+
attribute :postcode, :string
|
26
|
+
|
27
|
+
xml do
|
28
|
+
root "address"
|
29
|
+
map_element "street", to: :street, cdata: true
|
30
|
+
map_element "city", to: :city, cdata: true
|
31
|
+
map_element "state", to: :state, cdata: true
|
32
|
+
map_element "country", to: :country, cdata: true
|
33
|
+
map_element "postcode", to: :postcode
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "affiliation"
|
4
|
+
|
5
|
+
module Ieee
|
6
|
+
module Idams
|
7
|
+
# Represents a group of institutional affiliations
|
8
|
+
class AffiliationGroup < Lutaml::Model::Serializable
|
9
|
+
# List of affiliations
|
10
|
+
# @return [Array<Affiliation>] institutional affiliations
|
11
|
+
attribute :affn, Affiliation, collection: true
|
12
|
+
|
13
|
+
xml do
|
14
|
+
root "affgrp"
|
15
|
+
map_element "affn", to: :affn
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "article_info"
|
4
|
+
|
5
|
+
module Ieee
|
6
|
+
module Idams
|
7
|
+
# Represents an article within a volume
|
8
|
+
class Article < Lutaml::Model::Serializable
|
9
|
+
# Article title
|
10
|
+
# @return [String] full article title
|
11
|
+
attribute :title, :string
|
12
|
+
|
13
|
+
# Article information
|
14
|
+
# @return [ArticleInfo] detailed article metadata
|
15
|
+
attribute :articleinfo, ArticleInfo
|
16
|
+
|
17
|
+
xml do
|
18
|
+
root "article"
|
19
|
+
map_element "title", to: :title, cdata: true
|
20
|
+
map_element "articleinfo", to: :articleinfo
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ieee
|
4
|
+
module Idams
|
5
|
+
# Represents an article abstract
|
6
|
+
class ArticleAbstract < Lutaml::Model::Serializable
|
7
|
+
# Abstract type
|
8
|
+
# @return [String] type of abstract
|
9
|
+
attribute :abstract_type, :string
|
10
|
+
|
11
|
+
# Abstract value
|
12
|
+
# @return [String] abstract text
|
13
|
+
attribute :value, :string
|
14
|
+
|
15
|
+
xml do
|
16
|
+
root "abstract"
|
17
|
+
map_attribute "abstracttype", to: :abstract_type
|
18
|
+
map_content to: :value, cdata: true
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ieee
|
4
|
+
module Idams
|
5
|
+
# Article copyright information
|
6
|
+
class ArticleCopyright < Lutaml::Model::Serializable
|
7
|
+
# <articlecopyright holderisieee="Yes" year="0"/>
|
8
|
+
|
9
|
+
attribute :holder_is_ieee, :string
|
10
|
+
attribute :year, :integer
|
11
|
+
|
12
|
+
xml do
|
13
|
+
root "articlecopyright"
|
14
|
+
|
15
|
+
map_attribute "holderisieee", to: :holder_is_ieee
|
16
|
+
map_attribute "year", to: :year
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ieee
|
4
|
+
module Idams
|
5
|
+
# Article related date
|
6
|
+
class ArticleDate < Lutaml::Model::Serializable
|
7
|
+
# <date datetype="OriginalPub">
|
8
|
+
# <year>1997</year>
|
9
|
+
# <month>April</month>
|
10
|
+
# <day>3</day>
|
11
|
+
# </date>
|
12
|
+
# <date datetype="ePub">
|
13
|
+
# <year>2019</year>
|
14
|
+
# <month>4</month>
|
15
|
+
# <day>26</day>
|
16
|
+
# </date>
|
17
|
+
|
18
|
+
attribute :datetype, :string
|
19
|
+
attribute :year, :string
|
20
|
+
attribute :month, :string
|
21
|
+
attribute :day, :string
|
22
|
+
|
23
|
+
xml do
|
24
|
+
root "date"
|
25
|
+
|
26
|
+
map_attribute "datetype", to: :datetype
|
27
|
+
map_element "year", to: :year
|
28
|
+
map_element "month", to: :month
|
29
|
+
map_element "day", to: :day
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ieee
|
4
|
+
module Idams
|
5
|
+
# Article file name
|
6
|
+
class ArticleFilename < Lutaml::Model::Serializable
|
7
|
+
# <filename docpartition="4" filetype="MainPDF">00000003.pdf</filename>
|
8
|
+
|
9
|
+
attribute :docpartition, :string
|
10
|
+
attribute :filetype, :string
|
11
|
+
attribute :filename, :string
|
12
|
+
|
13
|
+
xml do
|
14
|
+
root "filename"
|
15
|
+
|
16
|
+
map_attribute "docpartition", to: :docpartition
|
17
|
+
map_attribute "filetype", to: :filetype
|
18
|
+
map_content to: :filename
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "keyword_set"
|
4
|
+
require_relative "multimedia"
|
5
|
+
require_relative "author_group"
|
6
|
+
require_relative "article_copyright"
|
7
|
+
require_relative "article_date"
|
8
|
+
require_relative "article_filename"
|
9
|
+
require_relative "article_page_nums"
|
10
|
+
require_relative "article_abstract"
|
11
|
+
|
12
|
+
module Ieee
|
13
|
+
module Idams
|
14
|
+
# Contains detailed metadata about an article
|
15
|
+
class ArticleInfo < Lutaml::Model::Serializable
|
16
|
+
# Sequence number
|
17
|
+
# @return [Integer] article sequence number
|
18
|
+
attribute :articleseqnum, :integer
|
19
|
+
|
20
|
+
# Digital Object Identifier
|
21
|
+
# @return [String] DOI for the article
|
22
|
+
attribute :articledoi, :string
|
23
|
+
|
24
|
+
# System ID
|
25
|
+
# @return [String] IDAMS internal ID
|
26
|
+
attribute :idamsid, :string
|
27
|
+
|
28
|
+
# Article status
|
29
|
+
# @return [String] Active or Inactive
|
30
|
+
attribute :articlestatus, :string, values: %w[Active Inactive]
|
31
|
+
|
32
|
+
# Content type
|
33
|
+
# @return [String] type of content
|
34
|
+
attribute :content_type, :string
|
35
|
+
|
36
|
+
# Open access status
|
37
|
+
# @return [String] open access indicator
|
38
|
+
attribute :articleopenaccess, :string, values: %w[T F]
|
39
|
+
|
40
|
+
# Display flag
|
41
|
+
# @return [String] show/hide indicator
|
42
|
+
attribute :articleshowflag, :string, values: %w[T F]
|
43
|
+
|
44
|
+
# Article plagiarism flag
|
45
|
+
# @return [String] plagiarism indicator
|
46
|
+
attribute :articleplagiarizedflag, :string, values: %w[T F]
|
47
|
+
|
48
|
+
# Article no DOI flag
|
49
|
+
# @return [String] no DOI indicator
|
50
|
+
attribute :articlenodoiflag, :string, values: %w[T F]
|
51
|
+
|
52
|
+
# Article cover image flag
|
53
|
+
# @return [String] cover image indicator
|
54
|
+
attribute :articlecoverimageflag, :string, values: %w[T F]
|
55
|
+
|
56
|
+
# Article reference flag
|
57
|
+
# @return [String] reference indicator
|
58
|
+
attribute :articlereferenceflag, :string, values: %w[T F]
|
59
|
+
|
60
|
+
# Article peer review flag
|
61
|
+
# @return [String] peer review indicator
|
62
|
+
attribute :articlepeerreviewflag, :string, values: %w[T F]
|
63
|
+
|
64
|
+
# Hold status
|
65
|
+
# @return [String] Publish or Hold
|
66
|
+
attribute :holdstatus, :string, values: %w[Publish Hold]
|
67
|
+
|
68
|
+
# Article copyright
|
69
|
+
# @return [String] copyright statement
|
70
|
+
attribute :articlecopyright, ArticleCopyright
|
71
|
+
|
72
|
+
# Abstract
|
73
|
+
# @return [String] article abstract
|
74
|
+
attribute :abstract, ArticleAbstract
|
75
|
+
|
76
|
+
# Author information
|
77
|
+
# @return [AuthorGroup] article authors
|
78
|
+
attribute :authorgroup, AuthorGroup
|
79
|
+
|
80
|
+
# Standard scope
|
81
|
+
# @return [String] standard scope
|
82
|
+
attribute :articlestdscope, :string
|
83
|
+
|
84
|
+
# Standard purpose
|
85
|
+
# @return [String] standard purpose
|
86
|
+
attribute :articlestdpurpose, :string
|
87
|
+
|
88
|
+
# Dates
|
89
|
+
# @return [String] publication dates
|
90
|
+
attribute :date, ArticleDate, collection: true
|
91
|
+
|
92
|
+
# Article publication date
|
93
|
+
# @return [String] publication date
|
94
|
+
attribute :article_publication_date, :string
|
95
|
+
|
96
|
+
# Number of pages
|
97
|
+
# @return [Integer] page count
|
98
|
+
attribute :numpages, :integer
|
99
|
+
|
100
|
+
# File size in bytes
|
101
|
+
# @return [Integer] PDF file size
|
102
|
+
attribute :size, :integer
|
103
|
+
|
104
|
+
# PDF filename
|
105
|
+
# @return [String] name of PDF file
|
106
|
+
attribute :filename, ArticleFilename
|
107
|
+
|
108
|
+
# Page numbers
|
109
|
+
# @return [String] start and end page numbers
|
110
|
+
attribute :artpagenums, ArticlePageNums
|
111
|
+
|
112
|
+
# System ID
|
113
|
+
# @return [String] AMS internal ID
|
114
|
+
attribute :amsid, :string
|
115
|
+
|
116
|
+
# Multimedia
|
117
|
+
# @return [Multimedia] multimedia content
|
118
|
+
attribute :multimedia, Multimedia
|
119
|
+
|
120
|
+
# Keywords
|
121
|
+
# @return [Array<KeywordSet>] article keywords
|
122
|
+
attribute :keywordset, KeywordSet, collection: true
|
123
|
+
|
124
|
+
xml do
|
125
|
+
root "articleinfo"
|
126
|
+
map_element "articleseqnum", to: :articleseqnum
|
127
|
+
map_element "articledoi", to: :articledoi
|
128
|
+
map_element "idamsid", to: :idamsid
|
129
|
+
map_element "articlestatus", to: :articlestatus
|
130
|
+
map_element "contenttype", to: :content_type
|
131
|
+
map_element "articleopenaccess", to: :articleopenaccess
|
132
|
+
map_element "articleshowflag", to: :articleshowflag
|
133
|
+
|
134
|
+
map_element "articleopenaccess", to: :articleopenaccess
|
135
|
+
map_element "articleshowflag", to: :articleshowflag
|
136
|
+
map_element "articleplagiarizedflag", to: :articleplagiarizedflag
|
137
|
+
map_element "articlenodoiflag", to: :articlenodoiflag
|
138
|
+
map_element "articlecoverimageflag", to: :articlecoverimageflag
|
139
|
+
map_element "articlereferenceflag", to: :articlereferenceflag
|
140
|
+
map_element "articlepeerreviewflag", to: :articlepeerreviewflag
|
141
|
+
|
142
|
+
map_element "holdstatus", to: :holdstatus
|
143
|
+
map_element "articlecopyright", to: :articlecopyright
|
144
|
+
map_element "abstract", to: :abstract, cdata: true
|
145
|
+
map_element "articlestdscope", to: :articlestdscope, cdata: true
|
146
|
+
map_element "articlestdpurpose", to: :articlestdpurpose, cdata: true
|
147
|
+
map_element "authorgroup", to: :authorgroup
|
148
|
+
map_element "date", to: :date
|
149
|
+
map_element "article_publication_date", to: :article_publication_date
|
150
|
+
map_element "numpages", to: :numpages
|
151
|
+
map_element "size", to: :size
|
152
|
+
map_element "filename", to: :filename
|
153
|
+
map_element "artpagenums", to: :artpagenums
|
154
|
+
map_element "amsid", to: :amsid
|
155
|
+
map_element "multimedia", to: :multimedia
|
156
|
+
map_element "keywordset", to: :keywordset
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ieee
|
4
|
+
module Idams
|
5
|
+
# Article page nums
|
6
|
+
class ArticlePageNums < Lutaml::Model::Serializable
|
7
|
+
# <artpagenums endpage="28" startpage="1">1-28</artpagenums>
|
8
|
+
|
9
|
+
attribute :endpage, :string
|
10
|
+
attribute :startpage, :string
|
11
|
+
attribute :formatted, :string
|
12
|
+
|
13
|
+
xml do
|
14
|
+
root "artpagenums"
|
15
|
+
|
16
|
+
map_attribute "endpage", to: :endpage
|
17
|
+
map_attribute "startpage", to: :startpage
|
18
|
+
map_content to: :formatted
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|