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

Title field issue: allow configuration of subfields to include. #117

Open
Anchi77 opened this issue Sep 21, 2023 · 9 comments
Open

Title field issue: allow configuration of subfields to include. #117

Anchi77 opened this issue Sep 21, 2023 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@Anchi77
Copy link

Anchi77 commented Sep 21, 2023

Hi Support,

I would like to check about the "title" field, in the article, it mentioned that "Title has special formatting options available. Click the Title dropdown to select any special formatting."

  1. It seems we can only use numbers to truncate title?

  2. what does the negative number mean in the field?
    image

  3. different titles have different numbers. Is it okay to specifically only display $a (245$a or 200$a)?

Many thanks,
Anchi

@mgobat
Copy link
Contributor

mgobat commented Sep 21, 2023

HI @Anchi77...

If the bib_data.title is included in a template, and a non-zero and non-negative number is supplied for the "Truncate title characters" field, then the title will be truncated to the specified length on the label. For example, if the title is "Medical progress.", and the "Truncate title characters" is 3, then only "Med" will be printed on the label. If 0 or a negative number is supplied for the "Truncate title characters" field, then it is ignored and the entire title will print on the label.

@Anchi77
Copy link
Author

Anchi77 commented Sep 22, 2023

Hi Support,
Thanks for your prompt reply.

Do you mean that 0 or a negative number supplied for the "Truncate title characters" field is the same?
Because all the titles are different, customers do not want to use the character count to display, they only want to display the $a, is there any way we can manage this?

like title is
泰坦尼克号 [音像制品] . = Titanic
they only want to display
泰坦尼克号
image

二十世纪名曲百分百 [音像制品]
they only want to display 二十世纪名曲百分百
image

for this situation, we can't use the truncate title to display.

Many thanks,
Anchi

@mgobat
Copy link
Contributor

mgobat commented Sep 25, 2023

Hi @Anchi77...

I believe the REST API that the SpineOMatic Cloud App uses gets the full title subfield a in the response.

If you specify a negative number or a 0 for the "Truncate title characters", it is ignored, and the entire title (subfield a) should print on the label.

I tested with my title subfield a set to 泰坦尼克号 [音像制品] and my "Truncate title characters" set to 5. This resulted in 泰坦尼克号 printing on the label.
Testing again with my title subfield a set to 二十世纪名曲百分百 [音像制品] and my "Truncate title characters" set to 5, I get 二十世纪名 printed on my label.

This is the expected behavior.

It appears you want print the title subfield a up to a certain character. Is that correct? If so, this option is not supported in the SpineOMatic Cloud App.

@mgobat mgobat self-assigned this Sep 25, 2023
@mgobat mgobat added the question Further information is requested label Sep 25, 2023
@Anchi77
Copy link
Author

Anchi77 commented Oct 13, 2023

Hi Support,
Thanks for your prompt reply. Sorry for my late confirmation.

You mentioned that
"It appears you want print the title subfield a up to a certain character. Is that correct?"

We would like to only get the whole "subfield a" value, do not need to add any condition.

For now, it displays
245 $a $b $c
We only want to display
245 $a

Is it possible?

Many thanks,
Anchi

@mgobat
Copy link
Contributor

mgobat commented Oct 16, 2023

Hi @Anchi77,

You've included {{field:bib_data.title}} in your template, and you are getting more than the 245a for this field on your label? Interesting. I wonder if there is some configuration setting in Alma giving you this behavior. In my test templates which include {{field:bib_data.title}}, I only get the 245a on my labels.

Let me check if there is some other setting in Alma that could be affecting the behavior.

@Anchi77
Copy link
Author

Anchi77 commented Oct 17, 2023

Hi Support,
Thanks for your reply, I hope all is well with you.

Yes, When I use {{field:bib_data.title}} in my template, I will get 245a and also 245b.

For example, SUST0050065756
image

The label will display the following:
image

And our configuration displays with
image

Please help to check, many thanks,
Anchi

@mgobat
Copy link
Contributor

mgobat commented Oct 17, 2023

Hi @Anchi77.

I haven't yet learned why the API that the SpineOMatic Cloud App uses would return more than the 245a for the bib_data.title field. The Cloud App prints on the label whatever is returned. It isn't aware that the value is more than the 245a.

I will work with Support to find out what setting in Alma is causing this behavior. Once we find the setting, if it is changed to only return the 245a, it will affect other places that are expecting more than the 245a, too. So while it might fix it for spine labels, it might have an adverse effect somewhere else.

@Anchi77
Copy link
Author

Anchi77 commented Jan 3, 2024

Hello Support,
Happy New Year~

Sorry for chasing this case, do you have any update about this case?

Thank you so much!
Anchi

@mgobat
Copy link
Contributor

mgobat commented Jan 9, 2024

Hi @Anchi77.
Unfortunately, there is no way to configure which subfields are included in the title used for the spine labels. I will relabel this issue as an enhancement request to be considered.

@mgobat mgobat added enhancement New feature or request and removed question Further information is requested labels Jan 9, 2024
@mgobat mgobat changed the title Title field issue Title field issue: allow configuration of subfields to include. Jan 9, 2024
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

2 participants