[Koha] Replacing existing images in Koha with our own

David Liddle david at liddles.net
Sat Mar 4 05:37:53 NZDT 2023


Hi all, this topic fits in decently with a bug (enhancement request) I
just submitted about the koha-dump command, in which it does not
include files in the htdocs paths -- the very ones that the Aida is
working with. See
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33115

Perhaps it would be good to have a directory set up by koha-create
that is optimal for such files, in that it is accessible from the
staff interface (by appropriate roles) and has the right permissions
for use by the web server. This directory would not be overwritten by
upgrades, and it would be included in the koha-dump and koha-restore
routines. I'm afraid that I don't have a particular path to propose,
but I suspect that those who deal with the Koha files served to the
web might have a good idea.

Anyway ...

Aida, I suspect that the file permissions and ownership may not be
correct for that image you're using. Filezilla will show you this
information, which you can compare to the files that work. Or, you
might need to specify the URL in the preferences with the domain name
and not the IP address. With respect to permissions and ownership, if
you're in a terminal giving commands, then you might enter something
like this:
sudo chmod 644 /usr/share/koha/intranet/htdocs/logo.jpg
sudo chown root:root /usr/share/koha/intranet/htdocs/logo.jpg
These would produce results consistent with the file unavailable.html
that is included with Koha and displayed in maintenance mode.


On Fri, Mar 3, 2023 at 4:35 PM Katrin Fischer <katrin.fischer.83 at web.de> wrote:
>
> Hi,
>
> the logos and images don't need to be saved in the directory with the
> Koha files, it's even good if you don't do this as updates might remove
> them there. What you need is a place to store the files and images that
> can be accessed from your browser. Once you have an URL that works to
> show the picture in the browser, try to change Koha next using it.
>
> Hope this helps,
>
> Katrin
>
> On 03.03.23 16:24, library at ssst.edu.ba wrote:
> > Hi all,
> >
> > Another thing I don't understand is how to replace images (logos in the OPAC and the login etc.) with our own images. I have tried following instructions on https://www.vijenderkumar.com/2022/05/beautify-koha-staff-login-page.html
> >
> >>> Create an image for the logo or copy it from the institute's website. Save it in the home folder with the name 'logo.jpg'
> >>> Open the terminal and run the following command to paste the logo image in htdocs folder from the home folder
> >>> sudo cp logo.jpg /usr/share/koha/opac/htdocs
> >>> Now Open koha Staff Interface
> >>> koha administration➞ Global System Preferences➞Staff Client➞StaffLoginInstructions
> >>> Add the following html scripts in the StaffLoginInstructions...
> > How do I even save something to the home folder in the terminal?? When I tried using it to copy the image to /usr/share/koha/opac/htdocs nothing happened, so I asked one of our IT staff to install Filezilla for me so that I can at least move the files to these locations. I proceeded with the instructions and pasted the code to the StaffLoginInstructions, changed the IP: http://127.0.1.1 with our Koha OPAC IP but there's just a broken image where the logo is supposed to be. How in the world are others making these changes?
> >
> > Best regards
> >
> > Aida Đikić
> >
> >
> > -----Original Message-----
> > From: Koha <koha-bounces at lists.katipo.co.nz> On Behalf Of koha-request at lists.katipo.co.nz
> > Sent: Friday, March 3, 2023 12:00 AM
> > To: koha at lists.katipo.co.nz
> > Subject: Koha Digest, Vol 209, Issue 3
> >
> > Send Koha mailing list submissions to
> >       koha at lists.katipo.co.nz
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >       https://lists.katipo.co.nz/mailman/listinfo/koha
> > or, via email, send a message with subject or body 'help' to
> >       koha-request at lists.katipo.co.nz
> >
> > You can reach the person managing the list at
> >       koha-owner at lists.katipo.co.nz
> >
> > When replying, please edit your Subject line so it is more specific than "Re: Contents of Koha digest..."
> > _______________________________________________
> >
> > Koha mailing list  http://koha-community.org
> > Koha at lists.katipo.co.nz
> > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list