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.

157 lines
5.9 KiB

  1. MySQL database "literature", table "refs"
  2. =========================================
  3. field names
  4. -----------
  5. fields available in table "refs" matching field in "refs.fp5"
  6. -------------------------------- ----------------------------
  7. author Author Generic [A_13]
  8. address Author Affiliation [03]
  9. corporate_author Corporate Author [A_40]
  10. first_author FirstAuthorGeneric [A_23]
  11. author_count NumberOfAuthorsGeneric
  12. title Title Generic [A_14]
  13. orig_title Translated Title [11]
  14. publication Journal Book Title Generic [A_15]
  15. abbrev_journal Abbrev. Journal Title [46]
  16. year Date of Publication [20]
  17. date (none)
  18. volume Volume ID [22]
  19. volume_numeric Volume Numeric
  20. issue Issue ID [24]
  21. pages Pages Generic [A_19]
  22. first_page FirstPage [A_34]
  23. keywords Keywords [45]
  24. abstract Abstract [43]
  25. edition Edition [15]
  26. editor Author, Monographic [07]
  27. publisher Publisher [19]
  28. place Place of Publication [18]
  29. medium Packaging Method [27]
  30. series_editor Series Editor [30]
  31. series_title Series Title [32]
  32. abbrev_series_title Abbrev. Series Title [A_17]
  33. series_volume Series Volume ID [33]
  34. series_volume_numeric (none!)
  35. series_issue Series Issue ID [34]
  36. issn ISSN [40]
  37. isbn ISBN [41]
  38. language Language [35]
  39. summary_language Summary Language [A_10]
  40. area Research Area [A_05]
  41. type Record Type [A_06]
  42. publication_status (none!)
  43. thesis (none!)
  44. expedition Expedition [A_11]
  45. doi DOI [A_26]
  46. conference Conference [A_33]
  47. url Location|URL [38]
  48. call_number Call Number [44] (in "Refs Mat.fp5": IPOE Literature DB Call Number [A_41])
  49. location Copy Location [A_35]
  50. contribution_id Contribution ID
  51. online_publication (none!)
  52. online_citation (none!)
  53. file File Name [A_27]
  54. notes Notes [42]
  55. serial Serial Number
  56. orig_record Original Record
  57. approved Approved Boolean
  58. created_date Created Date [A_36]
  59. created_time Created Time [A_38]
  60. created_by Erstellt von
  61. modified_date Modified Date [A_37]
  62. modified_time Modified Time [A_39]
  63. modified_by Ge�ndert von
  64. column types
  65. ------------
  66. author TEXT
  67. address TEXT
  68. corporate_author VARCHAR(255)
  69. first_author VARCHAR(100)
  70. author_count TINYINT UNSIGNED
  71. title TEXT
  72. orig_title TEXT
  73. publication VARCHAR(255)
  74. abbrev_journal VARCHAR(100)
  75. year SMALLINT
  76. date VARCHAR(50)
  77. volume VARCHAR(50)
  78. volume_numeric SMALLINT UNSIGNED
  79. issue VARCHAR(50)
  80. pages VARCHAR(50)
  81. first_page MEDIUMINT UNSIGNED
  82. keywords TEXT
  83. abstract TEXT
  84. edition TINYINT UNSIGNED
  85. editor TEXT
  86. publisher VARCHAR(255)
  87. place VARCHAR(100)
  88. medium VARCHAR(50)
  89. series_editor TEXT
  90. series_title TEXT
  91. abbrev_series_title VARCHAR(100)
  92. series_volume VARCHAR(50)
  93. series_volume_numeric SMALLINT UNSIGNED
  94. series_issue VARCHAR(50)
  95. issn VARCHAR(100)
  96. isbn VARCHAR(100)
  97. language VARCHAR(100)
  98. summary_language VARCHAR(100)
  99. area VARCHAR(255)
  100. type VARCHAR(100)
  101. publication_status ENUM("published","in print","submitted","unpublished")
  102. thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis")
  103. expedition VARCHAR(255)
  104. doi VARCHAR(100)
  105. conference VARCHAR(255)
  106. url VARCHAR(255)
  107. call_number TEXT
  108. location TEXT
  109. contribution_id VARCHAR(100)
  110. online_publication ENUM("no","yes") NOT NULL
  111. online_citation VARCHAR(255)
  112. file VARCHAR(255)
  113. notes TEXT
  114. serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
  115. orig_record MEDIUMINT
  116. approved ENUM("no","yes") NOT NULL
  117. created_date DATE
  118. created_time TIME
  119. created_by VARCHAR(100)
  120. modified_date DATE
  121. modified_time TIME
  122. modified_by VARCHAR(100)
  123. table creation code
  124. -------------------
  125. CREATE TABLE refs (author TEXT, address TEXT, corporate_author VARCHAR(255), first_author VARCHAR(100), author_count TINYINT UNSIGNED, title TEXT, orig_title TEXT, publication VARCHAR(255), abbrev_journal VARCHAR(100), year SMALLINT, date VARCHAR(50), volume VARCHAR(50), volume_numeric SMALLINT UNSIGNED, issue VARCHAR(50), pages VARCHAR(50), first_page MEDIUMINT UNSIGNED, keywords TEXT, abstract TEXT, edition TINYINT UNSIGNED, editor TEXT, publisher VARCHAR(255), place VARCHAR(100), medium VARCHAR(50), series_editor TEXT, series_title TEXT, abbrev_series_title VARCHAR(100), series_volume VARCHAR(50), series_volume_numeric SMALLINT UNSIGNED, series_issue VARCHAR(50), issn VARCHAR(100), isbn VARCHAR(100), language VARCHAR(100), summary_language VARCHAR(100), area VARCHAR(255), type VARCHAR(100), publication_status ENUM("published","in print","submitted","unpublished"), thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis"), expedition VARCHAR(255), doi VARCHAR(100), conference VARCHAR(255), url VARCHAR(255), call_number TEXT, location TEXT, contribution_id VARCHAR(100), online_publication ENUM("no","yes") NOT NULL, online_citation VARCHAR(255), file VARCHAR(255), notes TEXT, serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, orig_record MEDIUMINT, approved ENUM("no","yes") NOT NULL, created_date DATE, created_time TIME, created_by VARCHAR(100), modified_date DATE, modified_time TIME, modified_by VARCHAR(100));
  126. rules for data import
  127. ---------------------
  128. - fields are separated by tabs, records are separated by returns (if not specified otherwise within the LOAD DATA statement)
  129. - order of fields must resemble the above field order!
  130. - DATE format must be YYYY-MM-DD -> Available via Filemaker Calculation Fields 'Created Date [A_36]' & 'Modified Date [A_37]'
  131. - TIME format must be HH:MM:SS -> Available via Filemaker Calculation Fields 'Created Time [A_38]' & 'Modified Time [A_39]'
  132. - carriage returns *within* fields (ASCII character 11) must be replaced with a "UNIX return" (ASCII character 10) -> Search for: (\x0B) Replace with: \\n
  133. - empty fields are indicated by \N -> Search for: (?<=\t|^)(?=\t|$) Replace with: \\N
  134. - character encoding: higher ASCII chars must be encoded as ISO-8859-1 aka 'Western (ISO Latin 1)'
  135. - file encoding must be UNIX
  136. load data code
  137. --------------
  138. LOAD DATA LOCAL INFILE "/PATH/TO/FILE/refs.txt" INTO TABLE refs;
  139. or, alternatively, use something like the following from your shell:
  140. mysqlimport --local -u root -p YOUR_DB_NAME "/PATH/TO/FILE/refs.txt"