relaton-gb 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58f31fdd313cb672e6f580a2dcbf690a9410b76eb027fcad5204d45a13072adc
4
- data.tar.gz: 12a975c602e69fa0e0de8fa34f3771daba49e22db87e5dbef38fcdfdfad12d3b
3
+ metadata.gz: b931b589f3f95dd9d3011cf8284eb2407020af43fd2948b8655f54a043776627
4
+ data.tar.gz: 40f9665b5a74ed4e8118a5bc27ae6820b5620553f4d6c2a001953c665c887cd8
5
5
  SHA512:
6
- metadata.gz: e28a265459112604bb9b263022a7b21c5bd05e93293615e069c4dbd6bc35c1709545eb89330a13bcd77843e72f5c210627f3ccf0414631a6f676f292f88bd76d
7
- data.tar.gz: c36c098399b490ddb43aaf1c66319a2cb060ec65f20c17e3fb26edb5230db236cb452cd0b74eedddac39a859b84761d47d40b4d435fee81d9fcb35b5cc7a6c67
6
+ metadata.gz: af21950b6ef87ac1be5075363fa1c1587ad07f9769b33dbaf0c7c43e0fd185fd02cf5accfadc4b86287734acc3b126fa29ee85bc3aa0186a6c803104065db71b
7
+ data.tar.gz: e8ec6a99f8c77ed47977fd4cebf20b7319b8e94534e61f6894db84a21c20699eca86d49ed99486d7da04a83e5cc76bc1235b67430cbca0e134f4ecca683db12e
data/.rubocop.yml CHANGED
@@ -2,6 +2,8 @@
2
2
  # https://github.com/riboseinc/oss-guides
3
3
  # All project-specific additions and overrides should be specified in this file.
4
4
 
5
+ require: rubocop-rails
6
+
5
7
  inherit_from:
6
8
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
7
9
  AllCops:
data/README.adoc CHANGED
@@ -183,6 +183,16 @@ hit_collection.first.fetch.to_xml bibdata: true
183
183
  </bibdata>"
184
184
  ----
185
185
 
186
+ === Typed links
187
+
188
+ Each GB document has `src` type link.
189
+
190
+ [source,ruby]
191
+ ----
192
+ hit_collection.first.fetch.link
193
+ => [#<RelatonBib::TypedUri:0x00007fee2c0257e8 @content=#<Addressable::URI:0x67c URI:http://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=083B48FA72DBD3B9BDE74507BC31736A>, @type="src">]
194
+ ----
195
+
186
196
  == Development
187
197
 
188
198
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -173,9 +173,11 @@
173
173
  <data type="dateTime"/>
174
174
  </attribute>
175
175
  </optional>
176
- <attribute name="from">
177
- <data type="IDREF"/>
178
- </attribute>
176
+ <optional>
177
+ <attribute name="from">
178
+ <data type="IDREF"/>
179
+ </attribute>
180
+ </optional>
179
181
  <optional>
180
182
  <attribute name="to">
181
183
  <data type="IDREF"/>
@@ -624,6 +626,9 @@
624
626
  <choice>
625
627
  <ref name="PureTextElement"/>
626
628
  <ref name="stem"/>
629
+ <ref name="eref"/>
630
+ <ref name="xref"/>
631
+ <ref name="hyperlink"/>
627
632
  </choice>
628
633
  </zeroOrMore>
629
634
  </element>
@@ -634,6 +639,9 @@
634
639
  <choice>
635
640
  <ref name="PureTextElement"/>
636
641
  <ref name="stem"/>
642
+ <ref name="eref"/>
643
+ <ref name="xref"/>
644
+ <ref name="hyperlink"/>
637
645
  </choice>
638
646
  </zeroOrMore>
639
647
  </element>
@@ -641,7 +649,12 @@
641
649
  <define name="tt">
642
650
  <element name="tt">
643
651
  <zeroOrMore>
644
- <ref name="PureTextElement"/>
652
+ <choice>
653
+ <ref name="PureTextElement"/>
654
+ <ref name="eref"/>
655
+ <ref name="xref"/>
656
+ <ref name="hyperlink"/>
657
+ </choice>
645
658
  </zeroOrMore>
646
659
  </element>
647
660
  </define>
@@ -822,7 +835,9 @@
822
835
  <attribute name="alt"/>
823
836
  </optional>
824
837
  <ref name="CitationType"/>
825
- <text/>
838
+ <oneOrMore>
839
+ <ref name="PureTextElement"/>
840
+ </oneOrMore>
826
841
  </define>
827
842
  <define name="hyperlink">
828
843
  <element name="link">
@@ -835,7 +850,9 @@
835
850
  <optional>
836
851
  <attribute name="alt"/>
837
852
  </optional>
838
- <text/>
853
+ <oneOrMore>
854
+ <ref name="PureTextElement"/>
855
+ </oneOrMore>
839
856
  </element>
840
857
  </define>
841
858
  <define name="xref">
@@ -849,7 +866,9 @@
849
866
  <optional>
850
867
  <attribute name="alt"/>
851
868
  </optional>
852
- <text/>
869
+ <oneOrMore>
870
+ <ref name="PureTextElement"/>
871
+ </oneOrMore>
853
872
  </element>
854
873
  </define>
855
874
  <define name="fn">
data/grammars/biblio.rng CHANGED
@@ -401,9 +401,9 @@
401
401
  <choice>
402
402
  <!-- iso191606 TODO -->
403
403
  <group>
404
- <oneOrMore>
404
+ <zeroOrMore>
405
405
  <ref name="street"/>
406
- </oneOrMore>
406
+ </zeroOrMore>
407
407
  <ref name="city"/>
408
408
  <optional>
409
409
  <ref name="state"/>
@@ -44,7 +44,7 @@
44
44
  <optional>
45
45
  <ref name="termdomain"/>
46
46
  </optional>
47
- <ref name="definition"/>
47
+ <!-- <ref name="definition"/> -->
48
48
  <zeroOrMore>
49
49
  <ref name="termnote"/>
50
50
  </zeroOrMore>