EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #08199


< 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


Did you check the filesystem permissions? Is zz_webcfg.xml writable by the user which under eprints run?

Il 16/06/20 03:19, ILINA SYAZWANI BINTI MUSA via Eprints-tech ha scritto:
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"

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@ecs.soton.ac.uk <mailto: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="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=qYSlQuiCF1b6L%2B%2Byqrt9euxzgeC080GXXsPSJONbN8w%3D&amp;reserved=0
    <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=qYSlQuiCF1b6L%2B%2Byqrt9euxzgeC080GXXsPSJONbN8w%3D&amp;reserved=0>"
    xmlns:epp="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fphrase&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=82bBXQLKMlZjPy6XaTXSs8uQ5GQB1TYDiIurBgeJ9nk%3D&amp;reserved=0
    <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fphrase&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=82bBXQLKMlZjPy6XaTXSs8uQ5GQB1TYDiIurBgeJ9nk%3D&amp;reserved=0>"
    xmlns:epc="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fcontrol&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=94XTX1x%2F0krg9rAiPTthrGyR5Xf1olDprmd5shNWbVQ%3D&amp;reserved=0
    <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Feprints.org%2Fep3%2Fcontrol&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=94XTX1x%2F0krg9rAiPTthrGyR5Xf1olDprmd5shNWbVQ%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@ecs.soton.ac.uk <mailto: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 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@ecs.soton.ac.uk
        <mailto:eprints-tech@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@um.edu.my <mailto: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:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=t4iU5CTjNybKUIjzXBBTjvfGp%2Ft%2BEJb%2FB2vBdtbZa%2BI%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=t4iU5CTjNybKUIjzXBBTjvfGp%2Ft%2BEJb%2FB2vBdtbZa%2BI%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%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=I82ZgG4EkITqIOWP4oSctOcphdWT97fCgfJnXXQ%2Fivc%3D&amp;reserved=0  <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=I82ZgG4EkITqIOWP4oSctOcphdWT97fCgfJnXXQ%2Fivc%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%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=uGepIDwiXQdoGqQ3xmpvC1%2B04G895yK4RMvE8sbZwqk%3D&amp;reserved=0>
            	Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ii3nCw8tIjIZqZ3Fh6rO1zL98YB%2FbLu3Qv0X7cxoRjU%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%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=uGepIDwiXQdoGqQ3xmpvC1%2B04G895yK4RMvE8sbZwqk%3D&amp;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&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=t4iU5CTjNybKUIjzXBBTjvfGp%2Ft%2BEJb%2FB2vBdtbZa%2BI%3D&amp;reserved=0
            <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=t4iU5CTjNybKUIjzXBBTjvfGp%2Ft%2BEJb%2FB2vBdtbZa%2BI%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%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=I82ZgG4EkITqIOWP4oSctOcphdWT97fCgfJnXXQ%2Fivc%3D&amp;reserved=0
            <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=I82ZgG4EkITqIOWP4oSctOcphdWT97fCgfJnXXQ%2Fivc%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@um.edu.my <mailto: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 <mailto: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 <mailto: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: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=t4iU5CTjNybKUIjzXBBTjvfGp%2Ft%2BEJb%2FB2vBdtbZa%2BI%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%7Ceprints-tech%40ecs.soton.ac.uk%7C008944ab5893448d8ca908d811e614f7%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=I82ZgG4EkITqIOWP4oSctOcphdWT97fCgfJnXXQ%2Fivc%3D&amp;reserved=0