You could do this, but it'll take up a line whether there's a copy number
or not:

        ,copy['copy_number'] ? 'c.' + copy['copy_number'] : ''

On Mon, Oct 28, 2019 at 2:15 PM Terran McCanna <
tmcca...@georgialibraries.org> wrote:

> I'm not sure how to add logic in there to check for the existence of a
> copy number. If you wanted to add c. to *all* of the labels, you could try
> this:
>
>   ,get_cn_and_location_suffix(copy)
>
> to be:
>
>   ,"c. ", get_cn_and_location_suffix(copy)
>
>
>
>
> Terran McCanna, PINES Program Manager
> ------------------------------
>
> Georgia Public Library Service | University System of Georgia
>
> 2872 Woodcock Blvd, Suite 250 l Atlanta, GA 30341
>
> (404) 235-7138 | tmcca...@georgialibraries.org
>
> http://help.georgialibraries.org | h...@help.georgialibraries.org
>
> <https://www.facebook.com/georgialibraries>
> <https://www.twitter.com/georgialibs>
>
> Join our email list <http://georgialibraries.org> for stories of Georgia
> libraries making an impact in our communities.
>
>
>
> On Mon, Oct 28, 2019 at 1:01 PM Jennifer Pringle <
> jennifer.prin...@bc.libraries.coop> wrote:
>
>>
>> Hello,
>>
>> One of our libraries would like to include the item number on their
>> spine labels prefaces with c.  Adding  ,copy['copy_number'] to the
>> Call Number Template adds the item number but I can't figure out make
>> it so that c. appears before each item number.  Has anyone done this
>> or know if it's possible?
>>
>> Current Call Number Template Code
>>
>> <pre>
>> {{
>>      [
>>           get_cn_and_location_prefix(copy)
>>          ,copy['call_number.label']
>>         ,copy['copy_number']
>>          ,get_cn_and_location_suffix(copy)
>>      ]
>>      |
>>
>> cn_wrap:settings['webstaff.cat.label.call_number_wrap_filter_width']:settings['webstaff.cat.label.call_number_wrap_filter_height']:copy['call_number.label_class']
>> }}
>> </pre>
>>
>>
>>
>>
>> Thanks,
>>
>> Jennifer
>> --
>> Jennifer Pringle
>> Co-op Support
>> BC Libraries Cooperative
>> Tel: 1-888-848-9250
>> Email:jennifer.prin...@bc.libraries.coop
>> Website: http://bc.libraries.coop
>>
>> Gratefully acknowledging that I live and work in the unceded
>> Traditional Territory of the St'at'yemc Nations.
>>
>> _______________________________________________
>> Evergreen-catalogers mailing list
>> evergreen-catalog...@list.evergreen-ils.org
>>
>> http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-catalogers
>>
> _______________________________________________
> Evergreen-catalogers mailing list
> evergreen-catalog...@list.evergreen-ils.org
> http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-catalogers
>


-- 
Jason Etheridge
Senior Developer
Equinox Open Library Initiative
phone:  1-877-OPEN-ILS (673-6457)
email:  ja...@equinoxinitiative.org
web:  http://EquinoxInitiative.org

Reply via email to