Hello, we were able to find a solution to this, and wanted to share with
the community in case anyone was interested. The code below accomplishes a
few goals of ours:
- Breaks the call number onto a new line at "/" -- this is to
accommodate BISAC
- Truncates each of those lines (instead of wrapping)
- Reserves the top three lines of the label for call numbers only, so
the author always appears on line 4, and the title always appears on line
5, no matter how many lines the call number actually needs.
We appreciate the helpfulness of the community so much, so we hope this
might be useful to someone else! Cheers!
In the Call Number Template area:
<pre>
{{
(
(get_cn_and_location(copy) ? get_cn_and_location(copy) + '\n' : '') +
(copy['call_number.label']).replaceAll(" ",
"_").split("_/_").join("\n").replaceAll("_", " ")
).split('\n')[0] | limitTo:
settings['webstaff.cat.label.call_number_wrap_filter_width']
}}
{{
(
(get_cn_and_location(copy) ? get_cn_and_location(copy) + '\n' : '') +
(copy['call_number.label']).replaceAll(" ",
"_").split("_/_").join("\n").replaceAll("_", " ")
).split('\n')[1] | limitTo:
settings['webstaff.cat.label.call_number_wrap_filter_width']
}}
{{
(
(get_cn_and_location(copy) ? get_cn_and_location(copy) + '\n' : '') +
(copy['call_number.label']).replaceAll(" ",
"_").split("_/_").join("\n").replaceAll("_", " ")
).split('\n')[2] | limitTo:
settings['webstaff.cat.label.call_number_wrap_filter_width']
}}
{{ copy['call_number.record.simple_record.author'] }}
{{ copy['call_number.record.simple_record.title'] }}
</pre>
--
Schedule a meeting with me! <https://calendar.app.google/KPqX4WkCKrH2LTak8>
Inge Kokidko (She/Her)
Assistant Director
Porter County Public Library System
103 Jefferson St.
Valparaiso, IN 46383
(219) 462-0524 ext. 35111
(219) 510-0209 (direct line)
On Tue, Mar 10, 2026 at 2:39 PM Elizabeth Hager via Evergreen-general <
[email protected]> wrote:
> Apologies for cross posting. We are reclassifying our picture book
> collection from dewey to BISAC and I'm trying to find a way to force the
> "Call Number field" to always be 3 lines on our spine/pocket labels, even
> when the field does not require 3 lines.
>
> So far I can force it by using two spaces and a slash (repeated twice) " /
> " at the end of a single line, but it looks strange in the staff and patron
> catalog and we'd like to avoid doing that if possible. We can also manually
> force the line when we print the label, but when we are mass printing it
> takes a lot of time to add the lines and we want to avoid having to do that
> long-term.
>
> I'm curious if someone might know of a code to force that field to be 3
> lines regardless of the number of lines actively being used.
>
> Thanks for any suggestions or help you can provide!
>
> --
> Elizabeth Hager (she/her)
> Collections Coordinator
> Porter County Public Library
> 103 Jefferson St.
> Valparaiso, IN 46383
> 219-462-0524 ext. 35128
> _______________________________________________
> Evergreen-general mailing list -- [email protected]
> To unsubscribe send an email to
> [email protected]
>
_______________________________________________
Evergreen-general mailing list -- [email protected]
To unsubscribe send an email to [email protected]