Diff for /loncom/interface/lonsearchcat.pm between versions 1.346 and 1.347

version 1.346, 2015/06/16 20:24:39 version 1.347, 2015/06/18 15:10:52
Line 3332  sub detailed_citation_view { Line 3332  sub detailed_citation_view {
         '<b>'.$prefix.          '<b>'.$prefix.
         '<img src="'.&Apache::loncommon::icon($values{'url'}).'" alt="" />'.'&nbsp;'.          '<img src="'.&Apache::loncommon::icon($values{'url'}).'" alt="" />'.'&nbsp;'.
         '<a href="'.$jumpurl.'?inhibitmenu=yes" '.          '<a href="'.$jumpurl.'?inhibitmenu=yes" '.
         'target="preview">'.$values{'title'}."</a></b>\n".          'target="preview" onclick="openMyModal(this.href, 500, 500, \'yes\');return false;">'.$values{'title'}."</a></b>\n".
         &display_tools($values{'title'}, $jumpurl).          &display_tools($values{'title'}, $jumpurl).
         "<p>\n".          "<p>\n".
         '<b>'.$values{'author'}.'</b>,'.          '<b>'.$values{'author'}.'</b>,'.
Line 3465  sub summary_view { Line 3465  sub summary_view {
     my $link = '<br />'.&display_url($jumpurl,1).'<br />';      my $link = '<br />'.&display_url($jumpurl,1).'<br />';
     $result .=      $result .=
         '<a href="'.$jumpurl.'?inhibitmenu=yes"'.          '<a href="'.$jumpurl.'?inhibitmenu=yes"'.
         ' target="preview">'.$values{'title'}.'</a>'.          ' target="preview" onclick="openMyModal(this.href, 500, 500, \'yes\');return false;">'.$values{'title'}.'</a>'.
         &display_tools($values{'title'}, $jumpurl).<<END;          &display_tools($values{'title'}, $jumpurl).<<END;
 <br />  <br />
 $link<br />  $link<br />
Line 3511  sub compact_view { Line 3511  sub compact_view {
     }      }
     $jumpurl = &HTML::Entities::encode($jumpurl,'<>&"');      $jumpurl = &HTML::Entities::encode($jumpurl,'<>&"');
     $result.=' <span class="LC_nobreak">'.      $result.=' <span class="LC_nobreak">'.
  '<a href="'.$jumpurl.'?inhibitmenu=yes" target="preview">'.   '<a href="'.$jumpurl.'?inhibitmenu=yes" target="preview" onclick="openMyModal(this.href, 500, 500, \'yes\');return false;">'.
         &HTML::Entities::encode($values{'title'},'<>&"').'</a></span> '.          &HTML::Entities::encode($values{'title'},'<>&"').'</a></span> '.
         &display_tools($values{'title'}, $jumpurl).          &display_tools($values{'title'}, $jumpurl).
  $link.' <b>'.$values{'author'}.'</b> ('.$values{'domain'}.')';   $link.' <b>'.$values{'author'}.'</b> ('.$values{'domain'}.')';
Line 3531  sub display_url { Line 3531  sub display_url {
                   $url,                    $url,
                   'preview',                    'preview',
                   '',                    '',
                   (($env{'form.catalogmode'} eq 'import')?'parent.statusframe.document.forms.statusform':''),                    '',
                   $skiplast).' ';                    $skiplast).' ';
           # replace the links to open in a new window
           # (because the search opens in a new window, it gets
           # confusing when the links open a tab in the
           # parent window; ideally we should not force windows)
           $link =~ s/(href="[^"]*")/\1 onclick="window.open(this.href, '_blank', 'toolbar=1,location=1,menubar=0');return false;"/g;
     }      }
     return $link;      return $link;
 }  }

Removed from v.1.346  
changed lines
  Added in v.1.347


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>