From: Demian K. <dem...@vi...> - 2010-12-09 15:16:45
|
If you're only disabling this temporarily, the simplest option is probably to edit your theme... In web/interface/themes/[your_theme]/Record/view.tpl, there should be a block of code similar to this: <div class="box submenu"> <h4>{translate text="Similar Items"}</h4> {if is_array($similarRecords)} <ul class="similar"> {foreach from=$similarRecords item=similar} <li> {if is_array($similar.format)} <span class="{$similar.format[0]|lower|regex_replace:"/[^a-z0-9]/":""}"> {else} <span class="{$similar.format|lower|regex_replace:"/[^a-z0-9]/":""}"> {/if} <a href="{$url}/Record/{$similar.id|escape:"url"}">{$similar.title|escape}</a> </span> <span style="font-size: .8em"> {if $similar.author}<br>{translate text='By'}: {$similar.author|escape}{/if} {if $similar.publishDate}<br>{translate text='Published'}: ({$similar.publishDate.0|escape}){/if} </span> </li> {/foreach} </ul> {else} {translate text='Cannot find similar records'} {/if} </div> Just comment out that whole block, and the suggestions will go away. If you need to disable things long-term, there are better ways of doing it - commenting it out in the template doesn't prevent Solr from doing the work of finding recommendations, so you won't have any performance gains from this method... but if you're just testing things, editing the template is the least disruptive approach. Let me know if you need further assistance! - Demian From: Harmon, Kelly [mailto:Kelly.Harmon@ARS.USDA.GOV] Sent: Thursday, December 09, 2010 10:02 AM To: vuf...@li... Subject: [VuFind-General] Remove "More Like This" ? Once again, I'm hiding VuFind functionality for testing purposes. I've edited the /usr/local/vufind/solr/biblio/conf/solrconfig.xml and commented out the "morelikethis" request handler, but this appears stop the solr index from working after a restart. Should I be playing elsewhere? Thanks! Kelly |