[Evergreen-general] spine label line breaks

Inge Kokidko ikokidko at pcpls.org
Thu Sep 7 13:12:39 EDT 2023


I want to thank Galen from Equinox and members of the Evergreen Indiana
team for all their help with this over the last couple months, we have come
to the following solution, in case anyone else was curious about how this
worked out:

<pre>
{{copy['location.name']}}
{{
(
[
get_cn_and_location(copy)
,(copy['call_number.label']).replaceAll(" ", "_").split("_/_").join(" "),
]
|
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']
).replaceAll("_", " ")
}}
{{copy['call_number.record.simple_record.author']}}
</pre>

This ends up printing something like this:

Adult Nonfiction
TECHNOLOGY & ENGINEERING
Drafting & Mechanical Drawing
McKimmey, Vickie 1959-


This was a great support experience, and I'm so grateful to have this
community. Thanks everyone!

--
Schedule a meeting with me! <https://calendar.app.google/KPqX4WkCKrH2LTak8>

Inge Kokidko (She/Her)
Associate Director of Support Services
Porter County Public Library System
103 Jefferson St.
Valparaiso, IN 46383
219-462-0524 x35111



On Tue, Sep 5, 2023 at 2:59 PM Inge Kokidko <ikokidko at pcpls.org> wrote:

> Hello, we have some major collection projects that are dependent on what
> we can or can’t do with our spine labels. The Evergreen Indiana state
> consortium has been unable to help us, and we got in trouble last time we
> tried to contract Equinox for help, so I really hope someone here can point
> us in the right direction.
>
> We are unsure how to modify spine label templates to accomplish the
> following (or if it is even possible):
>
>    1. create line breaks on “forward slash” (instead of “space”) to
>    accommodate BISAC call numbers
>    2. limit the total length of any of those lines to 28 characters.
>
> For example, if the call number field is populated with:
>
>> TECHNOLOGY & ENGINEERING / Drafting & Mechanical Drawing
>
> We want it to print like this:
>
>> TECHNOLOGY & ENGINEERING
>> Drafting & Mechanical Drawin
>
> Please note the final "g" is cut off from "drawing" because it was the
> 29th character.
>
>
> This is our current template:
>
> <pre>
>> {{
>>     [
>>          get_cn_and_location_prefix(copy)
>>         ,copy['call_number.label']
>>     ]
>>     |
>> 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>
>
>
> I'm not a developer, but I'm willing to try and learn or dabble but I
> don’t even know where to start. What is the code that is used? Is there an
> online dictionary or syntax help that I can explore? I didn't see anything
> in the Evergreen documentation that was helpful.
>
>
> We are also willing to consider using the “pocket label” *as *the “spine
> label”, as a last-ditch effort, if the code for that is more accommodating
> to what we are trying to do. The downside is that we can’t modify the spine
> labels on the fly.
>
> The outcome of this is a major bottleneck for a spine label retrofit we
> would like to start work on. Any help is greatly appreciated.
>
> --
> Schedule a meeting with me!
> <https://calendar.app.google/KPqX4WkCKrH2LTak8>
>
> Inge Kokidko (She/Her)
> Associate Director of Support Services
> Porter County Public Library System
> 103 Jefferson St.
> Valparaiso, IN 46383
> 219-462-0524 x35111
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.evergreen-ils.org/pipermail/evergreen-general/attachments/20230907/b7d2de74/attachment.htm>


More information about the Evergreen-general mailing list