From 3a6bdba9256db44f5e4ddc8aada0f895345337a9 Mon Sep 17 00:00:00 2001
From: Traboulsi <salam.traboulsi@hft-stuttgart.de>
Date: Wed, 25 Oct 2023 06:53:28 +0000
Subject: [PATCH] Update public/js/paperfilter.js

---
 public/js/paperfilter.js | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/public/js/paperfilter.js b/public/js/paperfilter.js
index f8d865b..20d1877 100644
--- a/public/js/paperfilter.js
+++ b/public/js/paperfilter.js
@@ -22,7 +22,7 @@ function filter(year){
         state = state2022
     }else if (year == "2023"){
         state = state2023
-    }else if(year=="All"){
+    }else if(year == "All"){
         state =  stateall
     }
 
@@ -53,7 +53,7 @@ function filter(year){
                         document.getElementById("filter2021").innerHTML = "2021" 
                         document.getElementById("filter2019").innerHTML = "2019" 
                         count = 0
-        } else if (year == "2021"){
+        }else if (year == "2021"){
             for (var j = 0; j < jsonContent.length; j++) {
                 var filterString = jsonContent[j].item.conference.date.toString()
                 if ( filterString.includes('2021') || jsonContent[j].item.journal.year == 2021) {
@@ -146,7 +146,12 @@ function filter(year){
 				document.getElementById("filter2022").innerHTML = "2022 (" + count +")"				
                 count = 0
         }else if (year == "All"){
-                count += 1
+              for (var j = 0; j < jsonContent.length; j++) {   
+                addpaper(jsonContent[j]);
+                count += 1; 
+              }
+               state = 1
+
                 document.getElementById("filterall").style.backgroundColor = "grey"
                 document.getElementById("filter2019").style.backgroundColor = "lightgrey"
                 document.getElementById("filter2021").style.backgroundColor = "lightgrey"
-- 
GitLab