Closed ronaldtse closed 5 years ago
@ronaldtse suppose we should extract BibliographicItem
class from iso-bib-item
gem and create bib-item
gem.
@andrew2net can we extract it out to relaton-bib
gem? Thanks!
@ronaldtse do you mean to create to new relaton-bib
gem? Yes, sure.
Yes. Thanks!
@ronaldtse I see the BibliographicItem
class is outdated. There are differences between the class and grammar https://github.com/metanorma/relaton-models/blob/master/grammars/biblio.rnc
Should we update the BibliographicItem
class?
Yes, probably.
@opoudjis , should @andrew2net update the BibliographicItem
class according to your latest changes at https://github.com/metanorma/relaton-models/blob/master/grammars/biblio.rnc ? Thanks!
Wow. More refactoring.
Yes, although there shouldn't be any drastic changes there.
@ronaldtse, however, nist grammar https://github.com/metanorma/metanorma-model-iso/blob/master/grammars/nist.rnc inherit from isostandard, not from biblio. So NistBibliographicItem
should inherit form IsoBibliographicItem
.
# Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
# we cannot have a new default namespace: we will end up with a grammar with two different
# namespaces, one for isostandard and one for csand additions. And we do not want that.
include "isostandard.rnc" {
...
Well, that's a convenience in how I wrote the grammar. The upcoming task https://github.com/metanorma/relaton/issues/39 will differentiate a flavour-independent bibitem from a flavour-dependent bibdata; the flavour-independent bibitem should then migrate to biblio.rnc
So I'm assuming that relaton-bib will be propagated to all the other relaton gems eventually? I'm releasing it now to get nistbib to work, but nistbib is currently the only gem using it.
If relaton-bib is to be propagated to all the other relaton gems, the appropriate tickets will need to be created.
Welcome to refactoring Metanorma, Andrej >:-)
@andrew2net ping on the answer:
So I'm assuming that relaton-bib will be propagated to all the other relaton gems eventually? I'm releasing it now to get nistbib to work, but nistbib is currently the only gem using it.
Is this all done? Thanks!
@ronaldtse I'm working on relaton-itu
now. Hope to finish it today. So it will be done today.
That's great, look forward to it! Thanks @andrew2net !
NistBib should not use
IsoBibliographicItem
(iso-bib-item
). Instead, there should be aRelatonBibliographicItem
(or justBibliographicItem
) class that is inherited byNistBibliographicItem
.This issue should be considered together with https://github.com/metanorma/iso-bib-item/issues/8.