It's fairly common to find publications without authors -- for example, newspaper articles. The citation formats I'm familiar with frown on using terms like "Anon." to indicate that there is no author; the author's name should simply be left out.
However, the Bibliography module apparently doesn't let you create an entry without an author. One reason I consider this is a bug is that you can edit the "Author" field in common field types, and remove the "Required" flag. However, this doesn't actually do anything, as there is a test in biblio.module (biblio_validate() function):
if (!$node->biblio_authors) {
form_set_error('biblio_authors', t('You must supply at least one author name
'));
How can I get around this?
Comments
Comment #1
rjerome commentedHmm, good point, I'll fix that.
Ron.
Comment #2
pathscollide commentedHi Ron -- You're providing an amazing level of support for this module!
How would you recommend getting around this issue (i.e. how could I patch it) -- or could you let us know when you've patched the 4.7-dev branch? Is the latter basically safe to use?
Thanks!
Comment #3
rjerome commentedIf you just comment out those lines like this...
it should work without authors.
Ron.
Comment #4
john bickar commentedI tried commenting out the lines you suggested, and I still cannot create a publication without an author. In my instance, I have imported publications from RefWorks (RIS format), and I have one without an author. When I got to change the publication type to a custom type (Journal) that I created, it will not let me change to that type without filling in the author(s) field. I get the following error message: "Authors field is required."
When I try unchecking the "required" checkbox in Biblio Settings>Type customization, the "required" checkbox re-checks itself after I save.
I'm using the 5.x dev version, BTW.
Thanks for all your hard work - Biblio is an awesome module!
Comment #5
john bickar commentedEEBKC*
Administer>Site configuration>Biblio settings>Field defaults
Need to uncheck the author field's "required" checkbox for the biblio module as a whole before you can uncheck it for individual types.
:D
*(Error Exists Between Keyboard and Chair)
Comment #6
pathscollide commentedThis inconvenient little bug still exists in the Drupal 5 branch.
Comment #7
john bickar commentedPatch attached for Drupal 5.3, Biblio 5.x-1.9.
Comment #8
Helmut Neubauer commentedI've still the problem if I use the author field as common (not required).
Comment #9
Anonymous (not verified) commentedsubscribing
Comment #10
bekasu commentedUpgrade to Biblio 6x.
Marking issue closed.
Comment #11
rjerome commented