pkp / ots

PKP XML Parsing Service
GNU General Public License v3.0
32 stars 19 forks source link

References Index not starting from 1 #129

Open fabiobatalha opened 6 years ago

fabiobatalha commented 6 years ago

The id starts at 48.

  <back>
    <ref-list>
      <ref id="R48">
        <element-citation publication-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Raoult</surname>
              <given-names>PatrickAnge</given-names>
            </name>
          </person-group>
          <article-title>Clinique et psychopathologie du passage à l\textquotesingleacte</article-title>
          <source>Bulletin de psychologie</source>
          <year>2006</year>
        </element-citation>
      </ref>
      ....
    <ref-list>
<back>

It is not exactly a problem if this id will not be used as a index reference, and if necessary it could be fixed in another scope different from OTS, but if possible, would be nice to have it improved in OTS.

axfelix commented 6 years ago

There's probably nothing stopping us from writing a script to re-number the reference list from 1 every time, we just haven't gotten to it yet as it's not a huge priority, it just looks funny. But I agree, it's an issue.