ExLibrisGroup / SpineOMatic

Spine label printing for Ex Libris' Alma
MIT License
36 stars 18 forks source link

Print item call number if not empty. If empty, print holdings call number. #50

Open KatieLai opened 2 years ago

KatieLai commented 2 years ago

Hi,

I've tried both "Ex Libris parsing " and "SpineOMatic parsing ", but they all print the holding call numbers only. However, I want to print the holding call number only if item call number is empty and print the item call number if it's not empty. Is there a way I can include this instruction in the program? We use parse routine 5 in Alma.

Here is my current setting.

Screenshot 2022-08-09 at 3 13 54 PM

This is our item in Alma. Note that the end of the holding and item call numbers are different.

Screenshot 2022-08-09 at 3 23 12 PM

Many thanks as always for your guidance.

Best regards, Katie

mgobat commented 2 years ago

@KatieLai, I believe you are looking for the element in the XML response from Alma. You could select the "SpineOMatic parsing" radio button and specify the "" as the source of the information. Unfortunately, I don't believe there is a way to do "either this call number or that call number"....at least I'm not seeing any way documented on the Wiki page.

KatieLai commented 2 years ago

Thank you @mgobat

Yes, that's what I did as a work around -- Using Spine Label type template for call numbers taken from the holding records, and a Custom Label type template for those taken from the item records. It would be good to have the either or function though so that we can save the custom template for something else.

mgobat commented 2 years ago

@KatieLai, I'll change this to an enhancement request.

CamilleGh commented 4 months ago

@KatieLai, If I understand this issue correctly, it's not possible for SpinOMatic to choose to print the element and then, if this is empty, to print the holding's call number? So your solution is to use two templates with two different sources? Does this mean that you first select the template with the source element, and if nothing appears, you select the second template with the holding call number ? Thanks for your help Camille