From f4514348b12606532d64bceed0a7a06be07c2cc9 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Fri, 3 Dec 2010 21:48:51 +0100 Subject: [PATCH] updating test data: we now transform abstracts as well --- bibtexbrowser.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 0813b44..c8e9583 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -909,8 +909,8 @@ class BibEntry { function setField($name, $value) { $name = strtolower($name); // fields that should not be transformed - if ($name!='abstract' && $name!='url' ) { - $value = xtrim($value); /* abstract should stay as is for later use with str_replace */ + if ($name!='url' ) { + $value = xtrim($value); $value = latex2html($value); } else { //echo "xx".$value."xx\n"; @@ -1299,13 +1299,7 @@ class BibEntry { // this is not a parsing but a simple replacement $entry = str_replace($url,''.$url.'', $entry); } - if ($this->hasField('abstract')) { - $abstract = $this->getField('abstract'); - // Google Scholar: http://scholar.google.com/intl/en/scholar/inclusion.html - // "each paper needs to be listed on a separate URL; and at least the full author-written abstract must be clearly visible on the URL" - // this will be also used to hijax the abstract with jquery - $entry = str_replace($abstract,''.$abstract.'', $entry); - } + echo $entry; echo ''; }