Koha Test Wiki Canasta - March 2024
One of a series of test instances for migrating the Koha Wiki MediaWiki database.
For the current Koha Wiki, visit https://wiki.koha-community.org .OPACMySummaryHTML
Jump to navigation
Jump to search
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}
- {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:
- 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.
- 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.
- 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 :)