Forums | Mahara Community

Developers /
Europass plugin development

13 May 2011, 4:15 AM

Hi everyone!

I'm currently working on improving the Europass plugin. I have ideas of new features and I noticed some bugs I'm trying to fix, and I would like to know if there is a website to be aware of all bugs reported, who is working on these ones, discuss of possible new features... etc.

I was also wondering why are there dates for the driving licence whereas there aren't in Europass official website in the résumé?

Gregor Anželj's profile picture
Posts: 348

13 May 2011, 7:56 AM

Since I am the one that created the plugin, you should discuss everything (bugs, ideas for new features, etc) with me.

In the official Europass form one can check his/her driving licence(s). The wasn't anything like that (checkboxes with support for rendering images - A1, A, B, C, etc.) in Mahara, so I've created custom Pieform. I used one of the existing and changed it to suit my needs. When you set the date, you also mark that you have that driving licence.

It could get changed, but I'm not convinced that it should. The dates can be seen only by the owner. The only information, presented to other is which driving licence(s) a user has.


16 May 2011, 8:40 AM

I just changed few things in the driving licence form like this exemple :

'A1' => array(
'type'    => 'checkbox',
    'labelescaped' => true,
    'title' => ($labelescapedvalue == true ? '<img src="' . get_config('wwwroot') . '/artefact/europass/images/a1.png" width="98" height="20">' : 'A1'),
    'defaultvalue' => ((!empty($drivinglicence['A1'])) ? $drivinglicence['A1'] : null),

with this change it looks like Europass official website form, you check the box when you have this licence. I think it's a little weird to uncheck if you have it and save dates which won't be visible in the résumé or anywhere else. Don't you think so?

I have a bug with the birth date. I enter 2 july 1990 in my Mahara profile and when I go to Europass plugin, it does "-1" on the day of birth, regardless of the values ​​that I enter (I can enter 2 july, it changes in 1 july, and it is the same for 3 in 2, 4 in 3... etc). Have you the same problem? It also changes date in my Mahara profile. I don't know if it's a problem with my Mahara only.

I saw an other thing not really ergonomic. In the Europass résumé you have these category:

Social skills and competences
Organisational skills and competences
Technical skills and competences
Computer skills and competences
Artistic skills and competences
Other skills and competences

but in the Europass plugin form in Profile you can't edit the last one. When you export your résumé it takes the content in "Work Skills" category in the Mahara Profile for this field. Maybe it would be better to add in the database a special line for this?

It would be great if there were a "import" function in this plugin.

I'm working on these points right now, what do you think of it? But sadly I have no idea for now of where come from the problem of birthdate...

PS: Sorry for my mistakes I'm not English, if you don't understand a thing, don't hesitate to tell me!


Gregor Anželj's profile picture
Posts: 348

22 May 2011, 2:28 PM

Sorry I've been busy for thelast few days. Will look into it in a week or two...


Thibault D's profile picture
Posts: 17

22 June 2011, 4:09 AM

Hi all,


I've got a problem with the export module in Europass.


When I try to export to pdf format, I have some french accents in the test profile : The plugin seems to put the html code instead of decoding them and put the real characters (é, ç, è and so on..) in the file.


I tried to put a regex in the europassxml.php file, tried to modify the DOMDocument arguments to ISO-8859-1 and so on, but nothing changed...


Everytime i tried something, the error still remains or the file became empty and couldn't be read by adobe reader.


The only "solution" I found is to modify the database fields directly (With PMA) by editing the content of each field and replace every &[*]+ entities by the proper Latin1 character...

Any kind of help will be appreciated.

Any idea?


Heinz Krettek's profile picture
Posts: 480

22 June 2011, 5:20 AM

Hi Thibault,

Gregor Anželj is the creator of the europass plugin and will read your posting carefully. In a posting above he mentioned that he is very busy at the moment, give him a few days and you will see a solution for your problem. 

Greetings from the Black Forest


Gregor Anželj's profile picture
Posts: 348

22 June 2011, 7:16 AM

Can you please PM the test profile data: the actual text and in which field it is used - for further testing?


Thibault D's profile picture
Posts: 17

22 June 2011, 10:05 AM


Thanks for your support.

07 July 2011, 7:01 AM


I just want to tell you that the bug with the birthdate is a problem with Mahara on Windows only, not with the plugin. With the new version of Mahara (1.4.0) we have a warning in administration panel to notice that problem with dates.

I'm currently fixing the problems of compatibility between the new version of Mahara and the Europass plugin and working on importation function. I will recontact you to see how we can update these changes as soon as I have finished.


08 July 2011, 3:39 AM

I corrected the problem with French accented characters that Thibault mentioned.

In europass/lib/europassxml.php I replaced in "function valid_xml_string($string);" the line "$valid = htmlspecialchars($valid);" to "$valid = clean_html($valid);" because htmlspecialchars() changes everything, even the accented characters, in html code, whereas clean_html() removes html tags.

Now we have to test it whith different html tags because clean_html() doc said that it removes "nasty tags" and I'm not sure that it removes them all. And if it remains some tags to send to Europass, it won't send back our exported CV.

13 results