Code development platform for open source projects from the European Union institutions

Prefinalisation: autonomous acts: new API request to add stamp after signature

SUMMARY

Like in LegisWrite, now that Edit can handle some autonomous act , it must be possible to request the Edit API to insert a stamp after the signature

Note: the final future goal is to insert the stamp in svg , but as a first implementation , it has been decided to insert it in binary64 (like the ec flag in main.xml)

ACCEPTANCE CRITERIAS / GOALS

  • API new key

A new key is added to the EDIT API in order to request for that stamp addition in an autnomous act

** As it's the case for LW, based on the document language, the API insert the img which correspond to that language.

** It can only insert stamp in autonomous acts, the list of template involved is the same as LegisWrite

To sums things up , it must be able to do the same as for LegisWrite.

Proposal of request(final word to dialogika)

image

  • Insertion of the stamp as binary64

If a stamp is inserted into a proposal, in the bill, in <conclusions> after the <block name="signatory">, a new <block name="stamp"> is added with an img src to the stamp corresponding to the language document in binary64.

For instance : <block name="stamp"><img src='data:image/gif;base64,binary64longcode=='/></block>

  • Like other AKN elements , all tags should have xml ids

EXAMPLE

Before stamp addition

In bill

image

After stamp addition (binary 64 truncated)

image

which shows like this:

aa_signature_and_stamp

OTHER DESCRIPTIONS / DOCUMENTATION

  • wiki page:

https://citnet.tech.ec.europa.eu/CITnet/confluence/pages/viewpage.action?pageId=1357911295

  • LegisWrite stamps image in .gif : Stamp__1_.7z)
  • FYI: Autonomous acts bill prefix list:

"DEC", "DIR","REG", “DEC_DEL”, “DIR_DEL”, “REG_DEL”, “DEC_IMPL”, “REG_IMPL”, “DIR_IMPL

For instance, an SJ-004 , "COMMISSION IMPLEMENTING REGULATION (EU) .../..." will have a prefix "REG_IMPL", so the bill will be for instance "REG_IMPL-cm8oa35zm001go4161skn5xu3-en.xml".

  • Example of autonomous acts legs
  1. SJ_004 : AA_SJ_004_sample_.zip
  2. SJ_008 : AA_SJ_008_sample_.zip
  3. SJ_009 : AA_SJ_009_sample_.zip
Edited by Jean-Christophe WILLAIN