gulelat / bibapp

Automatically exported from code.google.com/p/bibapp
Other
0 stars 0 forks source link

can't import valid RIS data #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Batch load the following RIS record into bibapp.  At least on my system, I
get an error message and the import fails.

TY  - CHAP
AU  - Carboni, A.
AU  - Freyd, P.
AU  - Scedrov, A.
PY  - 1988
BT  - Mathematical Foundations of Programming Language Semantics. 3rd
Workshop Proceedings|Mathematical Foundations of Programming Language
Semantics. 3rd Workshop Proceedings
ED  - Main, M.
ED  - Melton, A.
ED  - Mislove, M.
ED  - Schmidt, D.
CT  - A categorical approach to realizability and polymorphic types
SP  - 23-42|viii+637
N1  - A categorical approach to realizability and polymorphic types
AN  - INSPEC:3556136
N1  - Mathematical Foundations of Programming Language Semantics. 3rd
Workshop Proceedings
New Orleans, LA
USA
N2  - There has been considerable interest in the development of a
mathematical framework for polymorphic types, which have become commonplace
in powerful programming languages such as Ada, ML, HOPE, and CLU. The
current syntactic paradigm for polymorphic typing is higher-order lambda
calculus, for which there are no nontrivial set-theoretic interpretations.
However, the Realizability Universe is emerging as an important framework
for higher-order logic, domain theory, and polymorphism. Within the paper a
categorical calculus of relations is used to derive a unified setting for
higher order logic and polymorphic lambda calculus
ID  - 1
ER  -  

This is clearly not a high quality ris entry, but is a real-world example.
 The above record was generated from Endnote 9.01 using the RIS export
filter.  The endnote database, in turn, was generated by importing from Web
of Science using the web of science import filter but modifying the record
to be a section rather than a journal article.

Instead of success, I get an error message and apparently no record is
added to the database:
-----
Batch creation was successful for some works. However, we encountered the
following problems with other works:
We couldn't find a title for at least one work...you may want to verify
everything imported properly!
Review Batch

No batch has been added.
-----

If the "CT" tag is replaced by a "TI" then the import succeeds, but this
isn't a correct RIS format file any more.

What version of the product are you using? On what operating system?
svn reports version 1080 (svn update as of 19 June), on RHEL 5.3.

Fix:  in
bibapp/vendor/plugins/citation_importer/lib/citation_importers/ris_importer.rb
add the following to @attribute_mapping
       :ct => :title_primary,

I believe that absent a more complete parser for RIS format that understood
the subtleties of different TY values and what they implied for other
fields, the best approach is to expand the @attribute_mapping array to add
most of the field types described in the RIS documentation.

Original issue reported on code.google.com by jqjohn...@gmail.com on 20 Jun 2009 at 4:41

GoogleCodeExporter commented 9 years ago
Hi JQ, all:

We've begun to address these issues in the BibApp.  I have added several 
missing RIS
fields to the RISParser.  I agree a parser that understands the subtle 
type=>field
mappings will be necessary in the future.  Cheers, EL

Original comment by ewlar...@gmail.com on 12 Aug 2009 at 5:28

GoogleCodeExporter commented 9 years ago
I've just verified that this is importing now.

Bill

Original comment by waingram on 28 Sep 2009 at 6:25