Front Page Warning

From EPrints Documentation
Revision as of 11:58, 21 January 2022 by Drn@ecs.soton.ac.uk (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

When EPrints is initially installed you will see a front page warning like the following:

Welcome to YOUR REPOSITORY NAME. Start customising this repository.

Edit the file with a text editor (e.g. Vim):

EPRINTS_PATH/eprints3/archives/REPO_ID/cfg/lang/en/static/index.xpage

If this does not exist copy the file from the location below to the location above:

EPRINTS_PATH/flavours/pub_lib/cfg/lang/en/static/index.xpage

Then you need to delete the whole block that for the div with class ep_msg_message. This should look something like:

<div class="ep_msg_message">
  <div class="ep_msg_message_content">
    <div class="ep_msg_message_icon" style="width: 32px;">
      <img alt="Message" src="/style/images/message.png">
    </div>
    <div class="ep_msg_message_text">Welcome to Test Repository. <a rel="external" href="https://wiki.eprints.org/w/New_Repository" target="_blank">Start customising this repository</a>.</div>
  </div>
</div>

Alternatively, just change the text in the ep_msg_message_text for some other informational text you want to provide to those visiting your repository.

The page may automatically update, when you refresh the page in your web browser, if not you should run generate_static with the following command, replacing EPRINTS_PATH and REPO_ID as appropriate.

EPRINTS_PATH/bin/generate_static REPO_ID

To carry on configuring your ne repository see the Getting Started guide.