Project

General

Profile

« Previous | Next » 

Revision 36186

In journal display info floats are converted to numbers with 2 decimal digits when displayed, and apc gets labeled as euros and the discount gets labeled as a percentage

View differences:

JournalDisplayInfo.java
62 62
            if (journal.getLicence() != null && !journal.getLicence().trim().equals(""))
63 63
                contents += "<dl class=\"dl-horizontal\"><dt>LICENCE</dt><dd>" + journal.getLicence() + "</dd></dl>";
64 64

  
65
            contents += "<dl class=\"dl-horizontal\"><dt>APC</dt><dd>" + journal.getApc() + "</dd></dl>";
65
            contents += "<dl class=\"dl-horizontal\"><dt>APC</dt><dd>" + (Math.round(journal.getApc()*100) / 100.0) + " Euros</dd></dl>";
66 66

  
67
            contents += "<dl class=\"dl-horizontal\"><dt>DISCOUNT</dt><dd>" + journal.getDiscount() + "</dd></dl>";
67
            contents += "<dl class=\"dl-horizontal\"><dt>DISCOUNT</dt><dd>" + (Math.round(journal.getDiscount()*100) / 100.0) + " %</dd></dl>";
68 68

  
69 69
            contents += "</div>";
70 70
            journalDisplayInfoElement.setHTML(contents);

Also available in: Unified diff