Difference between revisions of "MultiLang Fields Bazaar Package"
(→Editing the workflow) |
|||
Line 15: | Line 15: | ||
== Editing the workflow == | == Editing the workflow == | ||
+ | In order for the plugin to be usable, the default field versions need to be commented out and the new multilingual ones need to be added. So, '''~eprints/archives/reponame/cfg/workflows/eprint/default.xml''' has to be edited as follows: | ||
+ | |||
<source lang="html4strict"> | <source lang="html4strict"> | ||
− | <component><field ref="ml_title" required="yes"/></component> | + | <!-- |
+ | <component><field ref="title" required="yes" input_lookup_url="{$config{rel_cgipath}}/users/lookup/title_duplicates" input_lookup_params="id={eprintid}&dataset=eprint&field=title" /></component> | ||
+ | <component><field ref="abstract"/></component> | ||
+ | --> | ||
+ | |||
+ | <component><field ref="ml_title" required="yes" input_lookup_url="{$config{rel_cgipath}}/users/lookup/<component><field ref="abstract"/></component> -->" input_lookup_params="id={eprintid}&dataset=eprint&field=ml_title"/></component> | ||
+ | <component><field ref="ml_abstract"/></component> | ||
</source> | </source> | ||
+ | |||
+ | As can be seen, the default lookup script is replaced by the plugin's lookup script which supports our new '''ml_'''fields ('''ml_title_duplicates'''). |
Revision as of 12:35, 6 June 2016
The MultiLang plugins introduces multiple language support in EPrints fields. The specific plugin replaces title and abstract fields with their multilanguage version (ml_title and ml_abstract respectively). The wiki-page explaining how one can add custom multilang-fields in EPrints -which basically explains how this plugin was created- is Adding multilang fields.
Installation Prerequisites
None
Installation
Install through the EPrints Bazaar
How to use the plugin
Once the plugin has been installed, the user needs to edit the workflow to contain the multilingual fields' versions instead of the default ones. This procedure is explained in MultiLang Fields Bazaar Package#How_the_plugin_works section.
Editing the workflow
In order for the plugin to be usable, the default field versions need to be commented out and the new multilingual ones need to be added. So, ~eprints/archives/reponame/cfg/workflows/eprint/default.xml has to be edited as follows:
<!--
<component><field ref="title" required="yes" input_lookup_url="{$config{rel_cgipath}}/users/lookup/title_duplicates" input_lookup_params="id={eprintid}&dataset=eprint&field=title" /></component>
<component><field ref="abstract"/></component>
-->
<component><field ref="ml_title" required="yes" input_lookup_url="{$config{rel_cgipath}}/users/lookup/<component><field ref="abstract"/></component> -->" input_lookup_params="id={eprintid}&dataset=eprint&field=ml_title"/></component>
<component><field ref="ml_abstract"/></component>
As can be seen, the default lookup script is replaced by the plugin's lookup script which supports our new ml_fields (ml_title_duplicates).