[Xerte-dev] Re: Peer review, feedback etc.
Tom Reijnders
reijnders at tor.nl
Mon Mar 4 11:59:52 GMT 2013
Yeah..., it's just how it works right?
You're asked to add some functionality, and you create it, and then no
one uses (or complains about) it for ages, and all of a sudden you ask
yourself... what the F...
Been there, done that.... ;-)
Op 4-3-2013 12:23, Pat @ Pgogy schreef:
> Thanks Tom,
>
> This was always a bit weird. I thought the docs explained this though? Or the installer?
>
> Pgogy Webstuff - http://www.pgogywebstuff.com
> Makers of web things of a fair to middling quality
>
> On 4 Mar 2013, at 09:55, Tom Reijnders <reijnders at tor.nl> wrote:
>
>> I've solved some issues with the peer review module and the feedback module.
>>
>> 1. Sending email from the system depends on some items in site_details that are really explained, and then in the code not used properly.
>> 2. If not all users are on the same email domain, peer review doesn't work, as the review will be sent to <user> @ <site_details->email_to_add_to_user>
>>
>> 1. Has to do with headers. You are supposed to add the email headers yourself in site_details. Each line seperated by a '*'.
>>
>> There are three issues with that:
>> - No user knows what to fill in there. Even I as a network specialist had to look at the code what was expected there. End even then, this field is often used inappropriately. Only in the case of peer reviews, the code assumed it was more than 1 header line separated with '*'
>> - There is a field 'site_email_account', but it's not used as the 'From' Address.
>> - You have to know that the email bodies are HTML, so you have to know to add Content-Type: text/html header, otherwise the emails look really weird.
>>
>> Fix:
>>
>> Added function get_email_headers() to functions.php (don't know whether that's the best location), that tries to build a proper header stringe for the php mail function:
>> 1. It adds the site_email_account as the From: header, if there is no From field in the site_details->headers field
>> 2. It adds a Content-Type header is it is not in the site_details->headers field
>> 3. It replaces the '*' with '\n' in the site_details->headers field and adds the result.
>>
>> 2. This is annoying for example in the case of the sand pit or in case of Toll-Net.
>>
>> Fix:
>>
>> Added retouremail to the peerreview form. I decided NOT to change the Database schema, but encoded the retouremail address(es) in the additional_sharing->extra field.
>>
>> Will commit later today,
>>
>> Tom
>>
>> --
>> --
>>
>> Tom Reijnders
>> TOR Informatica
>> Chopinlaan 27
>> 5242HM Rosmalen
>> Tel: 073 5226191
>> Fax: 073 5226196
>>
>>
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an attachment
>> may still contain software viruses which could damage your computer system:
>> you are advised to perform your own checks. Email communications with the
>> University of Nottingham may be monitored as permitted by UK legislation.
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
More information about the Xerte-dev
mailing list