Browse Source

updating test data: we now transform abstracts as well

hg/35a367e65a464cf6cdf277c73f977a6828b723fe/bookmarks/master
Martin Monperrus 15 years ago
parent
commit
b859d662d2
  1. 12
      bibtexbrowser.php
  2. 9
      test/all.bib.txt
  3. 3
      test/bibacid-iso8859.bib.txt
  4. 15
      test/metrics.bib.txt

12
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,'<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 '</pre>';
}

9
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',

3
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',

15
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',

Loading…
Cancel
Save