Questions templates

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Questions templates

Jan David Hauck
Hello everybody,

I have two quick questions for creating a template.

(1)
Is there a way to tell BibDesk to check whether two fields have the same value?

If some book is translated and edited by the same person the Chicago Manual of Style recommends using:
"Translated and edited by ..."

Is there a way to modify this:
<$persons.Translator?>Translated by <$persons.Translator.name.stringByRemovingTeX.stringByAppendingFullStopAndSpaceIfNotEmpty.@componentsJoinedByCommaAndAnd/></$persons.Translator?><$editors?>Edited by <$editors.name.stringByRemovingTeX.stringByAppendingFullStopAndSpaceIfNotEmpty.@componentsJoinedByCommaAndAnd/></$editors?>

so that it checks first whether the translator and editor fields are identical and then prints that field

<  ???  >Translated and edited by <$persons.Translator.name.stringByRemovingTeX.stringByAppendingFullStopAndSpaceIfNotEmpty.@componentsJoinedByCommaAndAnd/>
< ??? >

(2)
What is the correct syntax for printing the date a URL is accessed. I have it in a separate field Urldate formatted as YYYY-MM-DD and would like to print it as January 17, 2015.

Thanks!

Jan



------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Bibdesk-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users
Reply | Threaded
Open this post in threaded view
|

Re: Questions templates

Christiaan Hofman

On Jan 18, 2015, at 4:35, Jan David Hauck wrote:

Hello everybody,

I have two quick questions for creating a template.

(1)
Is there a way to tell BibDesk to check whether two fields have the same value?


No.

If some book is translated and edited by the same person the Chicago Manual of Style recommends using:
"Translated and edited by ..."

Is there a way to modify this:
<$persons.Translator?>Translated by <$persons.Translator.name.stringByRemovingTeX.stringByAppendingFullStopAndSpaceIfNotEmpty.@componentsJoinedByCommaAndAnd/></$persons.Translator?><$editors?>Edited by <$editors.name.stringByRemovingTeX.stringByAppendingFullStopAndSpaceIfNotEmpty.@componentsJoinedByCommaAndAnd/></$editors?>

so that it checks first whether the translator and editor fields are identical and then prints that field

<  ???  >Translated and edited by <$persons.Translator.name.stringByRemovingTeX.stringByAppendingFullStopAndSpaceIfNotEmpty.@componentsJoinedByCommaAndAnd/>
< ??? >

(2)
What is the correct syntax for printing the date a URL is accessed. I have it in a separate field Urldate formatted as YYYY-MM-DD and would like to print it as January 17, 2015.

Thanks!

Jan

There is no way to parse strings as dates in a template, so you should make sure your field is in the syntax you want to include.

Christiaan


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Bibdesk-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users