EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08198
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Cannot add new phrase in Phrase Editor
- To: ILINA SYAZWANI BINTI MUSA <ilina@um.edu.my>
- Subject: Re: [EP-tech] Cannot add new phrase in Phrase Editor
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Tue, 16 Jun 2020 09:27:05 +0100
Hi Ilina Syazwani Musa,
Good that at
least editing the phrases through editing phrase files at the
command line works. I have look through the downloads of the
pages you sent me separately and I cannot figure out why you
phrase editor is behaving like this. The _javascript_ for the
phrase editor page looks consistent with a standard repository.
I cannot see anything in the page before or after adding/editing
the phrase that gives a clue to why the admin menu appears in
the phrase editor listing. As the phrase editor is _javascript_
with AJAX based I can only assume there is some errant
_javascript_ somewhere that is causing this issue. However, from
the files you sent me I cannot see any _javascript_ beyond the
standard I would expect for a new 3.4.1 repository.
Sorry I could not
be of more help but even if this was my repository and I had
complete access to debug it, I think I would be struggling to
get to the bottom of this issue.
Regards
David Newman
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"
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@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="http://www.w3.org/1999/xhtml" xmlns:epp="http://eprints.org/ep3/phrase" xmlns:epc="http://eprints.org/ep3/control">
<!-- 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@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
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.
Any idea? Thank you.
On Wed, Jun 10, 2020 at 4:33 PM David R Newman via Eprints-tech <eprints-tech@ecs.soton.ac.uk> wrote:
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-techHi 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?
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@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: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
--
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@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@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@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. "
- References:
- [EP-tech] Cannot add new phrase in Phrase Editor
- From: ILINA SYAZWANI BINTI MUSA <ilina@um.edu.my>
- Re: [EP-tech] Cannot add new phrase in Phrase Editor
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Cannot add new phrase in Phrase Editor
- From: ILINA SYAZWANI BINTI MUSA <ilina@um.edu.my>
- Re: [EP-tech] Cannot add new phrase in Phrase Editor
- From: ILINA SYAZWANI BINTI MUSA <ilina@um.edu.my>
- Re: [EP-tech] Cannot add new phrase in Phrase Editor
- From: ILINA SYAZWANI BINTI MUSA <ilina@um.edu.my>
- [EP-tech] Cannot add new phrase in Phrase Editor
- Prev by Date: [EP-tech] Error cannot allocate memory
- Next by Date: Re: [EP-tech] Cannot add new phrase in Phrase Editor
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):