Difference between revisions of "DSpace/C2/Customization-of-DSpace-Home-page-on-Ubuntu-Linux-OS/English"
(Created page with "'''Script: Customization of DSpace Home Page''' '''Author : Pankaj Patil''' '''Keywords: DSpace Customization, Home page customization, Dspace Logo, DSpace Banner, DSpace...") |
|||
Line 1: | Line 1: | ||
'''Script: Customization of DSpace Home Page''' | '''Script: Customization of DSpace Home Page''' | ||
− | |||
'''Author : Pankaj Patil''' | '''Author : Pankaj Patil''' | ||
− | |||
'''Keywords: DSpace Customization, Home page customization, Dspace Logo, DSpace Banner, DSpace news''' | '''Keywords: DSpace Customization, Home page customization, Dspace Logo, DSpace Banner, DSpace news''' | ||
− | + | {| border ="1" | |
− | + | |- | |
− | {| | + | |
− | |- | + | |
| align=center| '''Visual Cue''' | | align=center| '''Visual Cue''' | ||
| align=center| '''Narration''' | | align=center| '''Narration''' | ||
− | |- | + | |- |
|| Slide: Title | || Slide: Title | ||
|| Welcome to this spoken tutorial on '''Customization of''' '''DSpace home page.''' | || Welcome to this spoken tutorial on '''Customization of''' '''DSpace home page.''' | ||
− | |- | + | |- |
|| Slide: Learning Objectives | || Slide: Learning Objectives | ||
− | || In this tutorial, we will learn to * | + | || In this tutorial, we will learn to |
− | * | + | * Change '''DSpace''' '''logos''' |
− | * | + | * Modify the '''DSpace''' '''banner''' and |
+ | * Update the '''News''' sections | ||
− | + | |- | |
− | |- | + | |
|| Slide: System requirements | || Slide: System requirements | ||
− | || This tutorial is recorded using* | + | || This tutorial is recorded using |
− | * | + | * '''Ubuntu Linux OS 18.04''' |
− | * | + | * '''DSpace version 6.3''' |
− | * | + | * '''gedit''' '''text editor '''and |
− | + | * '''Firefox web browser''' | |
− | + | ||
− | + | ||
− | + | ||
However you may use any other '''text editor''' or '''browser''' of your choice. | However you may use any other '''text editor''' or '''browser''' of your choice. | ||
− | |- | + | |- |
|| Slide: Pre-requisites | || Slide: Pre-requisites | ||
− | || To practice this tutorial, you should have* | + | || To practice this tutorial, you should have |
− | * | + | * Installed '''DSpace version 6.3''' on your system |
− | * | + | * '''Tomcat''' service running |
− | * | + | * '''Administrator''' authority in '''DSpace '''and |
− | + | * A working internet connection | |
− | |- | + | |- |
|| Slide: Pre-requisites | || Slide: Pre-requisites | ||
− | || Pre-requisites:* | + | || Pre-requisites: |
− | * | + | * You should be familiar with basic '''Linux''' commands and '''HTML tags''' |
+ | * If not then please go through the prerequisite tutorials on this website. | ||
− | + | |- | |
− | |- | + | |
|| Slide: Code Files | || Slide: Code Files | ||
|| The '''files''' and '''commands''' used in this tutorial are available in the '''Code Files '''link on this tutorial page. | || The '''files''' and '''commands''' used in this tutorial are available in the '''Code Files '''link on this tutorial page. | ||
− | |||
Please download and extract the files before practicing. | Please download and extract the files before practicing. | ||
− | |- | + | |- |
|| Slide : '''DSpace''' Customization | || Slide : '''DSpace''' Customization | ||
− | || * | + | || |
− | * | + | * '''DSpace''' is a highly customizable '''software application'''. |
+ | * We can customize the '''DSpace user''' interface and its behaviour as per our preference. | ||
− | + | |- | |
− | |- | + | |
|| Slide : '''DSpace''' UI Customization | || Slide : '''DSpace''' UI Customization | ||
− | || The '''user''' interface of '''DSpace''' can be modified for* | + | || The '''user''' interface of '''DSpace''' can be modified for |
− | * | + | * Branding of a '''repository''' |
− | * | + | * Communicate vision, mission of the organization |
− | * | + | * Enhance aesthetics and usability |
− | + | * Present tool tip or help to use | |
− | + | ||
− | + | ||
− | + | ||
Now, let us understand the different sections of the '''DSpace''' '''home page.''' | Now, let us understand the different sections of the '''DSpace''' '''home page.''' | ||
− | |- | + | |- |
|| Open Web Browser | || Open Web Browser | ||
− | |||
Address Bar >> '''localhost:8080''' | Address Bar >> '''localhost:8080''' | ||
− | |||
− | |||
|| Open a '''web browser'''. | || Open a '''web browser'''. | ||
− | |||
In the '''address bar''', type '''localhost:8080''' and press '''Enter'''. | In the '''address bar''', type '''localhost:8080''' and press '''Enter'''. | ||
− | |||
'''DSpace''' interface opens. | '''DSpace''' interface opens. | ||
− | |- | + | |- |
|| Point to different portions in''' DSpace home page''' | || Point to different portions in''' DSpace home page''' | ||
|| We have a '''Navigation bar logo''' located at the top-left corner. | || We have a '''Navigation bar logo''' located at the top-left corner. | ||
− | |||
Below that we have the '''Banner''' section. | Below that we have the '''Banner''' section. | ||
− | |||
The''' DSpace logo''' is located next to the '''banner'''. | The''' DSpace logo''' is located next to the '''banner'''. | ||
− | |- | + | |- |
|| Point to different portions in''' DSpace home page''' | || Point to different portions in''' DSpace home page''' | ||
|| Below the '''banner''' section, we have a green color bar called '''breadcrumb bar'''. | || Below the '''banner''' section, we have a green color bar called '''breadcrumb bar'''. | ||
− | |||
Below the '''breadcrumb bar, '''we have''' Top News '''and''' sidebar news '''sections. | Below the '''breadcrumb bar, '''we have''' Top News '''and''' sidebar news '''sections. | ||
− | |- | + | |- |
|| Slide: '''DSpace Navbar logo''' | || Slide: '''DSpace Navbar logo''' | ||
− | |||
Name: '''dspace-logo-only.png''' | Name: '''dspace-logo-only.png''' | ||
− | |||
Location: '''/home/dspace/dspace-6.3-src-release/dspace-jspui/src/main/webapp/image'''. | Location: '''/home/dspace/dspace-6.3-src-release/dspace-jspui/src/main/webapp/image'''. | ||
− | |||
Dimensions: '''25 x 25 pixels'''. | Dimensions: '''25 x 25 pixels'''. | ||
|| Let us begin with the customization of the '''DSpace Navigation bar logo'''. | || Let us begin with the customization of the '''DSpace Navigation bar logo'''. | ||
− | |||
These are the properties for the '''logo'''. | These are the properties for the '''logo'''. | ||
− | |||
We will replace this default '''logo''' with the new one. | We will replace this default '''logo''' with the new one. | ||
− | |||
Make sure that the new '''logo''' has the same properties, if you are using your own logo. | Make sure that the new '''logo''' has the same properties, if you are using your own logo. | ||
− | |- | + | |- |
|| '''Ctrl+Alt+T keys''' | || '''Ctrl+Alt+T keys''' | ||
|| Open the '''terminal''' by pressing '''Ctrl, Alt '''and '''T''' keys together. | || Open the '''terminal''' by pressing '''Ctrl, Alt '''and '''T''' keys together. | ||
− | |- | + | |- |
|| Only Narration | || Only Narration | ||
|| Here onwards please press the '''Enter''' key after typing each '''command'''. | || Here onwards please press the '''Enter''' key after typing each '''command'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
'''cd Downloads''' | '''cd Downloads''' | ||
|| Go to the folder where you downloaded the images. | || Go to the folder where you downloaded the images. | ||
− | |||
Mine is in the '''Downloads''' folder. | Mine is in the '''Downloads''' folder. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''sudo mv dimages/* /home/dspace/''' | '''sudo mv dimages/* /home/dspace/''' | ||
|| Then we will move the '''logos''' folder to the '''DSpace user’s Home''' folder. | || Then we will move the '''logos''' folder to the '''DSpace user’s Home''' folder. | ||
− | |||
To do so, we will type the '''command''' as shown. | To do so, we will type the '''command''' as shown. | ||
− | |||
If prompted, type the '''admin password''' and press '''Enter.''' | If prompted, type the '''admin password''' and press '''Enter.''' | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''sudo su - dspace''' | '''sudo su - dspace''' | ||
|| Now, login as '''dspace user''' by typing '''sudo su - dspace'''. | || Now, login as '''dspace user''' by typing '''sudo su - dspace'''. | ||
− | |||
If prompted, type the '''admin password''' and press '''Enter'''. | If prompted, type the '''admin password''' and press '''Enter'''. | ||
− | |- | + | |- |
|| Slide : '''DSpace''' source code | || Slide : '''DSpace''' source code | ||
|| The '''source code''' for '''DSpace''' is located in the '''dspace-6.3-src-release '''directory. | || The '''source code''' for '''DSpace''' is located in the '''dspace-6.3-src-release '''directory. | ||
− | |||
If we wish to customize '''DSpace''', then we have to make changes in this directory. | If we wish to customize '''DSpace''', then we have to make changes in this directory. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''cd dspace-6.3-src-release/dspace-jspui/src/main/webapp/image''' | '''cd dspace-6.3-src-release/dspace-jspui/src/main/webapp/image''' | ||
|| We will first change the current '''working directory''' to the '''DSpace Image '''directory. | || We will first change the current '''working directory''' to the '''DSpace Image '''directory. | ||
− | |||
So, on the '''terminal''', type the '''command''' shown here. | So, on the '''terminal''', type the '''command''' shown here. | ||
− | + | |- | |
− | + | ||
− | |- | + | |
|| [Terminal] Type: | || [Terminal] Type: | ||
'''sudo mv dspace-logo-only.png dspace-logo-only-old.png''' | '''sudo mv dspace-logo-only.png dspace-logo-only-old.png''' | ||
|| Let us rename the default '''DSpace navigation bar logo '''for''' '''backup purposes. | || Let us rename the default '''DSpace navigation bar logo '''for''' '''backup purposes. | ||
− | |||
To do so, we will type the '''command''' as shown here. | To do so, we will type the '''command''' as shown here. | ||
− | |||
If prompted, type the '''dspace user password''' and press '''Enter'''. | If prompted, type the '''dspace user password''' and press '''Enter'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''cp $HOME/dspace-logo-only.png .''' | '''cp $HOME/dspace-logo-only.png .''' | ||
|| My new '''logo '''is in the '''Home''' directory of '''dspace user''' on my machine. | || My new '''logo '''is in the '''Home''' directory of '''dspace user''' on my machine. | ||
− | |||
Let us copy and paste that inside the '''DSpace''' '''image''' directory. | Let us copy and paste that inside the '''DSpace''' '''image''' directory. | ||
− | |||
To do so, I will type the '''command''' as shown here. | To do so, I will type the '''command''' as shown here. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''$HOME/Rebuild-DSpace''' | '''$HOME/Rebuild-DSpace''' | ||
− | |||
− | |||
|| Next we have to '''rebuild DSpace''' to update these changes. | || Next we have to '''rebuild DSpace''' to update these changes. | ||
− | |||
To do so, type the '''command''' as shown. | To do so, type the '''command''' as shown. | ||
− | + | '''Rebuild''' process will take some time depending upon your internet speed. | |
− | + | |- | |
− | |- | + | |
|| [Terminal] Highlight '''BUILD SUCCESSFUL''' message | || [Terminal] Highlight '''BUILD SUCCESSFUL''' message | ||
− | || | + | || On successful completion, '''BUILD SUCCESSFUL message '''will be displayed. |
− | |- | + | |- |
|| Refresh''' DSpace Home page''' | || Refresh''' DSpace Home page''' | ||
|| Now, switch to the '''browser''' and refresh the page. | || Now, switch to the '''browser''' and refresh the page. | ||
− | |||
Observe the change - the old '''Navigation bar''' '''logo''' is replaced with the new one. | Observe the change - the old '''Navigation bar''' '''logo''' is replaced with the new one. | ||
− | |- | + | |- |
|| Only narration | || Only narration | ||
|| In case, if you can’t see the updated '''logo''', kindly clear the '''cache''' and refresh the page. | || In case, if you can’t see the updated '''logo''', kindly clear the '''cache''' and refresh the page. | ||
− | |- | + | |- |
|| '''Slide''' : DSpace logo | || '''Slide''' : DSpace logo | ||
− | |||
Name: '''logo.gif''' | Name: '''logo.gif''' | ||
Line 237: | Line 189: | ||
Dimensions: '''165 x 132 pixels'''. | Dimensions: '''165 x 132 pixels'''. | ||
|| Next let us try to add our '''logo''' instead of the '''DSpace logo''' next to the '''banner''' section. | || Next let us try to add our '''logo''' instead of the '''DSpace logo''' next to the '''banner''' section. | ||
− | |||
These are the properties of the '''logo'''. | These are the properties of the '''logo'''. | ||
− | |||
We will replace this default '''logo''' with our own '''logo'''. | We will replace this default '''logo''' with our own '''logo'''. | ||
− | |||
Make sure that the new '''logo''' has the same properties, if you are using your own '''logo'''. | Make sure that the new '''logo''' has the same properties, if you are using your own '''logo'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
'''sudo mv logo.gif logo-old.gif''' | '''sudo mv logo.gif logo-old.gif''' | ||
|| Let us rename the existing '''logo''' for backup purposes. | || Let us rename the existing '''logo''' for backup purposes. | ||
− | |||
To do so, type the '''command''' as shown in the '''terminal'''. | To do so, type the '''command''' as shown in the '''terminal'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''cp $HOME/logo.gif .''' | '''cp $HOME/logo.gif .''' | ||
|| Copy the new '''logo''' from '''Home''' directory of '''dspace''' user to '''DSpace''' '''Image''' directory. | || Copy the new '''logo''' from '''Home''' directory of '''dspace''' user to '''DSpace''' '''Image''' directory. | ||
− | |||
To do so, type the '''command''' as shown here. | To do so, type the '''command''' as shown here. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''$HOME/Rebuild-DSpace''' | '''$HOME/Rebuild-DSpace''' | ||
|| Now, '''rebuild DSpace''' to update the changes. | || Now, '''rebuild DSpace''' to update the changes. | ||
− | + | The '''build''' is successful as indicated by the success message. | |
− | + | |- | |
− | |- | + | |
|| Refresh''' DSpace Home page''' | || Refresh''' DSpace Home page''' | ||
|| Now, switch to the '''browser''' and refresh the page. | || Now, switch to the '''browser''' and refresh the page. | ||
− | |||
Observe the change. | Observe the change. | ||
− | |||
The '''DSpace logo''' next to the '''banner''' section is replaced with the new one. | The '''DSpace logo''' next to the '''banner''' section is replaced with the new one. | ||
− | |- | + | |- |
|| Point to''' DSpace banner ''' | || Point to''' DSpace banner ''' | ||
|| The''' DSpace banner''' is used for branding of repositories. | || The''' DSpace banner''' is used for branding of repositories. | ||
− | |||
Let us proceed to modify the '''banner''' content now. | Let us proceed to modify the '''banner''' content now. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''sudo gedit /home/dspace/dspace-6.3-src-release/dspace-api/src/main/resources/Messages.properties''' | '''sudo gedit /home/dspace/dspace-6.3-src-release/dspace-api/src/main/resources/Messages.properties''' | ||
|| '''Messages.properties '''is a file, which contains '''user interface''' text of '''DSpace'''. | || '''Messages.properties '''is a file, which contains '''user interface''' text of '''DSpace'''. | ||
− | |||
Let us open this file. | Let us open this file. | ||
− | |||
To do so, type the '''command''' as shown. | To do so, type the '''command''' as shown. | ||
− | |- | + | |- |
− | || | + | || Show '''Messages.properties '''file |
|| '''Messages.properties '''file contains '''Key Value''' pairs. | || '''Messages.properties '''file contains '''Key Value''' pairs. | ||
− | |||
'''Keys''' are referenced from '''jsp''' files and the corresponding '''value''' is rendered in '''UI'''. | '''Keys''' are referenced from '''jsp''' files and the corresponding '''value''' is rendered in '''UI'''. | ||
− | |- | + | |- |
|| Banner Heading Text | || Banner Heading Text | ||
− | |||
'''jsp.layout.header-default.brand.heading = IITB Repository''' | '''jsp.layout.header-default.brand.heading = IITB Repository''' | ||
Line 313: | Line 249: | ||
'''jsp.layout.header-default.brand.heading ''' | '''jsp.layout.header-default.brand.heading ''' | ||
− | |||
Change its default '''value''' to '''IITB Repository'''. | Change its default '''value''' to '''IITB Repository'''. | ||
− | |||
Basic '''HTML tags''' such as '''heading''' can be used to write '''value'''. | Basic '''HTML tags''' such as '''heading''' can be used to write '''value'''. | ||
− | |- | + | |- |
|| '''jsp.layout.header-default.brand.heading = <b> IITB Repository </b>''' | || '''jsp.layout.header-default.brand.heading = <b> IITB Repository </b>''' | ||
|| If you wish to display the text in a stylish way, we can use those '''html tags''' also. | || If you wish to display the text in a stylish way, we can use those '''html tags''' also. | ||
− | |||
For example, I can type the '''value''' as shown. | For example, I can type the '''value''' as shown. | ||
− | |- | + | |- |
|| '''<h3> IITB Digital Repository is the collection of digital assets </h3>''' | || '''<h3> IITB Digital Repository is the collection of digital assets </h3>''' | ||
− | |||
− | |||
|| Now locate the '''key''' '''jsp.layout.header-default.brand.description ''' | || Now locate the '''key''' '''jsp.layout.header-default.brand.description ''' | ||
− | |||
Change its default value as shown. | Change its default value as shown. | ||
− | |- | + | |- |
|| Save and close | || Save and close | ||
|| Save and close the file. | || Save and close the file. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''$HOME/Rebuild-DSpace''' | '''$HOME/Rebuild-DSpace''' | ||
|| Now, '''rebuild''' '''DSpace''' to update the changes. | || Now, '''rebuild''' '''DSpace''' to update the changes. | ||
− | + | '''Build '''is successful as indicated by the on-screen message. | |
− | + | |- | |
− | |- | + | |
|| Refresh''' DSpace Home page''' | || Refresh''' DSpace Home page''' | ||
|| Now, switch to the '''browser''' and refresh the page. | || Now, switch to the '''browser''' and refresh the page. | ||
− | |||
Observe the change. | Observe the change. | ||
− | |||
The '''banner section''' content is updated. | The '''banner section''' content is updated. | ||
− | |- | + | |- |
− | || | + | || Point to '''Top and Sidebar news on Home Page''' |
− | || | + | || '''Top news''' and '''Sidebar news''' are used to display updates and news about the '''Repository'''. |
− | + | ||
− | + | We will edit these in the front end itself with the help of an '''administrator'''. | |
− | |- | + | |- |
|| Log in to '''DSpace''' | || Log in to '''DSpace''' | ||
+ | '''Mail address: dspace.u1@gmail.com''' | ||
− | + | '''Password: u1pass''' | |
+ | || Click on the '''Sign on to '''button at the top right corner. | ||
− | + | From the drop-down, select '''My DSpace.''' | |
− | + | ||
+ | Log into '''DSpace''' with your '''administrator’s email address '''and''' password'''. | ||
− | + | For this demonstration, I will log in with the '''administrator’s email id dspace.u1@gmail.com. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | For this demonstration, I will log in with the '''administrator’s email id | + | |
− | + | ||
'''My DSpace''' page appears on the screen. | '''My DSpace''' page appears on the screen. | ||
− | |- | + | |- |
− | || | + | || Select''' Administer''' |
− | || | + | || Click on the down arrow at the top right corner next to the '''admin’s mail id.''' |
− | + | Then select '''Administer'''. | |
− | + | |- | |
− | |- | + | |
|| '''General Settings > Edit News''' | || '''General Settings > Edit News''' | ||
|| We will be redirected to the '''admin''' interface. | || We will be redirected to the '''admin''' interface. | ||
− | |||
On the top '''navigation bar''', click on '''General Settings''' menu | On the top '''navigation bar''', click on '''General Settings''' menu | ||
− | |||
Then select '''Edit News '''from drop-down. | Then select '''Edit News '''from drop-down. | ||
− | |- | + | |- |
− | || | + | || Select '''Top News''' |
|| Select '''Top News''' in the '''News Editor''' section to edit '''Top News.''' | || Select '''Top News''' in the '''News Editor''' section to edit '''Top News.''' | ||
− | |- | + | |- |
|| Click on '''Edit '''button | || Click on '''Edit '''button | ||
|| Click on the '''Edit '''button. | || Click on the '''Edit '''button. | ||
− | |- | + | |- |
− | || | + | || Point to''' News Editor''' |
|| '''News Editor''' page opens for the '''Top News''' with default '''DSpace Top News.''' | || '''News Editor''' page opens for the '''Top News''' with default '''DSpace Top News.''' | ||
− | |||
You can use '''HTML''' '''tags''' in the '''News Editor.''' | You can use '''HTML''' '''tags''' in the '''News Editor.''' | ||
− | |- | + | |- |
|| '''<p>Welcome to IITB digital repository!</p>''' | || '''<p>Welcome to IITB digital repository!</p>''' | ||
− | || | + | || I am updating the '''Top News''' as shown. |
− | |- | + | |- |
− | || | + | || Click on '''Save '''button |
− | || | + | || Click on the '''Save''' button. |
− | |- | + | |- |
− | || | + | || Select''' Sidebar News '''and click on''' Edit '''button |
− | + | Update the '''Sidebar News''' | |
− | + | ||
'''<p>Explore IITB digital repository and Enhance learning.</p>''' | '''<p>Explore IITB digital repository and Enhance learning.</p>''' | ||
|| Likewise, I will edit the '''sidebar news'''. | || Likewise, I will edit the '''sidebar news'''. | ||
− | |- | + | |- |
− | || | + | || Save '''Sidebar News''' |
− | || | + | || Click on the '''Save''' button. |
− | |- | + | |- |
− | || | + | || Click on''' Home Tab''' |
|| In the top '''navigation bar''', click on the menu '''Home.''' | || In the top '''navigation bar''', click on the menu '''Home.''' | ||
− | |||
The''' Top News '''and''' Sidebar News '''section for the '''DSpace home page''' is updated. | The''' Top News '''and''' Sidebar News '''section for the '''DSpace home page''' is updated. | ||
− | |- | + | |- |
|| Only narration | || Only narration | ||
|| LIkewise, we can customise our '''DSpace home page''' based on our needs. | || LIkewise, we can customise our '''DSpace home page''' based on our needs. | ||
− | |- | + | |- |
|| | || | ||
|| '''Logout''' from '''DSpace''' interface. | || '''Logout''' from '''DSpace''' interface. | ||
− | |- | + | |- |
|| [Terminal] type: | || [Terminal] type: | ||
− | |||
Logout [enter] | Logout [enter] | ||
|| Switch to the '''terminal.''' | || Switch to the '''terminal.''' | ||
− | |||
Type '''logout''' to exit from '''DSpace user login'''. | Type '''logout''' to exit from '''DSpace user login'''. | ||
− | |- | + | |- |
|| | || | ||
|| With this we have come to the end of this tutorial. | || With this we have come to the end of this tutorial. | ||
− | |||
Let us summarize. | Let us summarize. | ||
− | |- | + | |- |
− | || | + | || Slide: Summary |
+ | || In this tutorial we learnt to : | ||
+ | * Change '''DSpace logos''' | ||
+ | * Modify '''DSpace banner''' and | ||
+ | * Update news sections. | ||
− | + | |- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |- | + | |
|| Slide: Assignment | || Slide: Assignment | ||
− | || As an assignment* | + | || As an assignment |
− | * | + | * Change '''Navbar logo '''and '''DSpace logo''' |
+ | * Modify the '''DSpace banner''' content | ||
− | + | |- | |
− | |- | + | |
|| Slide : About Spoken Tutorial project | || Slide : About Spoken Tutorial project | ||
|| The video at the following link summarises the '''Spoken Tutorial project.''' | || The video at the following link summarises the '''Spoken Tutorial project.''' | ||
− | |||
Please download and watch it. | Please download and watch it. | ||
− | |- | + | |- |
|| Slide : Spoken Tutorial workshops | || Slide : Spoken Tutorial workshops | ||
− | |||
− | |||
|| The '''Spoken Tutorial Project''' team conducts workshops and gives certificates. | || The '''Spoken Tutorial Project''' team conducts workshops and gives certificates. | ||
− | |||
For more details, please write to us. | For more details, please write to us. | ||
Line 485: | Line 391: | ||
|| Slide: Answers for THIS Spoken Tutorial | || Slide: Answers for THIS Spoken Tutorial | ||
|| Please post your timed queries in this Forum. | || Please post your timed queries in this Forum. | ||
− | |- | + | |- |
|| Slide: Acknowledgement -I | || Slide: Acknowledgement -I | ||
|| The''' Spoken Tutorial project''' is funded by MHRD, Government of India. | || The''' Spoken Tutorial project''' is funded by MHRD, Government of India. | ||
− | |- | + | |- |
|| Slide: Acknowledgement -II | || Slide: Acknowledgement -II | ||
− | |||
− | |||
|| '''DSpace spoken tutorial''' series is funded by the National Virtual Library of India, Ministry of Culture, Government of India. | || '''DSpace spoken tutorial''' series is funded by the National Virtual Library of India, Ministry of Culture, Government of India. | ||
− | |- | + | |- |
|| Narration only | || Narration only | ||
− | |||
− | |||
|| This script and video for this tutorial was contributed by '''Pankaj Patil''' from''' IIT Bombay.''' | || This script and video for this tutorial was contributed by '''Pankaj Patil''' from''' IIT Bombay.''' | ||
− | |||
And this is '''Nancy Varkey '''signing off. Thanks for joining. | And this is '''Nancy Varkey '''signing off. Thanks for joining. | ||
|- | |- | ||
|} | |} |
Revision as of 13:06, 1 June 2020
Script: Customization of DSpace Home Page
Author : Pankaj Patil
Keywords: DSpace Customization, Home page customization, Dspace Logo, DSpace Banner, DSpace news
Visual Cue | Narration |
Slide: Title | Welcome to this spoken tutorial on Customization of DSpace home page. |
Slide: Learning Objectives | In this tutorial, we will learn to
|
Slide: System requirements | This tutorial is recorded using
However you may use any other text editor or browser of your choice. |
Slide: Pre-requisites | To practice this tutorial, you should have
|
Slide: Pre-requisites | Pre-requisites:
|
Slide: Code Files | The files and commands used in this tutorial are available in the Code Files link on this tutorial page.
Please download and extract the files before practicing. |
Slide : DSpace Customization |
|
Slide : DSpace UI Customization | The user interface of DSpace can be modified for
Now, let us understand the different sections of the DSpace home page. |
Open Web Browser
Address Bar >> localhost:8080 |
Open a web browser.
In the address bar, type localhost:8080 and press Enter. DSpace interface opens. |
Point to different portions in DSpace home page | We have a Navigation bar logo located at the top-left corner.
Below that we have the Banner section. The DSpace logo is located next to the banner. |
Point to different portions in DSpace home page | Below the banner section, we have a green color bar called breadcrumb bar.
Below the breadcrumb bar, we have Top News and sidebar news sections. |
Slide: DSpace Navbar logo
Name: dspace-logo-only.png Location: /home/dspace/dspace-6.3-src-release/dspace-jspui/src/main/webapp/image. Dimensions: 25 x 25 pixels. |
Let us begin with the customization of the DSpace Navigation bar logo.
These are the properties for the logo. We will replace this default logo with the new one. Make sure that the new logo has the same properties, if you are using your own logo. |
Ctrl+Alt+T keys | Open the terminal by pressing Ctrl, Alt and T keys together. |
Only Narration | Here onwards please press the Enter key after typing each command. |
[Terminal] Type:
cd Downloads |
Go to the folder where you downloaded the images.
Mine is in the Downloads folder. |
[Terminal] Type:
sudo mv dimages/* /home/dspace/ |
Then we will move the logos folder to the DSpace user’s Home folder.
To do so, we will type the command as shown. If prompted, type the admin password and press Enter. |
[Terminal] Type:
sudo su - dspace |
Now, login as dspace user by typing sudo su - dspace.
If prompted, type the admin password and press Enter. |
Slide : DSpace source code | The source code for DSpace is located in the dspace-6.3-src-release directory.
If we wish to customize DSpace, then we have to make changes in this directory. |
[Terminal] Type:
cd dspace-6.3-src-release/dspace-jspui/src/main/webapp/image |
We will first change the current working directory to the DSpace Image directory.
So, on the terminal, type the command shown here. |
[Terminal] Type:
sudo mv dspace-logo-only.png dspace-logo-only-old.png |
Let us rename the default DSpace navigation bar logo for backup purposes.
To do so, we will type the command as shown here. If prompted, type the dspace user password and press Enter. |
[Terminal] Type:
cp $HOME/dspace-logo-only.png . |
My new logo is in the Home directory of dspace user on my machine.
Let us copy and paste that inside the DSpace image directory. To do so, I will type the command as shown here. |
[Terminal] Type:
$HOME/Rebuild-DSpace |
Next we have to rebuild DSpace to update these changes.
To do so, type the command as shown. Rebuild process will take some time depending upon your internet speed. |
[Terminal] Highlight BUILD SUCCESSFUL message | On successful completion, BUILD SUCCESSFUL message will be displayed. |
Refresh DSpace Home page | Now, switch to the browser and refresh the page.
Observe the change - the old Navigation bar logo is replaced with the new one. |
Only narration | In case, if you can’t see the updated logo, kindly clear the cache and refresh the page. |
Slide : DSpace logo
Name: logo.gif Location: /home/dspace/dspace-6.3-src-release/dspace-jspui/src/main/webapp/image Dimensions: 165 x 132 pixels. |
Next let us try to add our logo instead of the DSpace logo next to the banner section.
These are the properties of the logo. We will replace this default logo with our own logo. Make sure that the new logo has the same properties, if you are using your own logo. |
[Terminal] Type:
sudo mv logo.gif logo-old.gif |
Let us rename the existing logo for backup purposes.
To do so, type the command as shown in the terminal. |
[Terminal] Type:
cp $HOME/logo.gif . |
Copy the new logo from Home directory of dspace user to DSpace Image directory.
To do so, type the command as shown here. |
[Terminal] Type:
$HOME/Rebuild-DSpace |
Now, rebuild DSpace to update the changes.
The build is successful as indicated by the success message. |
Refresh DSpace Home page | Now, switch to the browser and refresh the page.
Observe the change. The DSpace logo next to the banner section is replaced with the new one. |
Point to DSpace banner | The DSpace banner is used for branding of repositories.
Let us proceed to modify the banner content now. |
[Terminal] Type:
sudo gedit /home/dspace/dspace-6.3-src-release/dspace-api/src/main/resources/Messages.properties |
Messages.properties is a file, which contains user interface text of DSpace.
Let us open this file. To do so, type the command as shown. |
Show Messages.properties file | Messages.properties file contains Key Value pairs.
Keys are referenced from jsp files and the corresponding value is rendered in UI. |
Banner Heading Text
jsp.layout.header-default.brand.heading = IITB Repository |
Scroll down and locate the key
jsp.layout.header-default.brand.heading Change its default value to IITB Repository. Basic HTML tags such as heading can be used to write value. |
jsp.layout.header-default.brand.heading = IITB Repository | If you wish to display the text in a stylish way, we can use those html tags also.
For example, I can type the value as shown. |
IITB Digital Repository is the collection of digital assets |
Now locate the key jsp.layout.header-default.brand.description
Change its default value as shown. |
Save and close | Save and close the file. |
[Terminal] Type:
$HOME/Rebuild-DSpace |
Now, rebuild DSpace to update the changes.
Build is successful as indicated by the on-screen message. |
Refresh DSpace Home page | Now, switch to the browser and refresh the page.
Observe the change. The banner section content is updated. |
Point to Top and Sidebar news on Home Page | Top news and Sidebar news are used to display updates and news about the Repository.
We will edit these in the front end itself with the help of an administrator. |
Log in to DSpace
Mail address: dspace.u1@gmail.com Password: u1pass |
Click on the Sign on to button at the top right corner.
From the drop-down, select My DSpace. Log into DSpace with your administrator’s email address and password. For this demonstration, I will log in with the administrator’s email id dspace.u1@gmail.com. My DSpace page appears on the screen. |
Select Administer | Click on the down arrow at the top right corner next to the admin’s mail id.
Then select Administer. |
General Settings > Edit News | We will be redirected to the admin interface.
On the top navigation bar, click on General Settings menu Then select Edit News from drop-down. |
Select Top News | Select Top News in the News Editor section to edit Top News. |
Click on Edit button | Click on the Edit button. |
Point to News Editor | News Editor page opens for the Top News with default DSpace Top News.
You can use HTML tags in the News Editor. |
Welcome to IITB digital repository! |
I am updating the Top News as shown. |
Click on Save button | Click on the Save button. |
Select Sidebar News and click on Edit button
Update the Sidebar News Explore IITB digital repository and Enhance learning. |
Likewise, I will edit the sidebar news. |
Save Sidebar News | Click on the Save button. |
Click on Home Tab | In the top navigation bar, click on the menu Home.
The Top News and Sidebar News section for the DSpace home page is updated. |
Only narration | LIkewise, we can customise our DSpace home page based on our needs. |
Logout from DSpace interface. | |
[Terminal] type:
Logout [enter] |
Switch to the terminal.
Type logout to exit from DSpace user login. |
With this we have come to the end of this tutorial.
Let us summarize. | |
Slide: Summary | In this tutorial we learnt to :
|
Slide: Assignment | As an assignment
|
Slide : About Spoken Tutorial project | The video at the following link summarises the Spoken Tutorial project.
Please download and watch it. |
Slide : Spoken Tutorial workshops | The Spoken Tutorial Project team conducts workshops and gives certificates.
For more details, please write to us. |
Slide: Answers for THIS Spoken Tutorial | Please post your timed queries in this Forum. |
Slide: Acknowledgement -I | The Spoken Tutorial project is funded by MHRD, Government of India. |
Slide: Acknowledgement -II | DSpace spoken tutorial series is funded by the National Virtual Library of India, Ministry of Culture, Government of India. |
Narration only | This script and video for this tutorial was contributed by Pankaj Patil from IIT Bombay.
And this is Nancy Varkey signing off. Thanks for joining. |