This is a general issue when you have text that allow the use of placeholders 
{}. You need to escape apostrophes with another apostrophe, ie write 
publication''s
Andrea



Inviato da Samsung Mobile

<div>-------- Messaggio originale --------</div><div>Da: Michael White 
<michael.wh...@stir.ac.uk> </div><div>Data:17/06/2014  17:09  (GMT+01:00) 
</div><div>A: dspace-tech@lists.sourceforge.net </div><div>Oggetto: 
[Dspace-tech] Apostrophes in email templates? </div><div>
</div>Hi,

DSpace v4.1/JSPUI.

I have been tweaking the email templates and have noticed issues when 
attempting to include apostrophes in a template. There appear to be 2 issues:

1. Apostrophes do not display
2. If an apostrophe is used before the placeholders in the template, then the 
placeholders are not replaced (so email is sent out with {0}, {1} etc)

So, for issue 1 for example, my template contains the sentence:

"This is a permanent URL so you can use it to reference this publication and it 
will be included with the publication's citation on your RMS webpage."

- but when the email arrives, it contains:

"This is a permanent URL so you can use it to reference this publication and it 
will be included with the publications citation on your RMS webpage." 

[i.e. no apostrophe!]

I have ensured my templates are encoded in UTF-8 (without the BOM as I noted 
this also caused issues) using Notepad++ and have the following in DSpace 
config:

mail.charset = UTF-8

I searched the mailing lists and Jira but could find no direct reference to 
issue 1, and only one reference to issue 2 from way back in 2004:

http://sourceforge.net/p/dspace/mailman/message/9304257/

- where the workaround was "not to use apostrophes in email templates!" :-)

Has anyone else come across this? Anyone have any thoughts on how to get this 
working?

My library colleagues are in the process of redrafting all our emails and 
whilst I am able to tweak them to remove apostrophes (they've all contained at 
least one apostrophe to date!) in some cases this makes the wording a bit 
clumsy so it would be much nicer to fix the problem at source :-)

Any pointers, thoughts, or suggestions welcome.

Cheers,

Mike

Michael White 
eLearning Liaison and Development (eLD)
Information Services
S8, Library
University of Stirling 
Stirling SCOTLAND 
FK9 4LA 
Email: michael.wh...@stir.ac.uk 
Tel: +44 (0) 1786 466877 
Fax: +44 (0) 1786 466880
http://www.stir.ac.uk/is/staff/about/teams/aldt/#eld



-- 
The University of Stirling has been ranked in the top 12 of UK universities for 
graduate employment*.
94% of our 2012 graduates were in work and/or further study within six months 
of graduation.
*The Telegraph
The University of Stirling is a charity registered in Scotland, number SC 
011159.


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to