zotero / zoterobib

ZoteroBib is a free online bibliography generator from the makers of Zotero
https://zbib.org
Other
68 stars 19 forks source link

(No Title) default value in title field #220

Closed flachware closed 6 years ago

flachware commented 6 years ago

@tnajdek currently we launch the manual entry editor with (No Title) as default value. It feels a bit awkward to me, as it does not disappear like a real placeholder text. Would it be possible to have an empty title field instead but still No Title (I would drop the parenthesis) in the modal header whenever the title field is empty? (Having an empty title breaks the modal header layout at the moment.)

screen shot 2018-05-10 at 11 14 14

dstillman commented 6 years ago

Yeah, I agree. I haven’t been sure why we have that.

tnajdek commented 6 years ago

Creating items without title will work for bib, however citeproc will silently ignore these while generating bibliography. Since we only list items returned by citeproc, items with no title go into limbo state where user can't edit them because we don't render them because they have no title.

(No Title) was an early workaround to forces citeproc to render these but I agree we should come up with a better solution. Here are some ideas:

  1. While rendering (except for read-only mode) match bib items to citeproc output and render placeholders for items that citeproc did not return
  2. Before asking citeproc to makeBibliography, set title field to No Title on items that have no title.
dstillman commented 6 years ago

however citeproc will silently ignore these while generating bibliography

That's not the case in Zotero. I can generate a bibliography with an entirely empty item in Chicago full note and it shows up as "n.d.".

dstillman commented 6 years ago

APA works too. In MLA, I get ([CSL STYLE ERROR: reference with no printed form.]).