[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] Cannot add new phrase in Phrase Editor
Hi David Newsman and everyone,
I've tried to edit the original phrase in the Phrase Editor page, but
whenever I click the "save" button, it still displays the menu bar. I have
to edit the original phrase and add new phrases through zz_webcfg.xml and
local.xml. It works.
This is the result for permission for zz_webcfg.xml and command "ps aux |
grep httpd"
[image: permission file xml.JPG]
SELinux is "disabled" and SELINUXTYPE = targeted.
I'm not sure why my repo looks like that, but since it's working and
functioning now, so I guess the case is closed. Thank you for your help.
On Thu, Jun 11, 2020 at 2:56 PM David R Newman <drn at ecs.soton.ac.uk> wrote:
> Hi Ilina Syazwani Musa,
>
> zz_webcfg.xml is the file that would be changed if Add New Phrase was
> working. You can add new phrases to this file in the form:
>
> <epp:phrase id="PHRASE_NAME">PHRASE TEXT</epp:phrase>
>
> Subsituting PHRASE_NAME and PHRASE TEXT as appropriate. This needs to go
> within the epp:phrases XML block. Ideally below the XML comment "This file
> is...". You can also add epp:phrase lines for existing phrases to this
> file and it will override the current value. The zz prefix means it will
> be loaded last and that is why it can override pre-existing phrases.
>
> One other thought as to why you may be having this issue is that the
> permissions for this file (zz_webcfg.xml) do not allow it to be written to
> by the websever. Please could you tell me what permissions you have set
> ("ls -l zz_webcfg.xml"), also what user is the webserver running under "ps
> aux | grep httpd" (for RedHat/Fedora/CentOS) of "ps aux | grep apache" (for
> Debian/Ubuntu). Beyond this, do you have SELinux enabled, you can test
> this by running the command getenforce at the command line. If this
> command is not recognised, then you do not have SELinux installed, which is
> likely the case with Debian/Ubuntu operating systems.
>
> Regards
>
> David Newman
> On 11/06/2020 04:07, ILINA SYAZWANI BINTI MUSA wrote:
>
> Hi David Newman and everyone,
>
> The zz_webcfg.xml looks like this:
>
> <?xml version="1.0" encoding="utf-8" standalone="no"?>
> <!DOCTYPE phrases SYSTEM "entities.dtd">
> <epp:phrases xmlns="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=arsXWie8QBw97fxpFdG%2BJl0ykerPcKTIkDWgezDG1MU%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=arsXWie8QBw97fxpFdG%2BJl0ykerPcKTIkDWgezDG1MU%3D&reserved=0>"
> xmlns:epp="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fphrase&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=0G9KOh%2FDz%2FPVB9AIJnNACtlLTpvIKRBUOwUEyZnjEm0%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fphrase&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=0G9KOh%2FDz%2FPVB9AIJnNACtlLTpvIKRBUOwUEyZnjEm0%3D&reserved=0>"
> xmlns:epc="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fcontrol&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=dDH4Z5%2FN33LOaiI1zToDLbF618Cwl6tE%2FH%2FRn9qgX74%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fcontrol&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=dDH4Z5%2FN33LOaiI1zToDLbF618Cwl6tE%2FH%2FRn9qgX74%3D&reserved=0>
> ">
>
> <!-- This file is used to add phrases from the phrase editor screen -->
>
> </epp:phrases>
>
> I do not change anything in this file. If I cannot add new phrases in that
> page, which file I can add them manually inside the code? Can anyone give
> me the example? I want to add a new item, "exampaper".
>
> Thank you.
> ~
>
> On Wed, Jun 10, 2020 at 5:42 PM David R Newman <drn at ecs.soton.ac.uk>
> wrote:
>
>> Hi Ilina Syazwani Musa,
>>
>> Check the file
>> EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/lang/en/phrases/zz_webcfg.xml and
>> see what appears in this file, probably towards the end but if this is a
>> new repository I expect this file will be quite short. EPRINTS_PATH is the
>> path you installed EPrints under (probably /opt/eprints3/) ARCHIVE_NAME is
>> the ID you gave to your repository archive when you created, whichi s
>> probably the only sub-directory under EPRINTS_PATH/archives/ directory.
>> It looks like somehow the pin for that EPrints menu is get added to the
>> listing of phrases. I am not sure why this would happen in a newly
>> installed repository. It is not something I have seen before and I have
>> worked with quite a few different 3.4.1 repositories.
>>
>> Regards
>>
>> David Newman
>> On 10/06/2020 10:21, ILINA SYAZWANI BINTI MUSA wrote:
>>
>> Hi David Newman and everyone,
>>
>> Actually my menu is already displayed in the correct place as you can see
>> in this picture below.
>>
>> Before
>> [image: phrase editor before.JPG]
>>
>> I've tried to insert a new phrase such as 'eprint_tyname_exampaper' but
>> after I clicked the 'Add New Phrase' button, it showed the menu bar, not
>> the textbox to insert the new identifier. Here, after I clicked twice the
>> 'Add New Phrase' button, then, the systems show two lines of menu bar. I
>> did not do any customization for any files yet so I don't know why it
>> happened like this.
>>
>> [image: phrase editor after.JPG]
>>
>> Any idea? Thank you.
>>
>> On Wed, Jun 10, 2020 at 4:33 PM David R Newman via Eprints-tech <
>> eprints-tech at ecs.soton.ac.uk> wrote:
>>
>>> Hi Ilina Syazwani Musa,
>>>
>>> One thing that looks odd here os that your menu and search bar looks be
>>> displaying in the wrong place, (inside the listing of phrases that can be
>>> edited) I am not quite sure why this is. However, in its self this should
>>> not stop you from adding new phrases. What value did you enter into the
>>> text box next to the "Add New Phrase" button before clicking on that
>>> button? If you did not enter any value (i.e. an ID for the new phrase)
>>> then a new phrase will not be created.
>>>
>>> Regards
>>>
>>> David Newman
>>> On 10/06/2020 09:15, ILINA SYAZWANI BINTI MUSA via Eprints-tech wrote:
>>>
>>> Hi there,
>>>
>>> I've just installed eprints 3.4.1 for my organisation. This is not the
>>> first time I'm using the Eprints since we already installed the older
>>> version of eprints for our institutional repositories.
>>>
>>> Right now, I want to customize this repo. However, when I click 'add new
>>> phrase' in the Phrase Editor page, it does not display the correct
>>> interface. It shows exactly as tab menus as shown below. So I cannot insert
>>> the new phrase for my repo. Which file I have to edit this error?
>>>
>>>
>>> [image: phrase editor.JPG]
>>> Thank you.
>>> --
>>> Ilina Syazwani Musa (ISM)
>>> Pustakawan/ Librarian,
>>> Bahagian Sistem Maklumat/ Information System Division,
>>> Perpustakaan Utama/ Central Library,
>>> University of Malaya,
>>> 50603 Lembah Pantai,
>>> Kuala Lumpur.
>>> Tel : +603-7967 3296
>>> E-mail: *ilina at um.edu.my <ilina at um.edu.my>*
>>>
>>> " PENAFIAN: E-mel ini dan apa-apa fail yang dikepilkan bersamanya
>>> ("Mesej") adalah ditujukan hanya untuk kegunaan penerima(-penerima) yang
>>> termaklum di atas dan mungkin mengandungi maklumat sulit. Anda dengan ini
>>> dimaklumkan bahawa mengambil apa jua tindakan bersandarkan kepada, membuat
>>> penilaian, mengulang hantar, menghebah, mengedar, mencetak, atau menyalin
>>> Mesej ini atau sebahagian daripadanya oleh sesiapa selain daripada
>>> penerima(-penerima) yang termaklum di atas adalah dilarang. Jika anda telah
>>> menerima Mesej ini kerana kesilapan, anda mesti menghapuskan Mesej ini
>>> dengan segera dan memaklumkan kepada penghantar Mesej ini menerusi balasan
>>> e-mel. Pendapat-pendapat, rumusan-rumusan, dan sebarang maklumat lain di
>>> dalam Mesej ini yang tidak berkait dengan urusan rasmi Universiti Malaya
>>> adalah difahami sebagai bukan dikeluar atau diperakui oleh mana-mana pihak
>>> yang disebut.
>>>
>>>
>>> DISCLAIMER: This e-mail and any files transmitted with it ("Message") is
>>> intended only for the use of the recipient(s) named above and may contain
>>> confidential information. You are hereby notified that the taking of any
>>> action in reliance upon, or any review, retransmission, dissemination,
>>> distribution, printing or copying of this Message or any part thereof by
>>> anyone other than the intended recipient(s) is strictly prohibited. If you
>>> have received this Message in error, you should delete this Message
>>> immediately and advise the sender by return e-mail. Opinions, conclusions
>>> and other information in this Message that do not relate to the official
>>> business of University of Malaya shall be understood as neither given nor
>>> endorsed by any of the forementioned. "
>>>
>>> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=MEaTSuWJRWFsfqMhzsFepCtHKoyAkEGo0cGANGsIlSI%3D&reserved=0 <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=MEaTSuWJRWFsfqMhzsFepCtHKoyAkEGo0cGANGsIlSI%3D&reserved=0>
>>> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=%2BCSITbmYxuYeRaNmGjfcQ4nqV227yLq4KCdRnWWu6uI%3D&reserved=0 <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=%2BCSITbmYxuYeRaNmGjfcQ4nqV227yLq4KCdRnWWu6uI%3D&reserved=0>
>>>
>>>
>>>
>>> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=ssvKhuOJ84KHtHFgZyD%2BrG5LkkW8Idk712wKxe7dj%2F0%3D&reserved=0> Virus-free.
>>> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=GfGx7rSjAOEUn45jJLNtISrF6UfiRQ5DJCGdVdEbgd4%3D&reserved=0
>>> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=ssvKhuOJ84KHtHFgZyD%2BrG5LkkW8Idk712wKxe7dj%2F0%3D&reserved=0>
>>> <#m_191770575329636399_m_-4686874323697687158_m_-6236980284535660365_m_93629966857577370_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>> *** Options:
>>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=MEaTSuWJRWFsfqMhzsFepCtHKoyAkEGo0cGANGsIlSI%3D&reserved=0
>>> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=MEaTSuWJRWFsfqMhzsFepCtHKoyAkEGo0cGANGsIlSI%3D&reserved=0>
>>> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=%2BCSITbmYxuYeRaNmGjfcQ4nqV227yLq4KCdRnWWu6uI%3D&reserved=0
>>> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cdd22d544df55412f667e08d811935acc%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=%2BCSITbmYxuYeRaNmGjfcQ4nqV227yLq4KCdRnWWu6uI%3D&reserved=0>
>>
>>
>>
>> --
>> Ilina Syazwani Musa (ISM)
>> Pustakawan/ Librarian,
>> Bahagian Sistem Maklumat/ Information System Division,
>> Perpustakaan Utama/ Central Library,
>> University of Malaya,
>> 50603 Lembah Pantai,
>> Kuala Lumpur.
>> Tel : +603-7967 3296
>> E-mail: *ilina at um.edu.my <ilina at um.edu.my>*
>>
>> " PENAFIAN: E-mel ini dan apa-apa fail yang dikepilkan bersamanya
>> ("Mesej") adalah ditujukan hanya untuk kegunaan penerima(-penerima) yang
>> termaklum di atas dan mungkin mengandungi maklumat sulit. Anda dengan ini
>> dimaklumkan bahawa mengambil apa jua tindakan bersandarkan kepada, membuat
>> penilaian, mengulang hantar, menghebah, mengedar, mencetak, atau menyalin
>> Mesej ini atau sebahagian daripadanya oleh sesiapa selain daripada
>> penerima(-penerima) yang termaklum di atas adalah dilarang. Jika anda telah
>> menerima Mesej ini kerana kesilapan, anda mesti menghapuskan Mesej ini
>> dengan segera dan memaklumkan kepada penghantar Mesej ini menerusi balasan
>> e-mel. Pendapat-pendapat, rumusan-rumusan, dan sebarang maklumat lain di
>> dalam Mesej ini yang tidak berkait dengan urusan rasmi Universiti Malaya
>> adalah difahami sebagai bukan dikeluar atau diperakui oleh mana-mana pihak
>> yang disebut.
>>
>>
>> DISCLAIMER: This e-mail and any files transmitted with it ("Message") is
>> intended only for the use of the recipient(s) named above and may contain
>> confidential information. You are hereby notified that the taking of any
>> action in reliance upon, or any review, retransmission, dissemination,
>> distribution, printing or copying of this Message or any part thereof by
>> anyone other than the intended recipient(s) is strictly prohibited. If you
>> have received this Message in error, you should delete this Message
>> immediately and advise the sender by return e-mail. Opinions, conclusions
>> and other information in this Message that do not relate to the official
>> business of University of Malaya shall be understood as neither given nor
>> endorsed by any of the forementioned. "
>>
>>
>
> --
> Ilina Syazwani Musa (ISM)
> Pustakawan/ Librarian,
> Bahagian Sistem Maklumat/ Information System Division,
> Perpustakaan Utama/ Central Library,
> University of Malaya,
> 50603 Lembah Pantai,
> Kuala Lumpur.
> Tel : +603-7967 3296
> E-mail: *ilina at um.edu.my <ilina at um.edu.my>*
>
> " PENAFIAN: E-mel ini dan apa-apa fail yang dikepilkan bersamanya
> ("Mesej") adalah ditujukan hanya untuk kegunaan penerima(-penerima) yang
> termaklum di atas dan mungkin mengandungi maklumat sulit. Anda dengan ini
> dimaklumkan bahawa mengambil apa jua tindakan bersandarkan kepada, membuat
> penilaian, mengulang hantar, menghebah, mengedar, mencetak, atau menyalin
> Mesej ini atau sebahagian daripadanya oleh sesiapa selain daripada
> penerima(-penerima) yang termaklum di atas adalah dilarang. Jika anda telah
> menerima Mesej ini kerana kesilapan, anda mesti menghapuskan Mesej ini
> dengan segera dan memaklumkan kepada penghantar Mesej ini menerusi balasan
> e-mel. Pendapat-pendapat, rumusan-rumusan, dan sebarang maklumat lain di
> dalam Mesej ini yang tidak berkait dengan urusan rasmi Universiti Malaya
> adalah difahami sebagai bukan dikeluar atau diperakui oleh mana-mana pihak
> yang disebut.
>
>
> DISCLAIMER: This e-mail and any files transmitted with it ("Message") is
> intended only for the use of the recipient(s) named above and may contain
> confidential information. You are hereby notified that the taking of any
> action in reliance upon, or any review, retransmission, dissemination,
> distribution, printing or copying of this Message or any part thereof by
> anyone other than the intended recipient(s) is strictly prohibited. If you
> have received this Message in error, you should delete this Message
> immediately and advise the sender by return e-mail. Opinions, conclusions
> and other information in this Message that do not relate to the official
> business of University of Malaya shall be understood as neither given nor
> endorsed by any of the forementioned. "
>
>
--
Ilina Syazwani Musa (ISM)
Pustakawan/ Librarian,
Bahagian Sistem Maklumat/ Information System Division,
Perpustakaan Utama/ Central Library,
University of Malaya,
50603 Lembah Pantai,
Kuala Lumpur.
Tel : +603-7967 3296
E-mail: *ilina at um.edu.my <ilina at um.edu.my>*
--
"
PENAFIAN: E-mel ini dan apa-apa fail yang dikepilkan bersamanya
("Mesej") adalah ditujukan hanya untuk kegunaan penerima(-penerima) yang
termaklum di atas dan mungkin mengandungi maklumat sulit. Anda dengan ini
dimaklumkan bahawa mengambil apa jua tindakan bersandarkan kepada, membuat
penilaian, mengulang hantar, menghebah, mengedar, mencetak, atau menyalin
Mesej ini atau sebahagian daripadanya oleh sesiapa selain daripada
penerima(-penerima) yang termaklum di atas adalah dilarang. Jika anda telah
menerima Mesej ini kerana kesilapan, anda mesti menghapuskan Mesej ini
dengan segera dan memaklumkan kepada penghantar Mesej ini menerusi balasan
e-mel. Pendapat-pendapat, rumusan-rumusan, dan sebarang maklumat lain di
dalam Mesej ini yang tidak berkait dengan urusan rasmi Universiti Malaya
adalah difahami sebagai bukan dikeluar atau diperakui oleh mana-mana pihak
yang disebut.
DISCLAIMER: This e-mail and any files transmitted with it
("Message") is intended only for the use of the recipient(s) named above
and may contain confidential information. You are hereby notified that the
taking of any action in reliance upon, or any review, retransmission,
dissemination, distribution, printing or copying of this Message or any
part thereof by anyone other than the intended recipient(s) is strictly
prohibited. If you have received this Message in error, you should delete
this Message immediately and advise the sender by return e-mail. Opinions,
conclusions and other information in this Message that do not relate to the
official business of University of Malaya shall be understood as neither
given nor endorsed by any of the forementioned. "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200616/41fd8524/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phrase editor before.JPG
Type: image/jpeg
Size: 171541 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200616/41fd8524/attachment-0004.jpe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phrase editor after.JPG
Type: image/jpeg
Size: 209079 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200616/41fd8524/attachment-0005.jpe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phrase editor.JPG
Type: image/jpeg
Size: 95953 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200616/41fd8524/attachment-0006.jpe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: permission file xml.JPG
Type: image/jpeg
Size: 89777 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200616/41fd8524/attachment-0007.jpe