diff --git a/bibtexbrowser.php b/bibtexbrowser.php index b3bc7ee..3050236 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1284,11 +1284,19 @@ class BibEntry { */ function toEntryUnformatted() { echo '
'; // pre is nice when it is embedded with no CSS available
+ $entry = $this->getFullText();
if ($this->hasField('url')) {
- $url=$this->getField('url');
+ $url = $this->getField('url');
// this is not a parsing but a simple replacement
- echo str_replace($url,''.$url.'',$this->getFullText());
- } else echo $this->getFullText();
+ $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"
+ $entry = str_replace($abstract,''.$abstract.'', $entry);
+ }
+ echo $entry;
echo '
';
}
diff --git a/test/bibacid-iso8859.bib b/test/bibacid-iso8859.bib
index 8b9f1db..bc7d600 100755
--- a/test/bibacid-iso8859.bib
+++ b/test/bibacid-iso8859.bib
@@ -2,7 +2,6 @@
%% test the home page feature
@string{hp_J.Abounader="http://www.google.com"}
-
@inproceedings{classical,
author = {J. Abounader and D. Tooj},
title = {This is {classical}},
@@ -10,6 +9,16 @@
year = {1997}
}
+%% testing the abstract
+@inproceedings{with_abstract,
+ author = {J. Abounader and D. Tooj},
+ title = {This is with abstract},
+ institution = {Queen's University, Kingston, ON.},
+ year = {1997},
+ abstract = {This is an abstract}
+}
+
+
%% using double quotes
%% also Took test the advanced search
@TECHREPORT{dquotes,