Re: [Bibdesk-users] Template question - conditioning on the journal name

2022-04-11 Thread nathan . artist


Responding to Jason's question about BibDesk's HTML rendering, Christiaan can 
correct me if I'm wrong, but I would guess that BibDesk's preview uses Apple's 
Cocoa text system to interpret the HTML as rich text. I don't know if Apple has 
documented anywhere exactly which tags are interpreted by the Cocoa text 
system, but it's a small subset of HTML+CSS, nothing like WebKit's 
capabilities. Cheers, Nathan



___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


[Bibdesk-users] BibDesk 1.8.9

2022-04-11 Thread Christiaan Hofman
The BibDesk development team is pleased to announce that a new version of 
BibDesk, version 1.8.9, is now available. 

We thank the users who have contributed to BibDesk development by sharing their 
experiences with BibDesk, and testing nightly builds. 

This release can be obtained by selecting "check for updates" in the "BibDesk" 
menu, visiting the Sourceforge downloads page at

https://sourceforge.net/projects/bibdesk/ 


or by visiting the BibDesk home page at

https://bibdesk.sourceforge.io/ 

or by following the link below, which will begin immediate download:

https://sourceforge.net/projects/bibdesk/files/BibDesk/latest/download 


For those interested follow the full release notes for this version.

Release notes for BibDesk version 1.8.9

New Features
  *  Display note fields in main table using icons and tool tips
  *  New hidden preference to use custom images in main table cells

Bugs Fixed
  *  Workaround for clipboard managers to block copying TeX generated data
  *  Fix enabling of import buttons for external groups
  *  Make sure text fields in main table are displayed in a single line

___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Template question — conditioning on the journal name

2022-04-11 Thread Christiaan Hofman


> On 10 Apr 2022, at 23:48, Alexander,J  wrote:
> 
> What is the syntax for conditioning on the full name of a journal, in a HTML 
> template? 
> 
> I ask because I’ve been trying to write a custom HTML preview template that 
> will, for article entries, condition on the name of the journal so as to 
> include a thumbnail image of the journal to the left of the formatted 
> reference.  At present, my template includes the following code (surrounding 
> HTML omitted, relevant portion boldfaced):
> 
> <$pubType=article?>
> 
> 
> 
> <$fields.journal.lowercaseString="advances in applied probability"?>
>  src="https://jmckalex.org/graphics/journals/advances_in_applied_probability.jpg
>  
> ">
> 
> https://jmckalex.org/graphics/journals/journal-sm.jpg 
> ">
> 
> 
>  class="content"><$authors.name.stringByRemovingTeX.@componentsJoinedByCommaAndAnd/>
>  (<$fields.month?><$fields.month/> <$fields.year/>). 
> "<$fields.title/>." <$fields.journal/>,
> <$fields.volume?>
> <$fields.volume/><$fields.number?>(<$fields.number/>)
> 
> <$fields.pages?>: <$fields.pages.stringByConvertingDoubleHyphenToEndash/>.
> 
> 
> 
> 
> 
> 
> 
> :
> :
> 
> 
> The conditional template tag, as written, doesn’t work and doesn’t even 
> display the default image specified for when no match occurs.
> 
> If I change the relevant portion to simply this:
> 
> 
> https://jmckalex.org/graphics/journals/journal-sm.jpg 
> ”>
> 
> 
> Then the default image appears.
> 
> Any suggestions about what I’m doing wrong would be greatly appreciated!
> 
> In case anyone is interested, here are some links illustrating how the 
> template looks so far.  Notice that embedded HTML tags in the “Annote” field 
> are processed so as to allow simple markup, like boldface, italic and lists.  
> (I don’t know the full capabilities of Bibdesk’s HTML rendering engine, but I 
> think it’s not proper html5 because a lot of standard markup techniques don’t 
> work.)
> 
> https://www.dropbox.com/s/w2qd1sebutnfkhm/bibdesk-html-1.png?dl=0 
>  
> https://www.dropbox.com/s/kcfrjjvdeyjjpm4/bibdesk-html-2.png?dl=0 
>  
> 
> Many thanks,
> 
> Jason

You should use the same key path fields.journal.lowercaseString in all related 
tags, and you should not enclose the value in double quotes.

<$fields.journal.lowercaseString=advances in applied probability?>
...

...
<$fields.journal.lowercaseString?>

Christiaan

___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users