Re: [Koha] Replacing existing images in Koha with our own
You can through "upload files" in the Tools menu, but I'm still figuring that part out. That way is going to give you links like this: http://cheerfulvalleypl.online/cgi-bin/koha/opac-retrieve-file.pl?id=c2d89052832944dce2a1c001a3014a5c ...and you'll be able to look at them with the "access files" option, also on the Tools menu. I *think* the main difference is that you can do that via the Koha staff interface whereas the method I described below requires access via SFTP. Can someone with more knowledge than I chime in? --Fred Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: libr...@ssst.edu.ba Sent: Monday, March 6, 2023 4:39 AM To: King, Fred Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] RE: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Hello Fred, Thanks for continuing to look into this. I did finally manage to get an image to show up but had to convert the .svg file our devs use for the logo to a .png so I could upload it to an outside service. I'd prefer to use internal file links, and I'll try those commands soon. I wonder if it's possible to upload a file within the Koha librarian interface, and then use direct links to them??? (There's also an interesting piece of footer customization here: https://koharesourcepoint.wordpress.com/2021/02/23/how-to-create-mobile-responsive-footer-in-koha-opac/ It looks like something I could adapt for some additional links and a photo of the library or a shelving location diagram.) Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 10:45 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own My last post for the day, I promise. I have dinner to cook. When last we met, I had figured out how to make pictures and other files easily accessible from Koha by putting them in /usr/share/koha/opac/htdocs. That would make them directly available as, for example, http://cheerfulvalleypl.online/nap_time.png That had the disadvantage of being in the same folder structure as the Koha program files. If you don't want them there, you can create a symbolic link to, for example, /var/www/html. From the Ubuntu command line, type ln -s /var/www/html /usr/share/koha/opac/htdocs Then you can link to a file in a folder not in the Koha folder structure. For example, to display the file /var/www/html/fred_king_mla.png the web address is http://cheerfulvalleypl.online/html/fred_king_mla.png This works for PDF files as well. Probably pretty much any file type, but I've just tried those two. What I haven't figured out is how to get the /html out of the address. Linking to /var/www doesn't work. However, that's a very minor complication that I don't really care about. Comments and suggestions welcome, especially if I've gotten something wrong. Especially that. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:26 PM To: King, Fred Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] RE: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Hello Fred - I will have to do something, but I'll leave it for later :) It looks like you succeeded - I only see the one image! Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 6:19 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: RE: [Koha] Replacing existing images in Koha with our own I'm working on this very problem as part of rebuilding the MedStar Authors catalog. As a workaround, you could try putting the images on a different server and linking to them. Take a look at cheerfulvalleypl.online. The image of the library is on http://dokument.space/cvl_library_300.jpg. If you see any other pictures, it means I may have figured something out but I'm going to work on it next week. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6
Re: [Koha] Replacing existing images in Koha with our own
Hello Fred, Thanks for continuing to look into this. I did finally manage to get an image to show up but had to convert the .svg file our devs use for the logo to a .png so I could upload it to an outside service. I'd prefer to use internal file links, and I'll try those commands soon. I wonder if it's possible to upload a file within the Koha librarian interface, and then use direct links to them??? (There's also an interesting piece of footer customization here: https://koharesourcepoint.wordpress.com/2021/02/23/how-to-create-mobile-responsive-footer-in-koha-opac/ It looks like something I could adapt for some additional links and a photo of the library or a shelving location diagram.) Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 10:45 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own My last post for the day, I promise. I have dinner to cook. When last we met, I had figured out how to make pictures and other files easily accessible from Koha by putting them in /usr/share/koha/opac/htdocs. That would make them directly available as, for example, http://cheerfulvalleypl.online/nap_time.png That had the disadvantage of being in the same folder structure as the Koha program files. If you don't want them there, you can create a symbolic link to, for example, /var/www/html. From the Ubuntu command line, type ln -s /var/www/html /usr/share/koha/opac/htdocs Then you can link to a file in a folder not in the Koha folder structure. For example, to display the file /var/www/html/fred_king_mla.png the web address is http://cheerfulvalleypl.online/html/fred_king_mla.png This works for PDF files as well. Probably pretty much any file type, but I've just tried those two. What I haven't figured out is how to get the /html out of the address. Linking to /var/www doesn't work. However, that's a very minor complication that I don't really care about. Comments and suggestions welcome, especially if I've gotten something wrong. Especially that. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:26 PM To: King, Fred Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] RE: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Hello Fred - I will have to do something, but I'll leave it for later :) It looks like you succeeded - I only see the one image! Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 6:19 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: RE: [Koha] Replacing existing images in Koha with our own I'm working on this very problem as part of rebuilding the MedStar Authors catalog. As a workaround, you could try putting the images on a different server and linking to them. Take a look at cheerfulvalleypl.online. The image of the library is on http://dokument.space/cvl_library_300.jpg. If you see any other pictures, it means I may have figured something out but I'm going to work on it next week. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: Koha On Behalf Of libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:07 PM To: David Liddle Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] Re: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: #logo { background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0; float: left!important; padding: 0; } Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the
Re: [Koha] Replacing existing images in Koha with our own
My last post for the day, I promise. I have dinner to cook. When last we met, I had figured out how to make pictures and other files easily accessible from Koha by putting them in /usr/share/koha/opac/htdocs. That would make them directly available as, for example, http://cheerfulvalleypl.online/nap_time.png That had the disadvantage of being in the same folder structure as the Koha program files. If you don't want them there, you can create a symbolic link to, for example, /var/www/html. From the Ubuntu command line, type ln -s /var/www/html /usr/share/koha/opac/htdocs Then you can link to a file in a folder not in the Koha folder structure. For example, to display the file /var/www/html/fred_king_mla.png the web address is http://cheerfulvalleypl.online/html/fred_king_mla.png This works for PDF files as well. Probably pretty much any file type, but I've just tried those two. What I haven't figured out is how to get the /html out of the address. Linking to /var/www doesn't work. However, that's a very minor complication that I don't really care about. Comments and suggestions welcome, especially if I've gotten something wrong. Especially that. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:26 PM To: King, Fred Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] RE: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Hello Fred - I will have to do something, but I'll leave it for later :) It looks like you succeeded - I only see the one image! Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 6:19 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: RE: [Koha] Replacing existing images in Koha with our own I'm working on this very problem as part of rebuilding the MedStar Authors catalog. As a workaround, you could try putting the images on a different server and linking to them. Take a look at cheerfulvalleypl.online. The image of the library is on http://dokument.space/cvl_library_300.jpg. If you see any other pictures, it means I may have figured something out but I'm going to work on it next week. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: Koha On Behalf Of libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:07 PM To: David Liddle Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] Re: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: #logo { background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0; float: left!important; padding: 0; } Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the instructions over the weekend - I should have gone home two hours ago! Best regards Aida Đikić -Original Message- From: David Liddle Sent: Friday, March 3, 2023 5:59 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own Aida, there is another method that can be used, which is similar to what is described here: https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead. You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result. That's the method that our system uses. It doesn't change the fact that permissions and links need to be correct, and it doesn't change the possibility that files placed in the htdocs directory may be overwritten. One advantage that I can think of over the method you found is this: by defining the logo in Intra
Re: [Koha] Replacing existing images in Koha with our own
Aida et al., Try this (adapted from https://www.vijenderkumar.com/2022/05/beautify-koha-staff-login-page.html, but slightly simplified.) Create an image that you want to put on your Koha login screen. Put it somewhere on your computer. Use FileZilla to upload it from your computer to your Koha system. Put it in /usr/share/koha/opac/htdocs. Now your image is accessible as http://yourlibrary/imagename.extension. For example, I uploaded nap_time.png to cheerfulvalleypl.online, which you can see from http://cheerfulvalleypl.online/nap_time.png, (image alone) or http://cheerfulvalleypl.online:8080 to see it on the staff login screen. Then go to koha administration -- global system preferences -- staff client -- StaffLoginInstructions. There's a box for HTML code. Make it as fancy as you want, but be sure to include your version of http://cheerfulvalleypl.online/nap_time.png"; alt="" width="300" height="201" /> The extra text can center the image, change fonts and colors, etc., as Vijender Kumar explained above. As others have pointed out, the /usr/share/koha/opac/htdocs is in amongst the Koha system files, and might be deleted or damaged during Koha or system updates. It's unlikely in my experience,* but there's always a chance. More next week, I hope. *I have built more Koha systems and destroyed them during the course of learning and modifying Koha than most people, but I certainly don't know everything about deleting files. --Fred Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:26 PM To: King, Fred Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] RE: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Hello Fred - I will have to do something, but I'll leave it for later :) It looks like you succeeded - I only see the one image! Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 6:19 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: RE: [Koha] Replacing existing images in Koha with our own I'm working on this very problem as part of rebuilding the MedStar Authors catalog. As a workaround, you could try putting the images on a different server and linking to them. Take a look at cheerfulvalleypl.online. The image of the library is on http://dokument.space/cvl_library_300.jpg. If you see any other pictures, it means I may have figured something out but I'm going to work on it next week. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: Koha On Behalf Of libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:07 PM To: David Liddle Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] Re: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: #logo { background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0; float: left!important; padding: 0; } Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the instructions over the weekend - I should have gone home two hours ago! Best regards Aida Đikić -Original Message- From: David Liddle Sent: Friday, March 3, 2023 5:59 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own Aida, there is another method that can be used, which is similar to what is described here: https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead. You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result. That's the m
Re: [Koha] Replacing existing images in Koha with our own
Take a look now--there are two images, one of which is on the Koha server. Now I just have to figure out how I did it. But not today. --Fred Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:26 PM To: King, Fred Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] RE: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Hello Fred - I will have to do something, but I'll leave it for later :) It looks like you succeeded - I only see the one image! Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 6:19 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: RE: [Koha] Replacing existing images in Koha with our own I'm working on this very problem as part of rebuilding the MedStar Authors catalog. As a workaround, you could try putting the images on a different server and linking to them. Take a look at cheerfulvalleypl.online. The image of the library is on http://dokument.space/cvl_library_300.jpg. If you see any other pictures, it means I may have figured something out but I'm going to work on it next week. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: Koha On Behalf Of libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:07 PM To: David Liddle Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] Re: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: #logo { background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0; float: left!important; padding: 0; } Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the instructions over the weekend - I should have gone home two hours ago! Best regards Aida Đikić -Original Message- From: David Liddle Sent: Friday, March 3, 2023 5:59 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own Aida, there is another method that can be used, which is similar to what is described here: https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead. You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result. That's the method that our system uses. It doesn't change the fact that permissions and links need to be correct, and it doesn't change the possibility that files placed in the htdocs directory may be overwritten. One advantage that I can think of over the method you found is this: by defining the logo in IntranetUserCSS, the field StaffLoginInstructions is left free for instructions and messages only. Separating the two could reduce confusion and mistakes. David On Fri, Mar 3, 2023 at 4:24 PM libr...@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.h > tml > > >>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 > >>StaffLoginInstruct
Re: [Koha] Replacing existing images in Koha with our own
Hello Fred - I will have to do something, but I'll leave it for later :) It looks like you succeeded - I only see the one image! Best regards Aida Đikić -Original Message- From: King, Fred Sent: Friday, March 3, 2023 6:19 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: RE: [Koha] Replacing existing images in Koha with our own I'm working on this very problem as part of rebuilding the MedStar Authors catalog. As a workaround, you could try putting the images on a different server and linking to them. Take a look at cheerfulvalleypl.online. The image of the library is on http://dokument.space/cvl_library_300.jpg. If you see any other pictures, it means I may have figured something out but I'm going to work on it next week. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: Koha On Behalf Of libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:07 PM To: David Liddle Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] Re: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: #logo { background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0; float: left!important; padding: 0; } Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the instructions over the weekend - I should have gone home two hours ago! Best regards Aida Đikić -Original Message- From: David Liddle Sent: Friday, March 3, 2023 5:59 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own Aida, there is another method that can be used, which is similar to what is described here: https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead. You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result. That's the method that our system uses. It doesn't change the fact that permissions and links need to be correct, and it doesn't change the possibility that files placed in the htdocs directory may be overwritten. One advantage that I can think of over the method you found is this: by defining the logo in IntranetUserCSS, the field StaffLoginInstructions is left free for instructions and messages only. Separating the two could reduce confusion and mistakes. David On Fri, Mar 3, 2023 at 4:24 PM libr...@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.h > tml > > >>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 On Behalf Of > koha-requ...@lists.katipo.co.nz > Sent: Friday, March 3, 2023 12:00 AM > To: koha@lists.kati
Re: [Koha] Replacing existing images in Koha with our own
I'm working on this very problem as part of rebuilding the MedStar Authors catalog. As a workaround, you could try putting the images on a different server and linking to them. Take a look at cheerfulvalleypl.online. The image of the library is on http://dokument.space/cvl_library_300.jpg. If you see any other pictures, it means I may have figured something out but I'm going to work on it next week. Fred King, MSLS, AHIP Medical Librarian, MedStar Washington Hospital Center fred.k...@medstar.net 202-877-6670 ORCID -0001-5266-0279 MedStar Authors Catalog: http://medstarauthors.org You know it's cold outside when you go outside and it's cold. --NPS Twitter -Original Message- From: Koha On Behalf Of libr...@ssst.edu.ba Sent: Friday, March 3, 2023 12:07 PM To: David Liddle Cc: koha@lists.katipo.co.nz Subject: [EXTERNAL] Re: [Koha] Replacing existing images in Koha with our own **ATTENTION: This email originated from outside the MedStar Health network. ** DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: #logo { background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0; float: left!important; padding: 0; } Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the instructions over the weekend - I should have gone home two hours ago! Best regards Aida Đikić -Original Message- From: David Liddle Sent: Friday, March 3, 2023 5:59 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own Aida, there is another method that can be used, which is similar to what is described here: https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead. You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result. That's the method that our system uses. It doesn't change the fact that permissions and links need to be correct, and it doesn't change the possibility that files placed in the htdocs directory may be overwritten. One advantage that I can think of over the method you found is this: by defining the logo in IntranetUserCSS, the field StaffLoginInstructions is left free for instructions and messages only. Separating the two could reduce confusion and mistakes. David On Fri, Mar 3, 2023 at 4:24 PM libr...@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.h > tml > > >>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 On Behalf Of > koha-requ...@lists.katipo.co.nz > Sent: Friday, March 3, 2023 12:00 AM > To: koha@lists.katipo.co.nz > Subject: Koha Digest, Vol 209, Issue 3 > > Send Koha mailing list submissions to > koha@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
Re: [Koha] Replacing existing images in Koha with our own
Thank you, David, I had just tried this literally a few minutes ago! However I got several errors (expecting an RBRACE) that I didn't know how to fix. I ended up right-click > inspect page source, and using this snippet of code: #logo { background: transparent url(https://i.imgur.com/Cbn0f69.png) no-repeat scroll 0; float: left!important; padding: 0; } Unlike with the login image replacement, imgur did not add a pale overlay on top of the white Koha logo (I changed the background of the OPAC to a gradient from blue to red, which are our university colors so the green logo was clashing). I will continue to study the instructions over the weekend - I should have gone home two hours ago! Best regards Aida Đikić -Original Message- From: David Liddle Sent: Friday, March 3, 2023 5:59 PM To: libr...@ssst.edu.ba Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Replacing existing images in Koha with our own Aida, there is another method that can be used, which is similar to what is described here: https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead. You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result. That's the method that our system uses. It doesn't change the fact that permissions and links need to be correct, and it doesn't change the possibility that files placed in the htdocs directory may be overwritten. One advantage that I can think of over the method you found is this: by defining the logo in IntranetUserCSS, the field StaffLoginInstructions is left free for instructions and messages only. Separating the two could reduce confusion and mistakes. David On Fri, Mar 3, 2023 at 4:24 PM libr...@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.h > tml > > >>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 On Behalf Of > koha-requ...@lists.katipo.co.nz > Sent: Friday, March 3, 2023 12:00 AM > To: koha@lists.katipo.co.nz > Subject: Koha Digest, Vol 209, Issue 3 > > Send Koha mailing list submissions to > koha@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-requ...@lists.katipo.co.nz > > You can reach the person managing the list at > koha-ow...@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@lists.katipo.co.nz > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Replacing existing images in Koha with our own
Aida, there is another method that can be used, which is similar to what is described here: https://wiki.koha-community.org/wiki/HTML_%26_CSS_Library#Change_logo_and_background_color_of_masthead. You would be using the system preference IntranetUserCss perhaps together with StaffLoginInstructions to achieve your end result. That's the method that our system uses. It doesn't change the fact that permissions and links need to be correct, and it doesn't change the possibility that files placed in the htdocs directory may be overwritten. One advantage that I can think of over the method you found is this: by defining the logo in IntranetUserCSS, the field StaffLoginInstructions is left free for instructions and messages only. Separating the two could reduce confusion and mistakes. David On Fri, Mar 3, 2023 at 4:24 PM libr...@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 On Behalf Of > koha-requ...@lists.katipo.co.nz > Sent: Friday, March 3, 2023 12:00 AM > To: koha@lists.katipo.co.nz > Subject: Koha Digest, Vol 209, Issue 3 > > Send Koha mailing list submissions to > koha@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-requ...@lists.katipo.co.nz > > You can reach the person managing the list at > koha-ow...@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@lists.katipo.co.nz > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Replacing existing images in Koha with our own
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 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, libr...@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 On Behalf Of > > koha-requ...@lists.katipo.co.nz > > Sent: Friday, March 3, 2023 12:00 AM > > To: koha@lists.katipo.co.nz > > Subject: Koha Digest, Vol 209, Issue 3 > > > > Send Koha mailing list submissions to > > koha@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-requ...@lists.katipo.co.nz > > > > You can reach the person managing the list at > > koha-ow...@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@lists.katipo.co.nz > > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha > ___ > > Koha mailing list http://koha-community.org > Koha@lists.katipo.co.nz > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Re: [Koha] Replacing existing images in Koha with our own
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, libr...@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 On Behalf Of koha-requ...@lists.katipo.co.nz Sent: Friday, March 3, 2023 12:00 AM To: koha@lists.katipo.co.nz Subject: Koha Digest, Vol 209, Issue 3 Send Koha mailing list submissions to koha@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-requ...@lists.katipo.co.nz You can reach the person managing the list at koha-ow...@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@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha ___ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha