Walkthrough: Using OPACMySummaryHTML to share on Facebook (etcetera)
Dear community! Since we commissioned the work to create the system preference OPACMySummaryHTML I feel that it might be appropriate to share some knowledge of the details. This preference lets you add a column of custom HTML to "My summary" that can be used to for example share the OPAC-page for each book on Facebook. Four variables are available for use: {AUTHOR}, {TITLE}, {ISBN} and {BIBLIONUMBER} and Koha replaces these with the proper value when rendering the page. The following code creates a simple text-link to share on Facebook. <a href="http://www.facebook.com/share.php?u=http://www.YOUR-KOHA-OPAC-HERE.com/cgi-bin/koha/opac-detail.pl?biblionumber={BIBLIONUMBER}">Share on Facebook</a> You'd need to insert your own OPAC url of course, but otherwise it should be fine to use. Should you wonder how to activate this function then this is what you need to do: 1) Log in to the staff interface and click "System preferences". You may need help from an administrator if you don't have access to the system preferences. 2) Search the preferences for "mysummaryhtml" and click the link "Click to edit". It can also be found in the "Appearance"-section of the OPAC-tab in the preferences. 3) Paste the code above, change the URL to the one you use for your OPAC and save. There are of course many potential uses so feel free to share examples should you do something fun with it :) The function is included in Koha from version 3.4 and I'd like to give credit to Magnus Enger of Libriotech in Norway for doing the actual development. Thank you for the attention! Best regards/Viktor Sarge, Library adviser Regional development council of Halland, Sweden ________________________________ [logo-rh] Viktor Sarge Utvecklare - Digitala biblioteksmiljöer Box 517, 301 80 HALMSTAD | Besöksadress: Aschebergsgatan 1 Tel direkt: 035-17 98 73 | Mobil: 070-557 47 25 E-post: viktor.sarge@regionhalland.se Webb: www.regionhalland.se<http://www.regionhalland.se/>
Viktor et al! I have taken the liberty of creating a wiki page based on your email: http://wiki.koha-community.org/wiki/OPACMySummaryHTML Please feel free to add any other interesting uses for this syspref! Best regards, Magnus Enger libriotech.no 2011/6/10 <Viktor.Sarge@regionhalland.se>
Dear community!
Since we commissioned the work to create the system preference OPACMySummaryHTML I feel that it might be appropriate to share some knowledge of the details. This preference lets you add a column of custom HTML to “My summary” that can be used to for example share the OPAC-page for each book on Facebook. Four variables are available for use: {AUTHOR}, {TITLE}, {ISBN} and {BIBLIONUMBER} and Koha replaces these with the proper value when rendering the page. The following code creates a simple text-link to share on Facebook.
<a href=”http://www.facebook.com/share.php?u=http://www.YOUR-KOHA-OPAC-HERE.com/cgi-bin/koha/opac-detail.pl?biblionumber={BIBLIONUMBER}”>Share on Facebook</a>
You’d need to insert your own OPAC url of course, but otherwise it should be fine to use.
Should you wonder how to activate this function then this is what you need to do:
1) Log in to the staff interface and click “System preferences”. You may need help from an administrator if you don’t have access to the system preferences.
2) Search the preferences for “mysummaryhtml” and click the link “Click to edit”. It can also be found in the “Appearance”-section of the OPAC-tab in the preferences.
3) Paste the code above, change the URL to the one you use for your OPAC and save.
There are of course many potential uses so feel free to share examples should you do something fun with it :) The function is included in Koha from version 3.4 and I’d like to give credit to Magnus Enger of Libriotech in Norway for doing the actual development.
Thank you for the attention!
Best regards/Viktor Sarge, Library adviser
Regional development council of Halland, Sweden
________________________________
Viktor Sarge Utvecklare - Digitala biblioteksmiljöer
Box 517, 301 80 HALMSTAD | Besöksadress: Aschebergsgatan 1 Tel direkt: 035-17 98 73 | Mobil: 070-557 47 25 E-post: viktor.sarge@regionhalland.se Webb: www.regionhalland.se
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Can someone show an example of this system preference in action? Sounds very interesting! Cab Vinton, Director Sanbornton Public Library Sanbornton, NH On Fri, Jun 10, 2011 at 11:19 AM, Magnus Enger <magnus@enger.priv.no> wrote:
Viktor et al!
I have taken the liberty of creating a wiki page based on your email: http://wiki.koha-community.org/wiki/OPACMySummaryHTML
Please feel free to add any other interesting uses for this syspref!
Best regards, Magnus Enger libriotech.no
There are screenshots of it in action in the manual (along with this info). http://manual.koha-community.org/3.4/en/administration.html#OPACMySummaryHTM... Nicole On Fri, Jun 10, 2011 at 12:20 PM, Cab Vinton <bibliwho@gmail.com> wrote:
Can someone show an example of this system preference in action?
Sounds very interesting!
Cab Vinton, Director Sanbornton Public Library Sanbornton, NH
On Fri, Jun 10, 2011 at 11:19 AM, Magnus Enger <magnus@enger.priv.no> wrote:
Viktor et al!
I have taken the liberty of creating a wiki page based on your email: http://wiki.koha-community.org/wiki/OPACMySummaryHTML
Please feel free to add any other interesting uses for this syspref!
Best regards, Magnus Enger libriotech.no
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On 10 June 2011 18:20, Cab Vinton <bibliwho@gmail.com> wrote:
Can someone show an example of this system preference in action?
You can play with it here: http://demo.bibkat.no/cgi-bin/koha/opac-user.pl (login with username = test1 and password = test1). Log in with the same credentials here: http://demo.bibkat.no:8080/ to play with it. Please note that at the moment it only works for currently checked out items, but there is an enhancement request for making it work on the reading history too: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6494 Best regards, Magnus Enger libriotech.no
participants (4)
-
Cab Vinton -
Magnus Enger -
Nicole Engard -
Viktor.Sarge@regionhalland.se