Koha stores the item type images in the following two separate locations:-
For Staff client:-/usr/share/koha/intranet/htdocs/intranet tmpl/prog/img/itemtypeimg/
For OPAC:- /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/itemtypeimg/
Under the 'itemtypeimg' folder, there are several subfolders (e.g. bridge, carredart, colors, crystal-clear, liblime-kids, npl, Seshat, vokal) containing the images for the itemtype category.
Let us know how to create our own image tab for the item-type images.
Create a folder in the home directory. For example, we created a folder named "mylibrary"
Now Create the images for the item type in .gif format. The usual image sizes are 40×40 pixels for the itmetype. Put all the .gif images in the "mylibrary" folder
"mylibrary" is just a name we are using here, you can use any other name but it should not be one that is already used in koha item type category.
Now copy the folder through the command line in both directories (itemtypeimg) of staff client and OPAC.
Apply the following command in the terminal.
Staff Client
sudo su
sudo cp -R /home/koha/mylibrary /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/img/itemtypeimg
OPAC
sudo su
sudo cp -R /home/koha/mylibrary /usr/share/koha/opac/htdocs/opac-tmpl/bootstrap/itemtypeimg
(in the above-mentioned commands, locate the "mylibrary" folder carefully in my case it is home/koha/mylibrary in your case it may be different)
Now your item type images set has been successfully added. You can see your custom images tab in the itemtype category
Home -> Administration -> Item types -> Add Item type or edit Item type
1 Comments
I am too much how to create item type image , today I knew it's very simple to create image. It's so helpful and useful. Thanks again sir to cooperate in KOHA
ReplyDelete