Hochfrequenz / ahbesser

2 stars 0 forks source link

For each expression that contains a number, add deep link to ahahnb #169

Closed hf-kklein closed 1 month ago

hf-kklein commented 2 months ago

https://github.com/Hochfrequenz/AHahnB/pull/366

samarsrivastav commented 2 months ago

hey @hf-kklein the link that you have provided is not working, Could you check it once !!

hf-kklein commented 2 months ago

@samarsrivastav thanks for your question. The link points to a private repository and a discussion there.

What is AHahnB/Bedingungsbaum?

So what we want is:

The link to directly render this is:

https://bedingungsbaum.stage.hochfrequenz.de/tree/?format=FV2404&format_version=COMDIS&expression=Muss%20%5B1%5D%20U%20%28%5B2%5D%20O%20%5B3%5D%29

You need to create an account to use this service. Please note: It's only a test environment so far.

The new feature for this project/repository:

The feature that I requested for ahbesser is is: In the column Pflichtfeld-Kennzeichen in ahbesser, add a deep link to ahahnb where the expression is non-trivial. Non-trivial means: no link shall be created for just 'Muss' or 'X'.

Check for example this AHB: http://ahb-tabellen.stage.hochfrequenz.de/ahb/FV2404/29001 It would be nice to have a link to ahahnb for this line and its expression: grafik

I want to click on X (([939][21]) ∨([940][22])) ∧[508] and be redirected to https://bedingungsbaum.stage.hochfrequenz.de/tree/?format=FV2404&format_version=COMDIS&expression=X%20%28%28%5B939%5D%5B21%5D%29%20%E2%88%A8%28%5B940%5D%5B22%5D%29%29%20%E2%88%A7%5B508%5D

The base URL https://bedingungsbaum.stage.hochfrequenz.de has to be configurable via an environment variable. In this example, it refers to our staging/test environemnt.