Map BibTeX fields

version 1
package wikindx4\core\importexport
author Daniel Reidsma/Mark Grimshaw

 Methods

BIBTEXMAP

__construct() 

Create arrays based on database table and resource type.

loadMap() 

The arrays are named for WIKINDX resource types. The key of the resource_xxx arrays is the database field within the WKX_resource_xxx database table. For exporting BibTeX files this is not needed but isused for BibTeX import. The key of the resource_xxx array is the WIKINDX field in that table while the value is the BibTeX equivalent field. For an export, these keys can be found as the fields in the SQL $row assoc. array in core/file/export/BIBTEX.php.

The database matrix can be found in docs/resourceDatabaseMatrix.html

Some things must be sorted out on the fly in the import/export code: 1/ BibTeX only has a field 'Pages' whereas WIKINDX uses pageStart and pageEnd fields. 2/ The 'howpublished' key is intended for bibTex's misc types. For web_article and database resource types, this is added in the code so don't add it here. 3/ The resource_creator array has keys that represent the resourcecreatorRole field in the resource_creator table. Here, '1' is the primary author while '2' is the secondary author (usually editor for bibtex). 4/ Most dates (newspaper, magazine, hearing etc.) have to be created on the fly from database fields miscField2 (day) and miscField3 (month). 5/ A WIKINDX 'title' is comprised of subtitle, title and noSort fields.

When importing a bibTeX file, you must ignore the 'howpublished' key as defined here and deal with any @misc howpublished field manually in the code.

The 'possible' array lists ALL possible fields that wikindx will accept for each type when importing.

author Mark Grimshaw
version 1

 Properties

 

$artwork 
 

$audivisual 
 

$basic 
 

$bill 
 

$book 
 

$book_article 
 

$book_chapter 
 

$broadcast 
 

$brochure 
 

$case 
 

$chart 
 

$classical 
 

$conference_paper 
 

$database 
 

$film 
 

$genres 
 

$government_report 
 

$hearing 
 

$journal_article 
   

$magazine_article 
 

$manuscript 
 

$map 
 

$miscellaneous 
 

$miscellaneous_section 
 

$music_album 
 

$music_score 
 

$music_track 
 

$newspaper_article 
 

$noMap 
 

$patent 
 

$personal 
 

$proceedings 
 

$proceedings_article 
 

$report 
 

$software 
 

$statute 
 

$thesis 
 

$types 
 

$unpublished 
 

$validFields 
 

$web_article 
 

$web_encyclopaedia 
 

$web_encyclopaedia_article 
 

$web_site