[Open-Legislation] EU Cases project

stef s at ctrlc.hu
Wed Dec 4 15:12:35 UTC 2013

On Mon, Dec 02, 2013 at 07:12:50PM +0000, Francis Davey wrote:
> 2013/12/2 stef <s at ctrlc.hu>
> >
> > piece of cake - most EU docs are published on eur-lex, with unique ids. if
> > interest is there i can share the technicalities of how to construct such
> > an
> > id, from eu document title.
> >
> It isn't quite so straightforward.
> Translating a reference to a directive to a reference to eur-lex is easy.
> As you say the ID's are easily constructed from the directive number. What
> isn't there is automatic insertion of links to those directives in the html
> served up, so one would have to have a browser plugin or filter to make it
> work. That should be fairly easy to write - and if I had time I would write
> one. So if anyone wants to work on putting one together I'd be happy to
> join in.

a good start could be: https://github.com/stef/le-n-x/tree/master/bonobo

> However, that isn't quite what I meant.
> First, I think it would be better if the legislation was published online
> with internal linking rather than having to install something user-side.
> Whether that is by the EU or not isn't so important but it seems to me that
> isn't such a piece of cake.

> What is really wanted is something that links to individual parts of an
> instrument. That should be fairly easy given EU drafting styles (much
> easier than for UK legislation) but is a little more work in filtering and
> would require instruments with suitable anchors in them.

i did so in pippi, with data from eurlex:
                                               ^^^^^^^^^^ you can link directly

you can even use aliases:

> While I can roll my own filters, I don't have the time - or resources - to
> set up a website to do that, but I would happily invest some time if others
> wanted to put such a thing together. I'd find it really exciting because it
> would save me a lot of time.

i hope you can use the newly found time productively ;)

pgp: https://www.ctrlc.hu/~stef/stef.gpg
pgp fp: FD52 DABD 5224 7F9C 63C6  3C12 FC97 D29F CA05 57EF
otr fp: https://www.ctrlc.hu/~stef/otr.txt

More information about the open-legislation mailing list