Great. Thank you!

On 2013-02-12, at 10:51 AM, Christiaan Hofman <[email protected]> wrote:

>
> On Feb 12, 2013, at 10:59, Jan Jakob Bornheim wrote:
>
>> I have a question regarding the Bibdesk template syntax. I don't know if 
>> what I want to do is possible, but if anyone has any pointers, I would be 
>> most grateful. I am currently preparing a Bibdesk template that implements 
>> the Oxford Standard for the Citation of Legal Authorities 
>> (http://www.law.ox.ac.uk/published/OSCOLA_4th_edn.pdf). In this style, I 
>> will need to perform two tests:
>>
>> The first one checks whether the value of the edition field is 1,2,3 or a 
>> value above 3, to allow the addition of the ordinal suffix "st", "nd", "d" 
>> or "th" (for what it's worth, I am hoping not to have any books that are 
>> beyond their 20th edition). The relevant part currently looks like this:
>>
>> <$Edition?><$fields.Edition/> edn, </$Edition?>,
>>
>> As you can see, it currently simply omits the ordinal suffix.
>
> You can replace <$fields.Edition/> by something like this:
>
> <$fields.Edition=1?>1st<?$fields.Edition=2?>2nd<?$fields.Edition=3?>3d<?$fields.Edition?><$fields.Edition/>th</$fields.Edition?>
>
>> A second test needs to checks whether the "editor" field contains more than 
>> one name. The relevant part currently looks like this:
>>
>> $editors.normalizedName.stringByRemovingCurlyBraces.@componentsJoinedByCommaAndAndWithEtAlAfterThree/>
>>  (ed)
>>
>> As you can see, it will currently alway print (ed), even when there is more 
>> than one editor
>>
>> Cheers,
>>
>> Jan Jakob
>
> <$editors.@count=1?>ed<?$editors.@count?>eds</$editors.@count?>
>
> Christiaan
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to