[EP-tech] Cannot add new phrase in Phrase Editor

David R Newman drn at ecs.soton.ac.uk
Thu Jun 11 07:56:52 BST 2020


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&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=F1D1I0%2BxxwZQZlbkGYakKmfed5nJ6Q9EdVyJ1blgmVU%3D&amp;reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=F1D1I0%2BxxwZQZlbkGYakKmfed5nJ6Q9EdVyJ1blgmVU%3D&amp;reserved=0>" 
> xmlns:epp="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fphrase&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=N1684CaZC4WDxFHbXPqrEcGTo7YduFZBCKCq1amTE7c%3D&amp;reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fphrase&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=N1684CaZC4WDxFHbXPqrEcGTo7YduFZBCKCq1amTE7c%3D&amp;reserved=0>" 
> xmlns:epc="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fcontrol&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=LNMqz3k5Jqf1ww4dZthqEofrcuX8PBQdMg1YZ2tWgm8%3D&amp;reserved=0 
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fcontrol&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=LNMqz3k5Jqf1ww4dZthqEofrcuX8PBQdMg1YZ2tWgm8%3D&amp;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 
> <mailto: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
>     underEPRINTS_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
>>     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.
>>
>>     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
>>     <mailto: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?
>>>
>>>
>>>         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 <mailto: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&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ay3ucGdjtqTmhsOxh3CPiIOyEv1TdHOI7x7mgmQW2Yw%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ay3ucGdjtqTmhsOxh3CPiIOyEv1TdHOI7x7mgmQW2Yw%3D&amp;reserved=0>
>>>         *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mVHF2TV2%2BxntWMRbKxEWejMvb5ByfqH5wanvoMxN694%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mVHF2TV2%2BxntWMRbKxEWejMvb5ByfqH5wanvoMxN694%3D&amp;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&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mknYUftyLo%2BBvYkKtiZJSELJIANlWRAWRrePjA1X8Qc%3D&amp;reserved=0>
>>         	Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=r8zh1Ke3XM8f1SXKe1qMc8tP7vORDfjXrUj1Rv35i4M%3D&amp;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&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mknYUftyLo%2BBvYkKtiZJSELJIANlWRAWRrePjA1X8Qc%3D&amp;reserved=0>
>>
>>
>>         <#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&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ay3ucGdjtqTmhsOxh3CPiIOyEv1TdHOI7x7mgmQW2Yw%3D&amp;reserved=0
>>         <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ay3ucGdjtqTmhsOxh3CPiIOyEv1TdHOI7x7mgmQW2Yw%3D&amp;reserved=0>
>>         *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mVHF2TV2%2BxntWMRbKxEWejMvb5ByfqH5wanvoMxN694%3D&amp;reserved=0
>>         <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=mVHF2TV2%2BxntWMRbKxEWejMvb5ByfqH5wanvoMxN694%3D&amp;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 <mailto: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 <mailto: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. "


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=01%7C01%7C%7Cec50de31b3be46489b3d08d80dd49f7b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=hO82KidycFnxUzOK%2BstPWuztvtT447VkKo%2F4o71upH0%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20200611/994d2379/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/20200611/994d2379/attachment-0003.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/20200611/994d2379/attachment-0004.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/20200611/994d2379/attachment-0005.jpe 


More information about the Eprints-tech mailing list