this.style is undefined after upgrade

Hi everyone,

after upgrading to all the newest versions with word 2007, i became an error message: this.style is undefined. Same message in a new document, different styles worked. I reinstalled everything. Does not help.

In the mean time i did reset translators and styles, and now i cannot even find the style i was using (tu berlin technologiemanagement). Do you have any idea what I might try or how to fix the problem?
  • edited April 22, 2011
    that's likely due to the fact that the style isn't valid - it's not on the repository, right?
    Some invalid styles worked in Z 2.0.x, but 2.1 is stricter - if you have a link to the style we can probably fix it.

    edit: weird - did I really not answer this before somewhere? I remember the exact same question so clearly...
    ah OK, I see what happened. Glad I'm not going crazy.
  • Yes! no worries. your brain is good. a link to the style. where should i have this!
  • well, where did you get the style from? It's not from the repository. (I speak German if English is a problem).
  • this maybe:
    http://www.zotero.org/styles/tu-berlin-technologiemanagementsvHcm
    thanks so much for your help!
  • edited April 22, 2011
    OK, try re-installing from here
    https://gist.github.com/937873
    einfach auf die Seite gehen, rechter Mausclick auf "Raw" rechts oben,
    "link speichern als..." tu-berlin-tim.csl
    Dann die gespeicherte Datei in ein offenes FF Fenster ziehen.
  • funktioniert im Prinzip. nur stimmt der style nicht mit dem anderen überein.
  • dann musst Du die Version finden die Du verwendet hast - sonst kann ich echt nicht helfen.
  • ich hab sie gefunden, funktioniert nicht genau wie oben beschrieben. kann es sein dass sie nach dem update validiert werden muss.
  • geh zu
    https://gist.github.com/
    paste den Stil in das Fenster, click auf "Save public gist" unten und poste dann die URL hier - dann kann ich mir das angucken.
  • https://gist.github.com/937976
    thx
  • right, that doesn't validate, someone put an ugly hack in there - I'll try to get it fixed for you over the weekend.
  • https://gist.github.com/938777
    sollte funktionieren.
  • thanks soooo much!!
  • Hi, I'm having the same problem.
    My styles are not on the style repository. I've created them myself for specific purposes...
    What should I do to get them working again? I really need them...
    (I don't speak german, sorry... :-( )
  • same direction - put your style as a public gist on gist.github.com and post a link here.
  • edited May 29, 2011
    ok. here goes one of them: git://gist.github.com/997506.git
  • you need to escape the < > in the prefix and suffix of the URL (l. 416)-
    The xml code is & lt ; and & gt ;
    each without the spaces. Hope that's clear enough, I'm going to sleep now.
  • Hi,
    I`ve fixed the line 416.
    I'm affraid I did not understand the rest of your instructions...
  • if line 416 is fixed this should work - doesn't it?
  • Yes, it does (i did not completely fix it before...)
    I tried to do the same with other style, but the the same message came out again...
    git://gist.github.com/998462.git
  • Hi Adam and others,
    I`ve came back on trying with other style I customized:
    https://gist.github.com/998462
    ..but the message:
    this.style is undefined after upgrade
    persists.
    I tried the Zotero Reference pane, and it seems that the problem is on the line 490: I'm using the variable "call-number". It was inserted in the syntax on Zotero 1.0. However, it seems that now its unsupported. Is that what happened? Can it be fixed? I need to list the call number in some bibliographies i make...
  • Hi, I found that the problem is with the "text-align" formatting attribute. It worked before... How do I do it now?
  • not clear what you're trying to do - the style does not validate and produces these two errors:

    Error: Attribute delimiter not allowed on element text from namespace http://purl.org/net/xbiblio/csl at this point.
    From line 485, column 1; to line 485, column 71

    fix="."/>↩<text macro="collection-title" prefix=" (" delimiter="," suffix="); "/>↩<text

    Error: Attribute text-align not allowed on element text from namespace http://purl.org/net/xbiblio/csl at this point.
    From line 490, column 1; to line 491, column 54

    fix="↩"/>↩<text variable="call-number" prefix="↩[" suffix="]" font-weight="light" text-align="right"/>
  • Hi,

    Thank you for your anser.
    I am trying to do two things:
    . Insert a line break
    . Align the next line to the right margin
    (believe me, as it was written there, it did work on previous versions of Zotero)
    I found some interesting tips on this topic, with groups and display specification:
    http://forums.zotero.org/discussion/17479/
    However the line break through the use of group display="block" is workitn for the "note" and "call-number" variables, but not for the "abstract" variable. It works in the Reference Test Pane, but not on work bibliography...
    Right aligning is not working at all...
    Any tips?
    Here is my style code:
    https://gist.github.com/1071156
  • I have a similar issue with "this.style undefined". I found this .ens style and would like it converted to .csl. I didn't post it on github because it already has a url: http://www.mapress.com/zootaxa/support/Zootaxa.ens . Thank you.
  • edited September 29, 2011
    @walkers33: Yours is a separate issue from that of the original posters (wallhalla & danilo).

    Ordinarily I would recommend that you start a new thread, but under the EndNote Terms of Use, the Zootaxa.ens file can only be shared with licensed EndNote users, and only for use with EndNote itself.

    So it looks like you're stuck as far as automated conversion goes (or manual conversion, for that matter). You're not permitted to direct our attention to the file, and we're not permitted to look at it for those purposes. It's a shame, but the EndNote style has no value for what you want to do. You'll have to build the style from scratch in CSL.
  • I'll note, though, that you have never replied to me in your original thread and have never supplied the information we ask for with style requests.
    http://forums.zotero.org/discussion/19179/style-request-zootaxa/#Item_2
Sign In or Register to comment.