Hello Samuele!

The problem is not a wrong content/type, but entirely wrong content as such. 
That is I do not get my defined format but something that resembles HB instead. 
It starts with some <unapi> stanza followed by <strong>title... It actually 
looks like Invenio spitting out the only static format it knows in case it gets 
a bunch of requests. That is, it is the nasty type of miss behaviour: it 
happens often but not allways. As far as I can see, I can provoke it by several 
ctrl-reload calls from firefox. Probably, I get a chance to nail it down more 
thoroughly.

--
Kind regards,

Alexander Wagner
Subject Specialist
Central Library
52425 Juelich

mail : [email protected]
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
http://www.fz-juelich.de/zb/mitarbeiter/fachinformation#wagner

----- Reply message -----
From: "Samuele Kaplun" <[email protected]>
Date: Fri, Sep 30, 2011 16:43
Subject: bibformat issues
To: "Wagner, Alexander" <[email protected]>
Cc: "[email protected]" <[email protected]>


Hi Alexander,

Il giorno ven, 30/09/2011 alle 16.16 +0200, Alexander Wagner ha scritto:
> Now, recently we moved up on the master branchs head. I installed my
> format elements, but it seems that "something" has changed. At least I
> found that Invenio not always returns my format but sometimes I get
> something similar to the HB-format, ie. some HTML formatting instead of
> the lists I expected. Needless to say that the other end of my app
> didn't like that too much ;)

What exactly happens? Could it be that it is just the HTTP header
content-type that is not set correctly as you expect and hence the
browser is confused (say it set as text/html, rather than
application/json?) The code to set the content type in bibformat, if I
recall correctly, has been recently improved (I am not sure if this has
already been committed to master though). In particular the content type
is no longer simply derived from the format initial, but it is first
used the content type you set explicitly for your specific output format
in the BibFormat admin interface.

As I was saying I am not sure if this has already been integrated so,
maybe my colleagues might give you a more correct answer on this...)

Could this be related to the mis-behaviours you are experiencing?

Cheers!
        Sam

--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Reply via email to