ExLibrisGroup / spineomatic-cloudapp

Cloud App version of SpineOMatic
BSD 3-Clause "New" or "Revised" License
5 stars 5 forks source link

Use individual parsed call number lines, or limit the number of lines displayed from the parsed call number #94

Closed jonahhighmanUWA closed 1 year ago

jonahhighmanUWA commented 1 year ago

Hi there,

Our spine labels fit up to 8 lines of text. In our current desktop implementation of SpineOMatic, we use the 'Custom' call number format setting to directly arrange data from the XML sources:

<library_code>
<location_code>
<parsed_call_number><call_no_1>
<parsed_call_number><call_no_2>
<parsed_call_number><call_no_3>
<parsed_call_number><call_no_4>
<parsed_call_number><call_no_5>
<issue_level_description>

This lets us:

In testing the cloud app, I've been able to mostly replicate this with these field codes, and setting up label prefixes for each library code (works well as in the cloud app I only have to do it once for the whole institution)

{{field:prefix}}
{{field:item_data.location.value}}
{{field:item_data.call_no}}
{{field:item_data.description}}

My only trouble is that when 'item_data.call_no' goes into its full 6 lines, it pushes the label content past 8 lines and off the edge into the next label. This throws out the layout of the subsequent labels.

In template configuration, I either need:

jonahhighmanUWA commented 1 year ago

Thanks for considering this request/feedback and for any advice you may have! :)

mgobat commented 1 year ago

@jonahhighmanUWA, would the problem be solved if we added an option labeled "Maximum call number parts", applicable only if the "Line breaks between call number parts" option is enabled?

For example, if the call number was "Z56 .S69 1942", and the "Line breaks between call number parts" was checked, and 2 was specified as the "Maximum call number parts", what would get printed is:

Z56 .S69

jonahhighmanUWA commented 1 year ago

Hi @mgobat, Yes I believe it would - I would set the 'Maximum call number parts' option to '5' so that no more than 5 call number lines appeared on the label, so that (for example) 'QC 300 G662(9.03) F749(.03) +2' would result on the label:

QC
300
G662
(9.03)
F749
mgobat commented 1 year ago

Included in release v.1.2.9.