You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.7 KiB

  1. endnote2refbase
  2. ===============
  3. Author
  4. ------
  5. Richard Karnesky <karnesky@gmail.com>
  6. About
  7. -----
  8. This is an alternative to refbase's web-based import of Endnote data. It
  9. allows Endnote users to export a text file which can be imported into the
  10. refbase MySQL database.
  11. Use
  12. ---
  13. Part I: Endnote
  14. - Copy refbase.ens into your Endnote styles directory.
  15. On win32 systems, this is typically:
  16. C:\Program Files\Endnote\Styles
  17. On Mac systems, this is typically:
  18. Macintosh HD\Applications\EndNote #\Styles
  19. (where # corresponds to a version #)
  20. - Open the Endnote file you wish to import into refbase.
  21. - Choose the refbase Output Style
  22. - Export to 'endnote.txt'
  23. Part II: PHP [*]
  24. - Executing 'php endnote2mysql.php' will produce 'import.txt'
  25. ('php' must be in your path or you should prefix it with the path to php)
  26. Part III: Check it!
  27. - As this is a preliminary script that has undergone little testing, it is
  28. suggested that you look at 'import.txt' in spreadsheet software.
  29. - New versions of Endnote dump UTF-8 data. You should be able to use this as
  30. is if you have a UTF-8 database. If you don't have a UTF-8 database, you
  31. should convert the file to the character encoding you do use (using iconv,
  32. recode, or <http://www.motobit.com/util/charset-codepage-conversion.asp>).
  33. Part IV: MySQL [*]
  34. - From within your MySQL command line interpreter (mysql -u root literature -p):
  35. LOAD DATA LOCAL INFILE "import.txt" INTO TABLE refs;
  36. [*]If you are comfortable that the script works and are on a system with a POSIX
  37. shell (nearly all *nix, including OS X; Windows through Cygwin or similar),
  38. you may use Andreas Czerniak's en-importer.sh to automate Parts II-IV.