Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Our printer models are Datamax E-4203, Attune Delta A2 and TSC TA310.
The label sizes are 38mm x 25mm (Haaga-Helia, Laurea) and 36mm x 23mm (Metropolia)

Our needs:

Label 1. All information is taken from itemcallnumber

Image Modified

...

The label should look like this.

...



Image Added
On the first line there is shelf number
On the second line main word (VEAL) is printed.

...


- The challenge: If the main word is long, it is splitted to the third/

...

fourth line.

...

In Koha-Suomi version, we manually fix these by putting a shorter word to Koha at first, and after printing, we change it back to normal.

...


Label 2. All information is taken from itemcallnumber


  and the The label should look like this, since the .

Image Added

On the first line there is shelf number. BTW, the longest shelf number is 658.8.012.1 (at Pasila campus).
One the second line, main word (PILLOT DE CHENECEY) is cropped to 3

...

characters (PIL).

Image Removed

How to get labels we need?

...

  • I've created a template and a label layout (bot with name both are named as Finn-ID 38mm x 25mm), and printer profile (Datamax/Attune) for testing purposes.
  • I manage to print labels for Haaga campus. Unfortunately, it is not enough! We need to split call numbers' second line to 3-letters/characters

...

More detailed information e.g. on splitting call numbers, see https://bywatersolutions.com/education/using-the-label-plugin-in-koha-part-2

  • There seems to be mistakes/errors on documentation. Their code shown below should do the splitting part. But is it correct? / 12.6.2020 jmiettunen

...

$(this).html(theNewText);

})

});


Perl split functions (no idea if this is useful...) / 19.10.2020 jmiettunen
see: https://www.geeksforgeeks.org/perl-split-function/