robbi5 / kleineanfragen

Collecting kleine Anfragen from Parlamentsdokumentationssystemen for easy search- and linkability
https://kleineanfragen.de
MIT License
43 stars 9 forks source link

Related papers should be displayed on both (or all) related papers. #111

Open kugelz opened 7 years ago

kugelz commented 7 years ago

Example 1: Kleine Anfrage (KA) 2 is related to KA 1 and refers to it in the text of the inquiry. Current Behaviour: The site detects the relationship and displays KA 1 as related to KA 2. Expected Behaviour: The site detects the relationship and displays KA 1 as related to KA 2 and and vice versa (KA 2 as related to KA 1).

1 https://kleineanfragen.de/sachsen/6/764 2 https://kleineanfragen.de/sachsen/6/1108

Example 2 (one more level): KA 2 refers to KA 1 in its text. KA 3 refers to KA 1 in its text. Current Behaviour: The site displays KA 2 as related to KA 1. The site displays KA 3 as related to KA 1. Expected Behaviour: The site displays KA 1 as related to KA 2 and KA 3 (because KA 3 is related to KA 2, and KA 2 is related to KA 1). The site displays KA 2 as related to KA 1 and KA 3 (because KA 2 is related to KA 1, and KA 3 is related to KA 1). The site displays KA 3 as related to KA 1 and KA 2 (because KA 3 is related to KA 1, and KA 2 is related to KA 1).

1 https://kleineanfragen.de/sachsen/6/764 2 https://kleineanfragen.de/sachsen/6/1108 3 https://kleineanfragen.de/sachsen/6/2408 (Note: Regex for extracting related papers does not work here. Actually, it mentions both (764/1108) preceding papers. Imagine it would have only refered to 6/764 for this example and the regex would have worked. ;))