Hi Folks,

I've submitted a small "improvement" to the JIRA ( http://www.vufind.org/jira/browse/VUFIND-97 ) which adds "Add This" functionality to VuFind. As every new instance appears to be using Add This, I thought it might save future install a little bit of time.

Here's the changes:

config.ini - Value for AddThis username added

[AddThis]
key = swwhep

Record.php - bookmark value added

// Set Add This User
$interface->assign('bookmark', $configArray['AddThis']['key']);

view.tpl - If Statements added to display / hide option

{if $bookmark != ""}
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub="{$bookmark}"></script>
{/if}

{if $bookmark != ""}
<li id="addThis"><a class="addThis addthis_button"" href="http://www.addthis.com/bookmark.php?v=250&pub=swwhep">Bookmark</a></li>
{/if}

tag_yellow.png - Added to silk icons folder

style.css - addThis class added

.addThis {

  background-image:url(<?php echo $configArray['Site']['path'];?>/interface/themes/default/images/silk/tag_yellow.png);

  background-repeat:no-repeat;

  background-position: left;

  padding:.5em .5em .5em 20px;

  margin-right:1em;

}


kind Regards,

Luke