diff --git a/Capfile b/Capfile
new file mode 100644
index 000000000..6a798eb2b
--- /dev/null
+++ b/Capfile
@@ -0,0 +1,4 @@
+load 'deploy'
+# Uncomment if you are using Rails' asset pipeline
+ # load 'deploy/assets'
+load 'config/deploy' # remove this line to skip loading any of the default tasks
\ No newline at end of file
diff --git a/Gemfile b/Gemfile
index 876c75f37..21fb95f77 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,9 +3,6 @@ source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'bootstrap-sass', '2.0.4'
-# Bundle edge Rails instead:
-# gem 'rails', :git => 'git://github.com/rails/rails.git'
-
gem 'mysql2'
gem 'pubmed_search'
@@ -13,12 +10,12 @@ gem 'bio'
gem 'grape'
-
group :development, :test do
gem 'rspec-rails'
gem 'guard-rspec', '1.2.1'
gem 'guard-spork', '1.2.0'
gem 'spork', '0.9.2'
+ gem 'capistrano'
end
group :test do
@@ -50,8 +47,5 @@ gem 'jquery-rails'
# Use unicorn as the app server
# gem 'unicorn'
-# Deploy with Capistrano
-# gem 'capistrano'
-
# To use debugger
# gem 'debugger'
diff --git a/Gemfile.lock b/Gemfile.lock
index 32fd7d6e3..6ab8a2468 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -34,6 +34,12 @@ GEM
bio (1.4.3)
bootstrap-sass (2.0.4.0)
builder (3.0.4)
+ capistrano (2.14.1)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.1.0)
capybara (1.1.2)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
@@ -81,6 +87,7 @@ GEM
spork (>= 0.8.4)
sys-proctable
hashie (1.2.0)
+ highline (1.6.15)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
@@ -101,6 +108,13 @@ GEM
multi_json (1.3.7)
multi_xml (0.5.1)
mysql2 (0.3.11)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.6.3)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
nokogiri (1.5.5)
polyglot (0.3.3)
pry (0.9.10)
@@ -191,6 +205,7 @@ PLATFORMS
DEPENDENCIES
bio
bootstrap-sass (= 2.0.4)
+ capistrano
capybara (= 1.1.2)
coffee-rails (~> 3.2.1)
grape
diff --git a/app/models/api.rb b/app/models/api.rb
index c50b013dc..6ba03a38d 100644
--- a/app/models/api.rb
+++ b/app/models/api.rb
@@ -3,10 +3,12 @@ module SulBib
class API < Grape::API
version 'v1', :using => :header, :vendor => 'sul'
+
format :json
- resource :pubs do
+
get do
- sampleBibJSON = '{
+
+ '{
"metadata": {
"_created": "20121121190112",
"description": "sample of bibjson output taken from bisoup.net for cap experimentation",
@@ -15,730 +17,13 @@ class API < Grape::API
"query": "http://publication?pop=cap",
"records": 20
},
- "records": [
- {
- "_created": "20121121190118",
- "_id": "7870b3032a6c4ce7a9c4c1f846cf7276",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "JenningsJohnT",
- "name": "Jennings, John T"
- },
- {
- "id": "KrogmannLars",
- "name": "Krogmann, Lars"
- },
- {
- "id": "MewStevenL",
- "name": "Mew, Steven L"
- }
- ],
- "citeulike-article-id": "11571676",
- "collection": "zootaxa_sample",
- "id": "ISI:000305268600007",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3349",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Hyptia deansi sp nov., the first record of Evaniidae (Hymenoptera) from Mexican amber",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305268600007",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "fb30ce59b6279a557e1bfba2bf0acc0d",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "RichardsonBarryJ",
- "name": "Richardson, Barry J"
- },
- {
- "id": "GunterNicoleL",
- "name": "Gunter, Nicole L"
- }
- ],
- "citeulike-article-id": "11571675",
- "collection": "zootaxa_sample",
- "id": "ISI:000305328600001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3350",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Revision of Australian jumping spider genus Servaea Simon 1887 (Aranaea: Salticidae) including use of DNA sequence data and predicted distributions",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305328600001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "1a3cc30a512c129cf80d26485c6aba45",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "LezamaAntonioQ",
- "name": "Lezama, Antonio Q"
- },
- {
- "id": "TriquesMauroL",
- "name": "Triques, Mauro L"
- },
- {
- "id": "SantosPatriciaS",
- "name": "Santos, Patricia S"
- }
- ],
- "citeulike-article-id": "11571674",
- "collection": "zootaxa_sample",
- "id": "ISI:000305759300006",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3352",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Trichomycterus argos (Teleostei: Siluriformes: Trichomycteridae), a new species from the Doce River Basin, Eastern Brazil",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305759300006",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "e0961e3187ff5a583b63661a5679f225",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "SparksJohnS",
- "name": "Sparks, John S"
- },
- {
- "id": "LoisellePaulV",
- "name": "Loiselle, Paul V"
- },
- {
- "id": "BaldwinZacharyH",
- "name": "Baldwin, Zachary H"
- }
- ],
- "citeulike-article-id": "11571673",
- "collection": "zootaxa_sample",
- "id": "ISI:000305759300002",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3352",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Rediscovery and phylogenetic placement of the endemic Malagasy cichlid Ptychochromoides itasy (Teleostei: Cichlidae: Ptychochrominae)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305759300002",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "f36e0317b99453f27534ff7bd8b81264",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "EberleJonas",
- "name": "Eberle, Jonas"
- },
- {
- "id": "TaenzlerRene",
- "name": "Taenzler, Rene"
- },
- {
- "id": "RiedelAlexander",
- "name": "Riedel, Alexander"
- }
- ],
- "citeulike-article-id": "11571672",
- "collection": "zootaxa_sample",
- "id": "ISI:000305881000001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3355",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Revision and phylogenetic analysis of the Papuan weevil genus Thyestetha Pascoe (Coleoptera, Curculionidae, Cryptorhynchinae)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305881000001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "0740e3ed686989383e293dd77b691618",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "LiJing",
- "name": "Li, Jing"
- },
- {
- "id": "XueDayong",
- "name": "Xue, Dayong"
- },
- {
- "id": "HanHongxiang",
- "name": "Han, Hongxiang"
- },
- {
- "id": "GalsworthyAnthonyC",
- "name": "Galsworthy, Anthony C"
- }
- ],
- "citeulike-article-id": "11571671",
- "collection": "zootaxa_sample",
- "id": "ISI:000305881600001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3357",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Taxonomic review of Syzeuxis Hampson, 1895, with a discussion of biogeographical aspects (Lepidoptera, Geometridae, Larentiinae)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305881600001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "ea6df90c970adc7d91c7f4af6958eb6e",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "SunNing",
- "name": "Sun, Ning"
- },
- {
- "id": "LiBin",
- "name": "Li, Bin"
- },
- {
- "id": "TuLihong",
- "name": "Tu, Lihong"
- }
- ],
- "citeulike-article-id": "11571670",
- "collection": "zootaxa_sample",
- "id": "ISI:000305881800002",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3358",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Ternatus, a new spider genus from China with a cladistic analysis and comments on its phylogenetic placement (Araneae: Linyphiidae)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305881800002",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "f494864c633b1cb3f174a51e1c4aad65",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "CurielJosefina",
- "name": "Curiel, Josefina"
- },
- {
- "id": "MorroneJuanJ",
- "name": "Morrone, Juan J"
- }
- ],
- "citeulike-article-id": "11571669",
- "collection": "zootaxa_sample",
- "id": "ISI:000305882400005",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jun",
- "number": "3361",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Association of larvae and adults of Mexican species of Macrelmis (Coleoptera: Elmidae): a preliminary analysis using DNA sequences",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305882400005",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "db761c1eb22431214f70488543604149",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "PyoJooyeon",
- "name": "Pyo, Jooyeon"
- },
- {
- "id": "LeeTaekjun",
- "name": "Lee, Taekjun"
- },
- {
- "id": "ShinSook",
- "name": "Shin, Sook"
- }
- ],
- "citeulike-article-id": "11571668",
- "collection": "zootaxa_sample",
- "id": "ISI:000305937400009",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3368, SI",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Two newly recorded invasive alien ascidians (Chordata, Tunicata, Ascidiacea) based on morphological and molecular phylogenetic analysis in Korea",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305937400009",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "80435753d0861158393dae7d0f416619",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "KimSeong-Yong",
- "name": "Kim, Seong-Yong"
- }
- ],
- "citeulike-article-id": "11571667",
- "collection": "zootaxa_sample",
- "id": "ISI:000305936900001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3366",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Phylogenetic Systematics of the Family Pentacerotidae (Actinopterygii: Order Perciformes)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305936900001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "8fe1c8c59ef87536c0a228b1df3f34c4",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "LonsdaleOwen",
- "name": "Lonsdale, Owen"
- },
- {
- "id": "MarshallStephenA",
- "name": "Marshall, Stephen A"
- }
- ],
- "citeulike-article-id": "11571666",
- "collection": "zootaxa_sample",
- "id": "ISI:000305937600001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3370",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Sobarocephala (Diptera: Clusiidae: Sobarocesphalinae)-Subgeneric classification and Revision of the New World species",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305937600001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "a1dfab4d706319aca975e8e56203238a",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "GustafssonDanielR",
- "name": "Gustafsson, Daniel R"
- },
- {
- "id": "OlssonUrban",
- "name": "Olsson, Urban"
- }
- ],
- "citeulike-article-id": "11571665",
- "collection": "zootaxa_sample",
- "id": "ISI:000305940500001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3377",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "The ``Very Thankless Task'': Revision of Lunaceps Clay and Meinertzhagen, 1939 (Insecta: Phthiraptera: Ischnocera: Philopteridae), with descriptions of six new species and one new subspecies",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305940500001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "a32f439379b96f62e36e3a088b9e95c7",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "Ferrer-SuayMar",
- "name": "Ferrer-Suay, Mar"
- },
- {
- "id": "Paretas-MartinezJordi",
- "name": "Paretas-Martinez, Jordi"
- },
- {
- "id": "SelfaJesus",
- "name": "Selfa, Jesus"
- },
- {
- "id": "Pujade-VillarJuli",
- "name": "Pujade-Villar, Juli"
- }
- ],
- "citeulike-article-id": "11571664",
- "collection": "zootaxa_sample",
- "id": "ISI:000305940200001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3376",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Taxonomic and synonymic world catalogue of the Charipinae and notes about this subfamily (Hymenoptera: Cynipoidea: Figitidae)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305940200001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "80a09e7bec4637d1e365cb435daf5590",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "DankittipakulPakawin",
- "name": "Dankittipakul, Pakawin"
- },
- {
- "id": "JocqueRudy",
- "name": "Jocque, Rudy"
- },
- {
- "id": "SingtripopTippawan",
- "name": "Singtripop, Tippawan"
- }
- ],
- "citeulike-article-id": "11571663",
- "collection": "zootaxa_sample",
- "id": "ISI:000305938200001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3369",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Systematics and biogeography of the spider genus Mallinella Strand, 1906, with descriptions of new species and new genera from Southeast Asia (Araneae, Zodariidae)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305938200001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "a01fd1ab4c1ab265e21ec1f0a8864e21",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "ColomaLuisA",
- "name": "Coloma, Luis A"
- },
- {
- "id": "Carvajal-EndaraSofia",
- "name": "Carvajal-Endara, Sofia"
- },
- {
- "id": "DuenasJuanF",
- "name": "Duenas, Juan F"
- },
- {
- "id": "Paredes-RecaldeArturo",
- "name": "Paredes-Recalde, Arturo"
- },
- {
- "id": "Morales-MiteManuel",
- "name": "Morales-Mite, Manuel"
- },
- {
- "id": "Almeida-ReinosoDiego",
- "name": "Almeida-Reinoso, Diego"
- },
- {
- "id": "TapiaElicioE",
- "name": "Tapia, Elicio E"
- },
- {
- "id": "HutterCarlR",
- "name": "Hutter, Carl R"
- },
- {
- "id": "ToralEduardo",
- "name": "Toral, Eduardo"
- },
- {
- "id": "GuayasaminJuanM",
- "name": "Guayasamin, Juan M"
- }
- ],
- "citeulike-article-id": "11571662",
- "collection": "zootaxa_sample",
- "id": "ISI:000305935900001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3364",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Molecular phylogenetics of stream treefrogs of the Hyloscirtus larinopygion group (Anura: Hylidae), and description of two new species from Ecuador",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305935900001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "b175959d31df8526c28fa65f997df23b",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "CarranzaSalvador",
- "name": "Carranza, Salvador"
- },
- {
- "id": "ArnoldEdwinN",
- "name": "Arnold, Edwin N"
- }
- ],
- "citeulike-article-id": "11571661",
- "collection": "zootaxa_sample",
- "id": "ISI:000305940800001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3378",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "A review of the geckos of the genus Hemidactylus (Squamata: Gekkonidae) from Oman based on morphology, mitochondrial and nuclear data, with descriptions of eight new species",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305940800001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "02ec852dc9787d0e0efbda3c98c8993f",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "MooreGlennI",
- "name": "Moore, Glenn I"
- },
- {
- "id": "HutchinsJBarry",
- "name": "Hutchins, J Barry"
- },
- {
- "id": "OkamotoMakoto",
- "name": "Okamoto, Makoto"
- }
- ],
- "citeulike-article-id": "11571660",
- "collection": "zootaxa_sample",
- "id": "ISI:000305972200002",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3380",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "A new species of the deepwater clingfish genus Kopua (Gobiesociformes: Gobiesocidae) from the East China Sea-an example of antitropicality?",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000305972200002",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "1019e43d8d7cc65266c3875a50fe76e0",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "BlackburnDavidC",
- "name": "Blackburn, David C"
- },
- {
- "id": "WakeDavidB",
- "name": "Wake, David B"
- }
- ],
- "citeulike-article-id": "11571659",
- "collection": "zootaxa_sample",
- "id": "ISI:000306071400002",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3381",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Additions and corrections",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000306071400002",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "3f37b599e1f94c96bf2a1b330da51d07",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "Gomez-BerningMaria",
- "name": "Gomez-Berning, Maria"
- },
- {
- "id": "KoehlerFrank",
- "name": "Koehler, Frank"
- },
- {
- "id": "GlaubrechtMatthias",
- "name": "Glaubrecht, Matthias"
- }
- ],
- "citeulike-article-id": "11571658",
- "collection": "zootaxa_sample",
- "id": "ISI:000306071400001",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3381",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "CATALOGUE OF THE NOMINAL TAXA OF MESOAMERICAN PACHYCHILIDAE (MOLLUSCA: CAENOGASTROPODA)",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000306071400001",
- "year": "2012"
- },
- {
- "_created": "20121121190118",
- "_id": "4eddc26df7ae2c11582c9b4836bdee53",
- "_last_modified": "20121121190118",
- "author": [
- {
- "id": "HarveyFrancesSB",
- "name": "Harvey, Frances S B"
- },
- {
- "id": "FramenauVolkerW",
- "name": "Framenau, Volker W"
- },
- {
- "id": "WojcieszekJanineM",
- "name": "Wojcieszek, Janine M"
- },
- {
- "id": "RixMichaelG",
- "name": "Rix, Michael G"
- },
- {
- "id": "HarveyMarkS",
- "name": "Harvey, Mark S"
- }
- ],
- "citeulike-article-id": "11571657",
- "collection": "zootaxa_sample",
- "id": "ISI:000306166000003",
- "journal": {
- "id": "ZOOTAXA",
- "name": "ZOOTAXA"
- },
- "month": "jul",
- "number": "3383",
- "owner": "rossmounce",
- "posted-at": "2012-10-29 11:03:14",
- "priority": "2",
- "title": "Molecular and morphological characterisation of new species in the trapdoor spider genus Aname (Araneae: Mygalomorphae: Nemesiidae) from the Pilbara bioregion of Western Australia",
- "type": "article",
- "url": "http://bibsoup.net/rossmounce/zootaxa_sample/ISI:000306166000003",
- "year": "2012"
- }
- ]
-}'
+ "records": [' + Publication.all.each.map { |publication| publication.json }.join(",") + ']}'
#Hash.from_xml('