updating test data: we now transform abstracts as well
This commit is contained in:
+3
-9
@@ -909,8 +909,8 @@ class BibEntry {
|
|||||||
function setField($name, $value) {
|
function setField($name, $value) {
|
||||||
$name = strtolower($name);
|
$name = strtolower($name);
|
||||||
// fields that should not be transformed
|
// fields that should not be transformed
|
||||||
if ($name!='abstract' && $name!='url' ) {
|
if ($name!='url' ) {
|
||||||
$value = xtrim($value); /* abstract should stay as is for later use with str_replace */
|
$value = xtrim($value);
|
||||||
$value = latex2html($value);
|
$value = latex2html($value);
|
||||||
} else {
|
} else {
|
||||||
//echo "xx".$value."xx\n";
|
//echo "xx".$value."xx\n";
|
||||||
@@ -1299,13 +1299,7 @@ class BibEntry {
|
|||||||
// this is not a parsing but a simple replacement
|
// this is not a parsing but a simple replacement
|
||||||
$entry = str_replace($url,'<a href="'.$url.'">'.$url.'</a>', $entry);
|
$entry = str_replace($url,'<a href="'.$url.'">'.$url.'</a>', $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,'<span class="abstract">'.$abstract.'</span>', $entry);
|
|
||||||
}
|
|
||||||
echo $entry;
|
echo $entry;
|
||||||
echo '</pre>';
|
echo '</pre>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user