|
64 | 64 | if q == 'doe first book' && method == 'titleCreatorYear'
|
65 | 65 | if format == 'json'
|
66 | 66 | return JSON.pretty_generate(
|
67 |
| - [{ 'id' => 'http://zotero.org/users/1254/items/ZBZQ4KMP', |
68 |
| - 'type' => 'book', |
69 |
| - 'title' => 'First Book', |
70 |
| - 'publisher' => 'Cambridge University Press', |
71 |
| - 'publisher-place' => 'Cambridge', |
72 |
| - 'event-place' => 'Cambridge', |
73 |
| - 'note' => 'bibtex: Doe2005', |
74 |
| - 'author' => [{ 'family' => 'Doe', 'given' => 'John' }], |
75 |
| - 'issued' => { 'date-parts' => [['2005']] } |
76 |
| - }]) |
| 67 | + [{ 'id' => 'http://zotero.org/users/1254/items/ZBZQ4KMP', |
| 68 | + 'type' => 'book', |
| 69 | + 'title' => 'First Book', |
| 70 | + 'publisher' => 'Cambridge University Press', |
| 71 | + 'publisher-place' => 'Cambridge', |
| 72 | + 'event-place' => 'Cambridge', |
| 73 | + 'note' => 'bibtex: Doe2005', |
| 74 | + 'author' => [{ 'family' => 'Doe', 'given' => 'John' }], |
| 75 | + 'issued' => { 'date-parts' => [['2005']] } |
| 76 | + }]) |
| 77 | + elsif format == 'quickBib' |
| 78 | + return JSON.pretty_generate( |
| 79 | + [{ 'key' => '0_ZBZQ4KMP', |
| 80 | + 'quickBib' => 'Doe, John - First Book' }]) |
77 | 81 | end
|
78 | 82 | elsif q == 'doe' && method == 'titleCreatorYear'
|
79 | 83 | if format == 'json'
|
|
242 | 246 | 'author' => [{ 'family' => 'McCloskey', 'given' => 'Donald N.' }],
|
243 | 247 | 'issued' => { 'date-parts' => [['1976', 6, 1]] },
|
244 | 248 | 'accessed' => { 'date-parts' => [['2013', 5, 25]] } }])
|
| 249 | + elsif format == 'quickBib' |
| 250 | + return JSON.pretty_generate( |
| 251 | + [{ 'key' => '25522_HCJIH6C2', |
| 252 | + 'quickBib' => 'Doe, Jane - Duplicated in group library' }, |
| 253 | + { 'key' => '0_4T8MCITQ', |
| 254 | + 'quickBib' => 'Doe, John - Article' }, |
| 255 | + { 'key' => '0_5BST32AT', |
| 256 | + 'quickBib' => ' - Why Does the OAS Defend the Rule of Law in Honduras but Not Venezuela?' }, |
| 257 | + { 'key' => '0_7HDTQQN3', |
| 258 | + 'quickBib' => 'Johnson, Victoria L. - How Many Machine Guns Does It Take to Cook One Meal?: The Seattle and San Francisco General Strikes' }, |
| 259 | + { 'key' => '0_8VPAZITB', |
| 260 | + 'quickBib' => 'Herndon, Thomas - Does High Public Debt Consistently Stifle Economic Growth? A Critique of Reinhart and Rogoff' }, |
| 261 | + { 'key' => '0_9WIEAQCQ', |
| 262 | + 'quickBib' => 'Rothstein, Jesse - Does competition among public schools benefit students and taxpayers? A comment of Hoxby' }, |
| 263 | + { 'key' => '0_AUP63UAA', |
| 264 | + 'quickBib' => 'Roe Doe, Jane - Double Name' }, |
| 265 | + { 'key' => '0_BT26FFUM', |
| 266 | + 'quickBib' => 'Constantopoulos, P. - Reliability modelling for long term digital preservation' }, |
| 267 | + { 'key' => '0_HQKCK44E', |
| 268 | + 'quickBib' => 'Doets, Kees - The Haskell road to logic, maths and programming' }, |
| 269 | + { 'key' => '0_JQEUW7AI', |
| 270 | + 'quickBib' => 'Roe-Doe, John - Hyphens' }, |
| 271 | + { 'key' => '0_KTWC3JF2', |
| 272 | + 'quickBib' => 'Doe, John - Test section' }, |
| 273 | + { 'key' => '0_MWFHJ2N8', |
| 274 | + 'quickBib' => 'Thompson, Henry - What Is a URI and Why Does It Matter?' }, |
| 275 | + { 'key' => '0_MXFJSDA5', |
| 276 | + 'quickBib' => 'Storper, Michael - Why Does a City Grow? Specialisation, Human Capital or Institutions?' }, |
| 277 | + { 'key' => '0_NJNUZID2', |
| 278 | + 'quickBib' => 'Rees, Jonathan - Why does the address bar show the tempolink instead of the permalink?' }, |
| 279 | + { 'key' => '0_TWCW4IJ7', |
| 280 | + 'quickBib' => 'Smith, Sam - <i>Why Water</i> Is Wet' }, |
| 281 | + { 'key' => '0_UCA4RC22', |
| 282 | + 'quickBib' => 'Doe, Jane - Duplicated in group library' }, |
| 283 | + { 'key' => '0_ZBZQ4KMP', |
| 284 | + 'quickBib' => 'Doe, John - First Book' }, |
| 285 | + { 'key' => '0_ZNK43456', |
| 286 | + 'quickBib' => 'McCloskey, Donald N. - Does the Past Have Useful Economics?' }]) |
245 | 287 | end
|
246 | 288 | end
|
247 | 289 | end
|
0 commit comments