91b732c3e1
Item.toArray() implemented -- builds up a multidimensional array of item data, converting all type ids to their textual equivalents -- currently has empty placeholder arrays for tags and seeAlso Sample source output: 'itemID' => "2" 'itemType' => "book" 'title' => "Computer-Mediated Communication: Human-to-Human Communication Across the Internet" 'dateAdded' => "2006-03-12 05:25:50" 'dateModified' => "2006-03-12 05:25:50" 'publisher' => "Allyn & Bacon Publishers" 'year' => "2002" 'pages' => "347" 'ISBN' => "0-205-32145-3" 'creators' ... '0' ... 'firstName' => "Susan B." 'lastName' => "Barnes" 'creatorType' => "author" 'notes' ... '0' ... 'note' => "text" 'tags' ... 'seeAlso' ... '1' ... 'note' => "text" 'tags' ... 'seeAlso' ... 'tags' ... 'seeAlso' ... Sample note output: 'itemID' => "17" 'itemType' => "note" 'dateAdded' => "2006-06-27 04:21:16" 'dateModified' => "2006-06-27 04:21:16" 'note' => "text" 'sourceItemID' => "2" 'tags' ... 'seeAlso' ... sourceItemID won't exist if it's an independent note. We'll use the same format in reverse for fromArray, so Simon, let me know if you need more data (preserving type ids, etc) or want anything in a different form. |
||
---|---|---|
.. | ||
data_access.js | ||
db.js | ||
history.js | ||
ingester.js | ||
marc.js | ||
notifier.js | ||
schema.js | ||
scholar.js | ||
utilities.js |