Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KatieLai opened this issue Aug 9, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@KatieLai
Copy link

KatieLai commented Aug 9, 2022

Hi,

I've tried both "Ex Libris parsing <parsed_call_number>" and "SpineOMatic parsing <call_number>", 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 mgobat self-assigned this Aug 15, 2022
@mgobat mgobat added the question Further information is requested label Aug 15, 2022
@mgobat
Copy link
Collaborator

mgobat commented Aug 17, 2022

@KatieLai, I believe you are looking for the <alternative_call_number> element in the XML response from Alma. You could select the "SpineOMatic parsing" radio button and specify the "<alternative_call_number>" 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
Copy link
Author

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
Copy link
Collaborator

mgobat commented Aug 17, 2022

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

@mgobat mgobat added enhancement New feature or request and removed question Further information is requested labels Aug 17, 2022
@mgobat mgobat changed the title Print item call number if not empty Print item call number if not empty. If empty, print holdings call number. Aug 17, 2022
@CamilleGh
Copy link

@KatieLai,
If I understand this issue correctly, it's not possible for SpinOMatic to choose to print the <alternative_call_number> 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 <alternative_call_number> element, and if nothing appears, you select the second template with the holding call number ?
Thanks for your help
Camille

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants