Hi Shakir,
I really didn't get why Ahmad ask to change the page-structure.xsl, when
you add the webui.supported.locales = en, de, ar in the dspace.cfg, DSpace
will create the menu to you select the language, so I don't see the point
to change it in the page-structure.xsl.
About the css, you should add it to the sitemap.xml of you theme, you
should add the css, among the css, look the code below, of course I'm
supposing that you have the default installation of DSpace 5.
<map:resource name="transform-to-xhtml">
<!-- Add page metadata to DRI -->
<!-- This adds all Stylesheets (CSS) and Javascript (js) into the DRI XML,
so that they are accessible to the XSLTs -->
<!-- 3 different IncludePageMeta transformers to ensure that the
stylesheets end up in the correct order-->
<map:transform type="IncludePageMeta">
<map:parameter name="stylesheet.screen#1" value="lib/css/reset.css"/>
<map:parameter name="stylesheet.screen#2" value="lib/css/base.css"/>
<map:parameter name="stylesheet.screen#3" value="lib/css/helper.css"/>
<map:parameter name="stylesheet.screen#4"
value="lib/css/jquery-ui-1.8.15.custom.css"/>
<map:parameter name="stylesheet.screen#5" value="lib/css/style.css"/>
<map:parameter name="stylesheet.screen#6"
value="lib/css/authority-control.css"/>
</map:transform>
<map:transform type="IncludePageMeta">
<map:parameter name="stylesheet.handheld" value="lib/css/handheld.css"/>
<map:parameter name="stylesheet.print" value="lib/css/print.css"/>
</map:transform>
<map:transform type="IncludePageMeta">
<map:parameter name="stylesheet.all" value="lib/css/media.css"/>
<map:parameter name="javascript"
value="lib/js/jquery-ui-1.8.15.custom.min.js"/>
<map:parameter name="theme.path" value="{global:theme-path}"/>
<map:parameter name="theme.name" value="{global:theme-path}"/>
<map:parameter name="curRequestURI" value="{1}"/>
</map:transform>
One last thing, it is a good practice do not change the DSpace
code files, instead, create a new file and directory structure in the
module folder and it will replace the DSpace original file in the
Build process.
Best
Luiz
On Fri, Jun 3, 2016 at 5:51 PM, Shakir Khan <[email protected]>
wrote:
> Dear Luiz
> Thank you for your revert. I edited page-structure.XML just to switch
> language because Arabic is RTL and how can I call style_rtl.css for the
> same funtionality. This is the copy of style.css. Yes I added
> webui.supported.locales = en, de, ar in the dspace.cfg? and its working
> fine but now just one problem to change RTL for Aabic. Without RTL its
> working fine. I followed this link
> https://amdmaher.wordpress.com/2013/08/16/add-another-language-to-dspace/
> and it worked fine.
> Kindly help me if you have better way for Arabic shifting RTL.
>
>
> On Jun 4, 2016 00:08, "Luiz dos Santos" <[email protected]> wrote:
>
>> Hi,
>>
>> I didn't get why are you editing the page-structure.xml, did you try
>> to add webui.supported.locales = en, de, ar in the dspace.cfg?
>>
>> Best regards
>> Luiz
>>
>> On Fri, Jun 3, 2016 at 11:42 AM, Shakir Khan <[email protected]>
>> wrote:
>>
>>> Anybody help please....
>>>
>>>
>>>
>>> On Friday, June 3, 2016 at 1:12:03 PM UTC+3, Shakir Khan wrote:
>>>>
>>>> Hello Dear members
>>>> It is working with me Arabic support, my issue is that I want to call
>>>> style_rtl.css for arabic support so that I can change the style for Arabic
>>>> RTL.
>>>>
>>>> I already added the following for language switcher and switching is
>>>> working fine, my concern only to call different style_rtl.css for Arabic. I
>>>> used classic theme of xmlui.
>>>>
>>>> dspace\webapps\xmlui\themes\Mirage\lib\xsl\core\page-structure.xsl
>>>>
>>>> <div style=”margin-right:300px;direction:rtl”> language :: <a
>>>> href=”/xmlui?locale-attribute=ar”> Arabic</a> | <a
>>>> href=”/xmlui?locale-attribute=en”> English </a> </div>
>>>>
>>>>
>>>> Can anybody please help me what conditional code should I add for this
>>>> and in which file?
>>>>
>>>>
>>>> Thanks in advance
>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "DSpace Technical Support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.