[ 
http://jira.dspace.org/jira/browse/DS-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Donohue updated DS-387:
---------------------------

    Attachment: PackagerOptions-v2-Trunk.patch

Revisiting this Improvement, which didn't make it into 1.6.x.

Now that the Packager classes required reworking for AIP implementation 
(DS-466), this is a prime opportunity to also add in this improvement to better 
report the various additional options that each Packager plugin supports.

I've updated this patch to the latest Trunk code, and made sure that all of the 
existing Packager Plugins now report their various options/parameters which 
they accept.   Now, from commandline, you can run 'dspace packager -h -t 
<packager-name>' to get a list of all available options for that specific 
packager command.

Assuming there are no complaints, I'll commit this to Trunk early next week so 
that it is available in 1.7.   

In the meantime, feel free to take a look at the new patch 
(PackagerOptions-v2-Trunk.patch) and add any commits you may have.

> Add ability for various Packager plugins to report their custom "options" via 
> command line
> ------------------------------------------------------------------------------------------
>
>                 Key: DS-387
>                 URL: http://jira.dspace.org/jira/browse/DS-387
>             Project: DSpace 1.x
>          Issue Type: Improvement
>          Components: DSpace API
>    Affects Versions: 1.5.2, 1.6.0
>         Environment: Any command line interface
>            Reporter: Tim Donohue
>            Assignee: Tim Donohue
>            Priority: Minor
>         Attachments: PackagerOptions-v2-Trunk.patch
>
>
> Currently, the various packager plugins (METS & PDF) have no way to report to 
> users what options are available to be passed to the plugin (via the 
> 'packager -o [option]=[value]' flag).
> It'd be nice to allow a user to get a brief description of the valid options 
> for each plugin via the commandline interface.  I've implemented a simple 
> patch (see attached) which lets users do this as follows:
> (1) running 'dspace packager -h' will output the normal Help information, 
> including a list of all currently configured packager plugins (this feature 
> already existed)
> (2) running 'dspace packager -h -t METS' will report normal Help information, 
> but will *also* output some additional options which are specific to the METS 
> packager plugin.  Similarly, 'dspace packager -h -t PDF' would report any 
> additional options which are specific to the PDF packager plugin.
> The way this is implemented is to add a "getParameterHelp()" method to both 
> the PackageIngester and PackageDisseminator interfaces.  Each implementing 
> packager plugin is responsible for reporting any custom options in this 
> "getParameterHelp()" method.
> See the attached patch for further details.   (NOTE: This patch is very 
> slightly dependent on DS-386 in that some of the line numbers in the patch 
> are only correct if you already have installed DS-386.)

-- 
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

        

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to