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 ''; } diff --git a/test/all.bib.txt b/test/all.bib.txt index 9e431bb..063a7c1 100644 --- a/test/all.bib.txt +++ b/test/all.bib.txt @@ -608,14 +608,7 @@ array ( ) array ( '_author' => 'A. Bockmayr, T. Kasper', - 'abstract' => 'We introduce branch-and-infer, a unifying - framework for integer linear programming and finite domain - constraint programming. We use this framework to compare the - two approaches with respect to their modeling and solving - capabilities, to introduce symbolic constraint abstractions - into integer programming, and to discuss possible combinations - of the two approaches. -', + 'abstract' => 'We introduce branch-and-infer, a unifying framework for integer linear programming and finite domain constraint programming. We use this framework to compare the two approaches with respect to their modeling and solving capabilities, to introduce symbolic constraint abstractions into integer programming, and to discuss possible combinations of the two approaches.', 'author' => 'A. Bockmayr and T. Kasper', 'journal' => 'INFORMS J. Computing', 'key' => 'BockmayrKasper98', diff --git a/test/bibacid-iso8859.bib.txt b/test/bibacid-iso8859.bib.txt index 877d791..1589def 100644 --- a/test/bibacid-iso8859.bib.txt +++ b/test/bibacid-iso8859.bib.txt @@ -195,8 +195,7 @@ array ( ) array ( '_author' => 'J. Abounader, D. Tooj', - 'abstract' => 'This is an abstract - on several lines', + 'abstract' => 'This is an abstract on several lines', 'author' => 'J. Abounader and D. Tooj', 'institution' => 'Queen\'s University, Kingston, ON.', 'key' => 'with_abstract', diff --git a/test/metrics.bib.txt b/test/metrics.bib.txt index 1f7f3bd..0097e30 100644 --- a/test/metrics.bib.txt +++ b/test/metrics.bib.txt @@ -1476,20 +1476,7 @@ array ( ) array ( '_author' => 'Martin Monperrus, Jean-Marc Jézéquel, Joël Champeau, Brigitte Hoeltzener', - 'abstract' => 'Model-Driven Engineering (MDE) is an approach to software development - that uses models as primary artifacts, from which code, documentation - and tests are derived. One way of assessing quality assurance in - a given domain is to define domain metrics. As text documents, models - can be considered from a syntactic point of view i.e., thought of - as graphs. We can readily apply graph-based metrics to them, such - as the number of nodes, the number of edges or the fan-in/fan-out - distributions. However, these metrics cannot leverage the semantic - structuring enforced by each specific metamodel to give domain specific - information. Contrary to graph-based metrics, more specific metrics - do exist for given domains (such as LOC for programs), but they lack - genericity. Our contribution is to propose one metric that is generic - over the domains and the metamodels and allows the easy specification - of an open-ended wide range of model metrics.', + 'abstract' => 'Model-Driven Engineering (MDE) is an approach to software development that uses models as primary artifacts, from which code, documentation and tests are derived. One way of assessing quality assurance in a given domain is to define domain metrics. As text documents, models can be considered from a syntactic point of view i.e., thought of as graphs. We can readily apply graph-based metrics to them, such as the number of nodes, the number of edges or the fan-in/fan-out distributions. However, these metrics cannot leverage the semantic structuring enforced by each specific metamodel to give domain specific information. Contrary to graph-based metrics, more specific metrics do exist for given domains (such as LOC for programs), but they lack genericity. Our contribution is to propose one metric that is generic over the domains and the metamodels and allows the easy specification of an open-ended wide range of model metrics.', 'author' => 'Martin Monperrus and Jean-Marc Jézéquel and Joël Champeau and Brigitte Hoeltzener', 'booktitle' => 'Model-Driven Software Development: Integrating Quality Assurance', 'editor' => 'Jörg Rech and Christian Bunse',