Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,9 @@ class ConsistencyHandler:
|
|
| 12 |
# self.miscExtraFields = set()
|
| 13 |
|
| 14 |
self.articleImportantFields = {'year', 'author', 'title', 'journal', 'volume', 'pages'}
|
| 15 |
-
self.inbookImportantFields = {'author', 'year', '
|
| 16 |
self.techreportImportantFields = {'title', 'author', 'institution', 'year', 'number'}
|
| 17 |
-
self.inproceedingsImportantFields = {'author', 'title', 'booktitle', 'year', '
|
| 18 |
# self.miscImportantFields = set()
|
| 19 |
|
| 20 |
self.articleCount = 0
|
|
@@ -205,11 +205,11 @@ def referenceErrorParser(bibtex_string: str, coordinateStr: str):
|
|
| 205 |
|
| 206 |
|
| 207 |
# techreport
|
| 208 |
-
elif entry['ENTRYTYPE']=="techreport":
|
| 209 |
-
|
| 210 |
|
| 211 |
-
|
| 212 |
-
|
| 213 |
|
| 214 |
# inproceedings
|
| 215 |
elif entry['ENTRYTYPE']=="inproceedings":
|
|
|
|
| 12 |
# self.miscExtraFields = set()
|
| 13 |
|
| 14 |
self.articleImportantFields = {'year', 'author', 'title', 'journal', 'volume', 'pages'}
|
| 15 |
+
self.inbookImportantFields = {'author', 'year', 'booktitle'} # to check for publisher, title
|
| 16 |
self.techreportImportantFields = {'title', 'author', 'institution', 'year', 'number'}
|
| 17 |
+
self.inproceedingsImportantFields = {'author', 'title', 'booktitle', 'year', 'pages'} # to check for publisher
|
| 18 |
# self.miscImportantFields = set()
|
| 19 |
|
| 20 |
self.articleCount = 0
|
|
|
|
| 205 |
|
| 206 |
|
| 207 |
# techreport
|
| 208 |
+
# elif entry['ENTRYTYPE']=="techreport":
|
| 209 |
+
# imp, cons = checker.checkTechreport(entry)
|
| 210 |
|
| 211 |
+
# entry['asterikError'] = list(imp)
|
| 212 |
+
# entry['consistencyError'] = list(cons)
|
| 213 |
|
| 214 |
# inproceedings
|
| 215 |
elif entry['ENTRYTYPE']=="inproceedings":
|