Discussion:
[KBibTeX] minor UI issue
Jürgen Spitzmüller
2009-11-09 14:54:29 UTC
Permalink
Hi Thomas

With type "book", the "number" input widget is disabled by default. I think it
should be enabled, since it is required for the quite common series/number
book data.

Greetings,
J?rgen
Thomas Fischer
2009-11-09 15:19:00 UTC
Permalink
Hello J?rgen,
Post by Jürgen Spitzmüller
With type "book", the "number" input widget is disabled by default. I
think it should be enabled, since it is required for the quite
common series/number book data.
According to the official documentation (from Wikipedia), "number" is
neither required nor optional for "book". I assume, most standard styles
for BibTeX adhere this convention and to not include this field in any
output. Enabling this field would mislead users to assume that this
field is actually used.
Given that issue and the simplicity of a single click to enable all
fields in the entry dialog, I won't change the default behaviour.
However, if you can show that the "number" field is used by many/major
BibTeX styles to set "book" entries, I will change my mind here...

Bye,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.unix-ag.uni-kl.de/pipermail/kbibtex/attachments/20091109/b2142dba/attachment.pgp
Jürgen Spitzmüller
2009-11-09 15:30:48 UTC
Permalink
Post by Thomas Fischer
According to the official documentation (from Wikipedia), "number" is
neither required nor optional for "book". I assume, most standard styles
for BibTeX adhere this convention and to not include this field in any
output. Enabling this field would mislead users to assume that this
field is actually used.
btxdoc says:

book A book with an explicit publisher. Required fields: author or editor,
title, publisher, year. Optional fields: volume or number, series,
address, edition, month, note.
Post by Thomas Fischer
Given that issue and the simplicity of a single click to enable all
fields in the entry dialog, I won't change the default behaviour.
However, if you can show that the "number" field is used by many/major
BibTeX styles to set "book" entries, I will change my mind here...
Is it enough to refer to the standard styles? This is the book method from
plain.bst. Note that the format.number.series method is used, which constructs
a string "series [number]". Without checking further, I would claim that most
styles use number for books:

FUNCTION {book}
{ output.bibitem
author empty$
{ format.editors "author and editor" output.check }
{ format.authors output.nonnull
crossref missing$
{ "author and editor" editor either.or.check }
'skip$
if$
}
if$
new.block
format.btitle "title" output.check
crossref missing$
{ format.bvolume output
new.block
format.number.series output
new.sentence
publisher "publisher" output.check
address output
}
{ new.block
format.book.crossref output.nonnull
}
if$
format.edition output
format.date "year" output.check
new.block
note output
fin.entry
}

J?rgen
Thomas Fischer
2009-11-10 23:33:27 UTC
Permalink
Hello J?rgen,
Post by Jürgen Spitzmüller
book A book with an explicit publisher. Required fields: author or
editor, title, publisher, year. Optional fields: volume or number,
series, address, edition, month, note.
Ok. Wikipedia seems to be wrong on that. Added number as optional field
for book (see latest SVN snapshot).

Bye,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.unix-ag.uni-kl.de/pipermail/kbibtex/attachments/20091111/cfbc536a/attachment.pgp
Jürgen Spitzmüller
2009-11-13 14:04:11 UTC
Permalink
Post by Thomas Fischer
Ok. Wikipedia seems to be wrong on that. Added number as optional field
for book (see latest SVN snapshot).
Thanks, Thomas.

BTW latest SVN does not compile for me due to a missing sv.po file (adding a
pseudo sv.po fixes it).

J?rgen
Thomas Fischer
2009-12-26 20:02:29 UTC
Permalink
Hello J?rgen,
Post by Jürgen Spitzmüller
BTW latest SVN does not compile for me due to a missing sv.po file
(adding a pseudo sv.po fixes it).
I removed that file in the new snapshot, should be fixed now.

Bye,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.unix-ag.uni-kl.de/pipermail/kbibtex/attachments/20091226/6388323f/attachment.pgp
Loading...