Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Mailchimp 3.1.5 Minor update available for module mailchimp (3.1.5). Release: Commerce Shipping 3.0.5 Minor update available for module commerce_shipping (3.0.5). Release: GoogleTag Manager 2.0.1 Minor update available for module gtm (2.0.1). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: Commerce ML Exchange 2.0.1 Minor update available for module cmlexchange (2.0.1). Release: Commerce ML Exchange 2.0.0 Major update available for module cmlexchange (2.0.0). Release: SynImport 2.0.0 Major update available for module synimport (2.0.0). Release: Contact ajax 3.0.0 Major update available for module contact_ajax (3.0.0). Release: Commerce ML API 2.0.1 Minor update available for module cmlapi (2.0.1). Module Revived: Contextual Filter from Referer 1.0.2 Module contextual_filter_referer updated after 22 months of inactivity (1.0.2).

ai_automator EC Eli to Cellar url transformer

No security coverage Drupal 10–11

Part of the AI ecosystem · 302 projects

View on drupal.org

This module automatically converts EUR-Lex links into direct URLs for the EU Publications Office (Cellar). This is useful for crawlers that cannot bypass EUR-Lex's JavaScript-based bot challenge, as Cellar provides direct access to the documents. The module can transform various EUR-Lex link formats into their corresponding Cellar URLs.

Turns a EUR-Lex link into the matching EU Publications Office (Cellar) URL. Cellar serves the same document over plain HTTP, so a crawler can read it.

Why

EUR-Lex is behind a bot challenge. The challenge needs JavaScript, so a server side HTTP client cannot pass it. Cellar is the repository behind EUR-Lex. It needs no challenge, no token and no account.

This module adds one AI Automator type. The automator reads a EUR-Lex link from a base field, and writes the Cellar URL into a link field. A crawler automator then reads that URL.

How the URL is built

The module pads the OJ number to five digits.

Source Result .../eli/C/2026/2425/oj .../resource/oj/C_202602425 .../eli/C/2026/511/oj .../resource/oj/C_202600511

The module reads these source formats:

  • ELI paths in the C/year/number shape, on eur-lex.europa.eu or data.europa.eu
  • Links with a uri parameter, such as ?uri=OJ:C_202602425 or ?uri=CELEX:32016R0679
  • URLs that already point to publications.europa.eu, which stay the same

An older ELI such as /eli/reg/2016/679/oj maps to a CELEX number that the URL does not hold. For these the module asks the Cellar SPARQL endpoint, and it stores the answer for 30 days.

Requirements

  • Drupal 10.4+ / 11.x / 12.x
  • AI ^1.4, with the ai_automators submodule enabled
  • One link field for the source URL, and one link field for the result

How to use

  1. Add a link field for the result.
  2. Open the settings of this field.
  3. Enable the AI Automator and select EC URL Transformer: EUR-Lex to Cellar URL.
  4. Set the base field to the link field that holds the EUR-Lex URL.
  5. Give this automator a lower weight than the crawler that reads the result.

Reading the result

The client that reads a Cellar URL must send two headers:

Accept: application/xhtml+xml
Accept-Language: eng

Accept-Language takes ISO 639-2 codes, such as eng, fra or nld. Cellar uses this header to select the language of the document.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Aug 2026
Latest release
3 weeks ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Aug 19, 2026
1.0.x-dev Dev 10–11 Aug 18, 2026