Menu

#521 How to format subtitles in Style?

Unknown
closed
None
6.7.0
Bug
8.2
Linux
2023-02-15
2023-02-04
Joachim
No

Hi Mark,

since 6.6.5 the formatting of resources with the CFB style is weird. The subtitle has lost capitalization, in contrast to the title. I can't edit this in the Styles editor, as far as I can see. How can I repair this?

Best
Joachim

Discussion

  • Mark Grimshaw

    Mark Grimshaw - 2023-02-04
    • assigned_to: Mark Grimshaw
     
  • Mark Grimshaw

    Mark Grimshaw - 2023-02-04

    Hi Joachim,

    It's working for me (just tested). You have three options for subtitles: leave the words unchanged, lowercase the first letter, uppercase the first letter. These options can be found when editing the style in the 'Bibliography Titles' block.

    Let me know how you get on.

    Regards,

    Mark

     
    • Joachim

      Joachim - 2023-02-04

      Ah, I see. But choosing and saving "Words unchanged" gives me a fatal error:

      Warning: foreach() argument must be of type array|object, bool given in /var/www/wikindx/core/bibcitation/PARSEXML.php on line 62
      
      Warning: foreach() argument must be of type array|object, bool given in /var/www/wikindx/core/bibcitation/PARSEXML.php on line 62
      
      Warning: foreach() argument must be of type array|object, bool given in /var/www/wikindx/core/bibcitation/PARSEXML.php on line 62
      
      Warning: Undefined array key "fallback" in /var/www/wikindx/core/bibcitation/BIBCITEGATEWAY.php on line 1951
      
      Warning: Trying to access array offset on value of type bool in /var/www/wikindx/core/bibcitation/BIBCITEGATEWAY.php on line 2001
      
      Warning: Trying to access array offset on value of type bool in /var/www/wikindx/core/bibcitation/BIBCITEGATEWAY.php on line 448
      
      Warning: Trying to access array offset on value of type bool in /var/www/wikindx/core/bibcitation/BIBCITEGATEWAY.php on line 463
      
      Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /var/www/wikindx/core/bibcitation/libs/CITE.php:1468 Stack trace: #0 /var/www/wikindx/core/bibcitation/libs/CITE.php(1468): array_key_exists() #1 /var/www/wikindx/core/bibcitation/BIBCITEGATEWAY.php(1148): CITE\replacementYears() #2 /var/www/wikindx/core/bibcitation/BIBCITEGATEWAY.php(437): BIBCITEGATEWAY->loadTemplates() #3 /var/www/wikindx/core/lists/LISTCOMMON.php(128): BIBCITEGATEWAY->initialize() #4 /var/www/wikindx/core/startup/FACTORY.php(1309): LISTCOMMON->__construct() #5 /var/www/wikindx/core/libs/FRONT.php(52): FACTORY_LISTCOMMON::getInstance() #6 /var/www/wikindx/index.php(96): FRONT->__construct() #7 {main} thrown in /var/www/wikindx/core/bibcitation/libs/CITE.php on line 1468
      

      The database is no longer accessible :-(

       
  • Mark Grimshaw

    Mark Grimshaw - 2023-02-04

    Hi Joachim,

    hmmm. This doesn't happen for me ('Words as entered' for both Title and Subtitle) on APA style.

    I do, however, get serious problems (fatal errors etc. like you) with your CFB style so it is definitely something I need to look into.

    To get your WIKINDX back up and running:
    1. Download the latest CFB style from here: https://sourceforge.net/projects/wikindx/files/archives/components/style/trunk/ (the one that's xxxx_1094 dated 30th January). Unzip it and use the three files to replace the ones in components/styles(cfb/

    You should be up and running again. For now, don't touch the style editor until I can figure out what is going on.

    Let me know if you you're back up and running.

    Regards,

    Mark

     
  • Mark Grimshaw

    Mark Grimshaw - 2023-02-04

    . . . and, although not recommended, you can edit the components/styles/cfb/cfb.xml style in a text editor (see the screenshot) if you need to:
    0: unchanged
    1: First letter capitalized
    2: All lowercased.

    note that title capitalisation only has the first two options.

    I just tried this on your CFB style and I'm still up and running.

    Mark

     
  • Joachim

    Joachim - 2023-02-04

    Great! The server is up and running and I have my subtitle formatting right. Thanks a lot!

     
  • Mark Grimshaw

    Mark Grimshaw - 2023-02-04

    Great. I'll let you know how I get on with debugging this. There's something specific to your style file.

    Mark

     
  • Mark Grimshaw

    Mark Grimshaw - 2023-02-15
    • status: open --> closed
     
  • Mark Grimshaw

    Mark Grimshaw - 2023-02-15

    The crash has been fixed in SVN so you can safely edit the style again.

    Mark

     

Log in to post a comment.