With Coding
‘More images more graphics’.
By changing some Perl and concert script in Koha we can add more images to the layout. Here we are adding one more image to Koha’s layout. Thus it becomes 3 images including the patron image and its looks like in the PIC-1 shown above.
Code Changes
Before making the following change you must take backup of the following code original file for safety and also for any error in the future update. We tried this in ver20.05
We need to replace the default edit-layout.pl from /usr/share/koha/intranet/cgi-bin/patroncards with the updated one which you can download from here.
Similarly replace the default edit-layout.tt from /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/patroncards with the updated one which is included in the above downloaded file.
Run the following command after replace the files.
sudo chmod a+x /usr/share/koha/intranet/cgi-bin/patroncards/edit-layout.pl
After these action the layout option will show that we can add 3 images data when you create a new layout. With this benefit, we design the 3 images in our patron card.
By default Koha barcode in the patron card occupies by 20% the height of the card and 90% of the width of the card. This will result in a big barcode in our CR 80 design as shown in the PIC-3. So for decreasing the size we change the barcode parameter scale height and Scale width.
Same like this we can design a back page of ID card with the single static data image as shown on the PIC-1‘s right side or you can repeat the same step like the front page for the back page with multiple images by creating a different layout for the front page and back page.