[Koha] Link to external patron picture
ISM KIS
Ism at kis.in
Thu Dec 19 17:01:54 NZDT 2013
intranetuserjs - Great, that's the idea I needed.
The picture location is stored in my field patronaddress2
So I can use the following jquery code:
//////////////////////////////////////////////
$(document).ready(function(){
$('#patronbasics').html('<li><img vspace="4" border="0" src="' + $('.patronaddress2').html()+' " id="patronimage" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" /></img><li>');
$('.patronaddress2').html('') ;
});
/////////////////////////////////////
Is there a way to say this should only run on the Checkout page and not on all pages in the staff client?
Works great! I love jQuery!
Rudy
>>> Stefano Bargioni <bargioni at pusc.it> 12/18/2013 9:45 PM >>>
Hi Rudy,
do you have pictures based on borrower cardnumber? I.e. something like
http://your.pictures.host/pictureID/12345.jpg
In this case, you can try to add an <img src="http://your.pictures.host/pictureID/12345.jpg"> element to the page
http://your_koha_staff:8080/cgi-bin/koha/members/moremember.pl?borrowernumber=12345
using intranetuserjs system preference. This solution will survive Koha upgrades.
If this is good for you, I can add more details.
Bye. Stefano
> Just upgraded to 3.14
>
> With every new version I'm installing I have to manually change some files to allow accessing the patron pictures which are already there on our school system.
>
> Is there a way that would allow me to use an link to an external picture (instead of uploading the pictures to Koha or changing code) ?
>
> Any setting to do that I have not found so far?
_______________________________________________
Koha mailing list http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list