[
http://jira.dspace.org/jira/browse/DS-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Bollini updated DS-217:
------------------------------
Attachment: DS-217-substitution-variable-license.patch
I have attached a patch file that make more customizable the license text.
I have added a "formatting step" in the license retrieval so that eperson, item
and collection data can be used
in the license text.
In the license text, both collection license and wide site license, can use
variable substitution in her text
according to the rule of java.util.Formatter
%1$s will be translated in the "submitter first name"
%2$s will be translated in the "submitter last name"
%3$s will be translated in the "submitter email"
%4$s will be translated in the current date"
%5$s will be translated in the collection info
%6$s will be translated in the item info
%7$s will be translated in the eperson info
args 5-7 are reserved to advanced user that can customize the output
implementing and configuring through plugin
manager the new interface LicenseArgumentFormatter
Please comment about the opportunities to go ahead in this direction... I could
add a new preview function for the admin in the JSPUI to prevent wrong license
text to block submission. I might not have enough time to do the same thing
(preview function) also for XMLUI.
> Hardcoded String in the license bitstream
> -----------------------------------------
>
> Key: DS-217
> URL: http://jira.dspace.org/jira/browse/DS-217
> Project: DSpace 1.x
> Issue Type: Bug
> Components: DSpace API
> Affects Versions: 1.5.0, 1.5.1, 1.5.2
> Reporter: Andrea Bollini
> Assignee: Andrea Bollini
> Priority: Minor
> Attachments: d, DS-217-substitution-variable-license.patch
>
>
> The Item's licenseGranted method hardcoded the string:
> "License granted by " + eperson.getFullName() + " (" + eperson.getEmail() +
> ") on "+ DCDate.getCurrent().toString() + " (GMT):\n\n"
> at the start of the license bitstream. This is not desiderable for some user
> that like to have this text translated and/or in a different position.
> Moreover, could be appropriate move this method in the LicenseStep processing
> class? should we allow the license text itself to contain parameter that will
> be replaced at runtime with current user data and date so that the license
> showed to the user will be exactly the same that will be stored?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel