Looking closely at the Avery Template (there is a place to see all the code), you can see what details are included in this template: title, barcode, itemnumber
Now let’s look at the next template- the multi-size label sheet. Same principles as above - this template can be edited, copied or deleted. Let’s look more closely at this template and what it will display from what is in the template:
Splitting Call Numbers
Jessie asked a great question about call number splitting! Thank goodness we had an expert web designer on the video with us! Lucas does have a way to split the call number a space or a period. However, if you are a partner of Bywater Solutions and need assistance with this, please submit a ticket! Lucas is happy to help. Here is the code that he added to the template that needed the call number split:
$(document).ready(function () {
$('.label').each(function() {
let theText = $(this).text();
let theNewText = theText.trim().replace(/\s+/g, '
').replace('.' , '
.');
$(this).html(theNewText);
})
});
This code was added into the template- here is a look at the entire code of the template to get a better understanding of where it goes:
[% FOREACH item IN items %]
[% IF loop.index % 1 == 0 %]
[% SET label_index = 1 %]
[% UNLESS loop.first %]
[% END %]
[% END %]
[% item.marc.subfield('949','a') %]
[% IF loop.last %][% END %]
[% SET label_index = label_index + 1 %]
[% END %]
$(document).ready(function () {
$('.label').each(function() {
let theText = $(this).text();
let theNewText = theText.trim().replace(/\s+/g, '
').replace('.' , '
.');
$(this).html(theNewText);
})
});