Hello, Do you have any tip to add pictures in notices template. I've seen that we could add a picture in branches.opac_info but it isn't sufficient for us. We want to use discharge notices but we need to insert a signature in it to make it "official" for other universities. I would like to insert a signature picture in the discharge notice template but I don't see how to do.. Thanks in advance, Cheers Sonia BOUIS Responsable du Service des application documentaires BIBLIOTHÈQUES UNIVERSITAIRES Bibliothèque de la Manufacture UNIVERSITÉ JEAN MOULIN LYON 3 1C AVENUE DES FRÈRES LUMIÈRE CS 78242 69372 LYON CEDEX 08 ligne directe : +33 (0)4 78 78 79 03 http://bu.univ-lyon3.fr<http://bu.univ-lyon3.fr/> L'Université Jean Moulin est membre fondateur de l'Université de Lyon
Hi Sonia, I think there is no 'graphical' way of doing this, but you can use plain HTML. For testing I just added this to the DISCHARGE notice template: <img src="https://koha-community.org/files/2013/09/cropped-kohabanner3.jpg" /> The generated PDF shows the Koha logo on top - so this works. If you can save the images you need somewhere accessible for Koha, this might work. Hope this helps, Katrin On 14.03.2017 16:47, BOUIS Sonia wrote:
Hello, Do you have any tip to add pictures in notices template. I've seen that we could add a picture in branches.opac_info but it isn't sufficient for us. We want to use discharge notices but we need to insert a signature in it to make it "official" for other universities. I would like to insert a signature picture in the discharge notice template but I don't see how to do..
Thanks in advance, Cheers
Sonia BOUIS
Responsable du Service des application documentaires BIBLIOTHÈQUES UNIVERSITAIRES Bibliothèque de la Manufacture UNIVERSITÉ JEAN MOULIN LYON 3 1C AVENUE DES FRÈRES LUMIÈRE CS 78242 69372 LYON CEDEX 08 ligne directe : +33 (0)4 78 78 79 03 http://bu.univ-lyon3.fr<http://bu.univ-lyon3.fr/>
L'Université Jean Moulin est membre fondateur de l'Université de Lyon
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
And you can use the pref NoticeCSS to add some CSS. On Tue, 14 Mar 2017 at 13:04 Katrin <katrin.fischer.83@web.de> wrote:
Hi Sonia,
I think there is no 'graphical' way of doing this, but you can use plain HTML. For testing I just added this to the DISCHARGE notice template:
<img src="https://koha-community.org/files/2013/09/cropped-kohabanner3.jpg" />
The generated PDF shows the Koha logo on top - so this works. If you can save the images you need somewhere accessible for Koha, this might work.
Hope this helps,
Katrin
On 14.03.2017 16:47, BOUIS Sonia wrote:
Hello, Do you have any tip to add pictures in notices template. I've seen that we could add a picture in branches.opac_info but it isn't sufficient for us. We want to use discharge notices but we need to insert a signature in it to make it "official" for other universities. I would like to insert a signature picture in the discharge notice template but I don't see how to do..
Thanks in advance, Cheers
Sonia BOUIS
Responsable du Service des application documentaires BIBLIOTHÈQUES UNIVERSITAIRES Bibliothèque de la Manufacture UNIVERSITÉ JEAN MOULIN LYON 3 1C AVENUE DES FRÈRES LUMIÈRE CS 78242 69372 LYON CEDEX 08 ligne directe : +33 (0)4 78 78 79 03 <04%2078%2078%2079%2003> http://bu.univ-lyon3.fr<http://bu.univ-lyon3.fr/>
L'Université Jean Moulin est membre fondateur de l'Université de Lyon
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Hello, I couldn't add some CSS style to my DISCHARGE notice, does anyone? I link to a CSS (NoticeCSS syspref) with for example just body { color: blue; } h1 { color: green; } but PDF keeps without any style, which make sense since Discharge.pm <https://github.com/Koha-Community/Koha/blob/master/Koha/Patron/Discharge.pm#L104> use PDF::FromHTML <https://metacpan.org/pod/PDF::FromHTML> which have the caveat: *"This means any HTML using external or inline CSS for design and layout, including but not limited to: images, backgrounds, colours, fonts etc... will not be converted into the PDF."*. HTML::HTMLDoc <https://metacpan.org/pod/HTML::HTMLDoc> doesn't look much better. I also try some workarounds without CSS, like <table background=" https://koha-community.org/files/2013/09/cropped-kohabanner3.jpg" ... without luck. Related: Bug 14251 - style discharge letter <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14251> It seems also impossible to add something link "At __CURRENTDATE__ Doe, John return all his documents." like in marc modification templates. Regards, Pablo Le mar. 14 mars 2017 à 13:15, Jonathan Druart < jonathan.druart@bugs.koha-community.org> a écrit :
And you can use the pref NoticeCSS to add some CSS.
On Tue, 14 Mar 2017 at 13:04 Katrin <katrin.fischer.83@web.de> wrote:
Hi Sonia,
I think there is no 'graphical' way of doing this, but you can use plain HTML. For testing I just added this to the DISCHARGE notice template:
<img src="https://koha-community.org/files/2013/09/cropped-kohabanner3.jpg" />
The generated PDF shows the Koha logo on top - so this works. If you can save the images you need somewhere accessible for Koha, this might work.
Hope this helps,
Katrin
On 14.03.2017 16:47, BOUIS Sonia wrote:
Hello, Do you have any tip to add pictures in notices template. I've seen that we could add a picture in branches.opac_info but it isn't sufficient for us. We want to use discharge notices but we need to insert a signature in it to make it "official" for other universities. I would like to insert a signature picture in the discharge notice template but I don't see how to do..
Thanks in advance, Cheers
Sonia BOUIS
Responsable du Service des application documentaires BIBLIOTHÈQUES UNIVERSITAIRES Bibliothèque de la Manufacture UNIVERSITÉ JEAN MOULIN LYON 3 1C AVENUE DES FRÈRES LUMIÈRE CS 78242 69372 LYON CEDEX 08 ligne directe : +33 (0)4 78 78 79 03 <04%2078%2078%2079%2003> http://bu.univ-lyon3.fr<http://bu.univ-lyon3.fr/>
L'Université Jean Moulin est membre fondateur de l'Université de Lyon
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
Reading a little bit more the source code I just've noticed that to insert current date we should use <<today>> instead of __CURRENTDATE__ <http://translate.koha-community.org/manual/master/en/html/03_tools.html?highlight=__currentdate__#marc-modification-templates> . The output will not be ISO 8601 but with the format MM/DD/YYYY hh:mm.
participants (4)
-
BOUIS Sonia -
Jonathan Druart -
Katrin -
Pablo Bianchi