0
Исправлен

Parser issue if the key contain ampersand

Kenneth 8 лет назад обновлен Christian Fritz 8 лет назад 4

We have a bib database file with contains items with ampersand & in the item keys however since bibbase switched to the new parser bibbase no longer render the entries correctly.


The following file can be used to illustrate the issue: https://raw.githubusercontent.com/overturetool/overturetool.github.io/4dc3b48401a19f22e819296af3a5451a27d04f27/publications/overtureweb.bib


the entries that fail looks like:


@incollection{Name&13,

  KEY       = "Name13",
  year		={2013},
  ...
}

I added an issue + pull request to the parser on github: https://github.com/chfritz/meteor-bibtex/issues/3


Furthermore. The warnings icon only show at random. Usually entries that fail to parse are listed last like:


undefined (25)

. Technical Report .
bibtex 1 download
. In .
bibtex 1 download



Ответ

Ответ
Исправлен

ok, I've cleared the cache manually. It probably refused to update the cache because the bibtex file hadn't changed (just the parsing of it had). It's working now.

Исправлен

Hi Ken,


Thanks for reporting and fixing(!!) this issue. I've merged your pull request for the parser and updated bibbase with the new version. The bibtex URL you provide seems to work now.

Hi Christian,

Thanks for merging the fix, it indeed looks like it fixed it for the test url I provided. However, I have another bib file that still does not render correctly in bibbase but parser output look ok. (The parser does not report any errors and the entries are populated with data matching the bib file).


The url to the bib file is: http://blog.lausdahl.com/wp-content/uploads/publications/lausdahl.bib


It renders as:

undefined (9)

. In .
bibtex 1 download
. In .
bibtex 1 download
. .
bibtex 1 download
. In .
bibtex 1 download
. In .
bibtex 1 download
. In .
bibtex 1 download
. In .
bibtex 1 download
. .
bibtex 1 download
. In .
bibtex 1 download


Can you help fix this. It looks like bibbase got confused by the parser output from the parser, but it would be great if it could render correctly until it reaches the issue and then complain about what ever is missing or is malformed.

Начат

That seems to be a caching issue. http://bibbase.org/show?bib=blog.lausdahl.com/wp-content/uploads/publications/lausdahl.bib&nocache=1 works. However it doesn't seem to update the cache, which is strange. I'll investigate further.



Ответ
Исправлен

ok, I've cleared the cache manually. It probably refused to update the cache because the bibtex file hadn't changed (just the parsing of it had). It's working now.

Сервис поддержки клиентов работает на платформе UserEcho