Skip to content

Commit c507b98

Browse files
committed
Adjust source code to work correctly with jBibTeX version 1.0.17 from maven central.
1 parent ff166d1 commit c507b98

File tree

4 files changed

+38
-35
lines changed

4 files changed

+38
-35
lines changed

backend/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ repositories {
1414
}
1515

1616
dependencies {
17-
// jbibtex 1.0.17 from maven central throws strange errors, so we use our customized version
18-
compile files('libs/jbibtex.jar')
17+
compile group: 'org.jbibtex', name: 'jbibtex', version: '1.0.17'
1918

2019
compile group: 'org.glassfish.jersey.core', name: 'jersey-server', version: '2.25.1'
2120
compile group: 'org.glassfish.jersey.containers', name: 'jersey-container-jdk-http', version: '2.25.1'

backend/libs/jbibtex.jar

-70.6 KB
Binary file not shown.

frontend/src/app/gen/model/BibTeXEntry.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
import * as models from './models';
1414

1515
export interface BibTeXEntry {
16+
17+
'@class': String;
18+
1619
type?: models.Key;
1720

1821
key?: models.Key;

frontend/src/app/pages/references/components/reference/components/referenceview/referenceview.component.ts

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ export class ReferenceViewComponent implements OnInit, OnDestroy {
334334
httpErrorMsgFile = null;
335335

336336
reference: BibTeXEntry = {
337+
'@class': 'org.jbibtex.BibTeXEntry',
337338
type: {
338339
value: 'article',
339340
},
@@ -343,167 +344,167 @@ export class ReferenceViewComponent implements OnInit, OnDestroy {
343344
fields: {
344345
title: {
345346
string: '',
346-
type: 'org.jbibtex.StringValue',
347+
'@class': 'org.jbibtex.StringValue',
347348
style: 'BRACED',
348349
},
349350
author: {
350351
string: '',
351-
type: 'org.jbibtex.StringValue',
352+
'@class': 'org.jbibtex.StringValue',
352353
style: 'BRACED',
353354
},
354355
journal: {
355356
string: '',
356-
type: 'org.jbibtex.StringValue',
357+
'@class': 'org.jbibtex.StringValue',
357358
style: 'BRACED',
358359
},
359360
publisher: {
360361
string: '',
361-
type: 'org.jbibtex.StringValue',
362+
'@class': 'org.jbibtex.StringValue',
362363
style: 'BRACED',
363364
},
364365
editor: {
365366
string: '',
366-
type: 'org.jbibtex.StringValue',
367+
'@class': 'org.jbibtex.StringValue',
367368
style: 'BRACED',
368369
},
369370
chapter: {
370371
string: '',
371-
type: 'org.jbibtex.StringValue',
372+
'@class': 'org.jbibtex.StringValue',
372373
style: 'BRACED',
373374
},
374375
pages: {
375376
string: '',
376-
type: 'org.jbibtex.StringValue',
377+
'@class': 'org.jbibtex.StringValue',
377378
style: 'BRACED',
378379
},
379380
booktitle: {
380381
string: '',
381-
type: 'org.jbibtex.StringValue',
382+
'@class': 'org.jbibtex.StringValue',
382383
style: 'BRACED',
383384
},
384385
school: {
385386
string: '',
386-
type: 'org.jbibtex.StringValue',
387+
'@class': 'org.jbibtex.StringValue',
387388
style: 'BRACED',
388389
},
389390
organization: {
390391
string: '',
391-
type: 'org.jbibtex.StringValue',
392+
'@class': 'org.jbibtex.StringValue',
392393
style: 'BRACED',
393394
},
394395
institution: {
395396
string: '',
396-
type: 'org.jbibtex.StringValue',
397+
'@class': 'org.jbibtex.StringValue',
397398
style: 'BRACED',
398399
},
399400
month: {
400401
string: '',
401-
type: 'org.jbibtex.StringValue',
402+
'@class': 'org.jbibtex.StringValue',
402403
style: 'BRACED',
403404
},
404405
year: {
405406
string: '',
406-
type: 'org.jbibtex.StringValue',
407+
'@class': 'org.jbibtex.StringValue',
407408
style: 'BRACED',
408409
},
409410
crossrefString: {
410411
string: '',
411-
type: 'org.jbibtex.StringValue',
412+
'@class': 'org.jbibtex.StringValue',
412413
style: 'BRACED',
413414
},
414415
keywords: {
415416
string: '',
416-
type: 'org.jbibtex.StringValue',
417+
'@class': 'org.jbibtex.StringValue',
417418
style: 'BRACED',
418419
},
419420
Pdf: {
420421
string: '',
421-
type: 'org.jbibtex.StringValue',
422+
'@class': 'org.jbibtex.StringValue',
422423
style: 'BRACED',
423424
},
424425
doi: {
425426
string: '',
426-
type: 'org.jbibtex.StringValue',
427+
'@class': 'org.jbibtex.StringValue',
427428
style: 'BRACED',
428429
},
429430
url: {
430431
string: '',
431-
type: 'org.jbibtex.StringValue',
432+
'@class': 'org.jbibtex.StringValue',
432433
style: 'BRACED',
433434
},
434435
comment: {
435436
string: '',
436-
type: 'org.jbibtex.StringValue',
437+
'@class': 'org.jbibtex.StringValue',
437438
style: 'BRACED',
438439
},
439440
volume: {
440441
string: '',
441-
type: 'org.jbibtex.StringValue',
442+
'@class': 'org.jbibtex.StringValue',
442443
style: 'BRACED',
443444
},
444445
issn: {
445446
string: '',
446-
type: 'org.jbibtex.StringValue',
447+
'@class': 'org.jbibtex.StringValue',
447448
style: 'BRACED',
448449
},
449450
number: {
450451
string: '',
451-
type: 'org.jbibtex.StringValue',
452+
'@class': 'org.jbibtex.StringValue',
452453
style: 'BRACED',
453454
},
454455
isbn: {
455456
string: '',
456-
type: 'org.jbibtex.StringValue',
457+
'@class': 'org.jbibtex.StringValue',
457458
style: 'BRACED',
458459
},
459460
series: {
460461
string: '',
461-
type: 'org.jbibtex.StringValue',
462+
'@class': 'org.jbibtex.StringValue',
462463
style: 'BRACED',
463464
},
464465
address: {
465466
string: '',
466-
type: 'org.jbibtex.StringValue',
467+
'@class': 'org.jbibtex.StringValue',
467468
style: 'BRACED',
468469
},
469470
edition: {
470471
string: '',
471-
type: 'org.jbibtex.StringValue',
472+
'@class': 'org.jbibtex.StringValue',
472473
style: 'BRACED',
473474
},
474475
type: {
475476
string: '',
476-
type: 'org.jbibtex.StringValue',
477+
'@class': 'org.jbibtex.StringValue',
477478
style: 'BRACED',
478479
},
479480
howpublished: {
480481
string: '',
481-
type: 'org.jbibtex.StringValue',
482+
'@class': 'org.jbibtex.StringValue',
482483
style: 'BRACED',
483484
},
484485
language: {
485486
string: '',
486-
type: 'org.jbibtex.StringValue',
487+
'@class': 'org.jbibtex.StringValue',
487488
style: 'BRACED',
488489
},
489490
revision: {
490491
string: '',
491-
type: 'org.jbibtex.StringValue',
492+
'@class': 'org.jbibtex.StringValue',
492493
style: 'BRACED',
493494
},
494495
note: {
495496
string: '',
496-
type: 'org.jbibtex.StringValue',
497+
'@class': 'org.jbibtex.StringValue',
497498
style: 'BRACED',
498499
},
499500
abstract: {
500501
string: '',
501-
type: 'org.jbibtex.StringValue',
502+
'@class': 'org.jbibtex.StringValue',
502503
style: 'BRACED',
503504
},
504505
review: {
505506
string: '',
506-
type: 'org.jbibtex.StringValue',
507+
'@class': 'org.jbibtex.StringValue',
507508
style: 'BRACED',
508509
},
509510
},

0 commit comments

Comments
 (0)