Dataverse:Customização
Para as customizações, recomenda-se utilizar uma pasta dentro do sistema WEB
Criando a pasta para customização
mkdir /var/www/dataverse chown dataverse /var/www/dataverse
Acessando a pasta de customização
cd /var/www/dataverse
Criando a pasta para HomePage Customiza
export DATAVERSE_CUSTOM=/var/www/dataverse
Índice
Customização da Página Inicial
curl -X PUT -d '/var/www/dataverse/branding/custom-homepage.html' http://localhost:8080/api/admin/settings/:HomePageCustomizationFile
Para trabalhar com imagens, é necessário gravar no servidor a lista de figuras e indicar no HTML.
Exemplo:
https://cedapdados.ufrgs.br/logos/bt_pesquisar.png
A imagem está localizada em:
/usr/local/payara5/glassfish/domains/domain1/docroot/logos/bt_pesquisar.png
Customização da Folha de Estilo (Stylesheet - CSS)
Download this sample: custom-stylesheet.css and place it at /var/www/dataverse/branding/custom-stylesheet.css.
Once you have the location of your custom CSS file, run this curl command to add it to your settings:
curl -X PUT -d '/var/www/dataverse/branding/custom-stylesheet.css' http://localhost:8080/api/admin/settings/:StyleCustomizationFile
The Dataverse Software allows you to replace the default Dataverse Project icon and name branding in the navbar with your own custom logo. Note that this logo is separate from the root dataverse theme logo.
The custom logo image file is expected to be small enough to fit comfortably in the navbar, no more than 50 pixels in height and 160 pixels in width. Create a navbar directory in your Payara logos directory and place your custom logo there. By default, your logo image file will be located at /usr/local/payara5/glassfish/domains/domain1/docroot/logos/navbar/logo.png.
Once you have the location of your custom logo image file, run this curl command to add it to your settings:
Crie a pasta para guardar as imagens
mkdir /usr/local/payara5/glassfish/domains/domain1/docroot/logos/ mkdir /usr/local/payara5/glassfish/domains/domain1/docroot/logos/navbar/
Copie a imagem para
cp logo.png /usr/local/payara5/glassfish/domains/domain1/docroot/logos/navbar/logo.png
Depois ative o logo
curl -X PUT -d '/logos/navbar/logo.png' http://localhost:8080/api/admin/settings/:LogoCustomizationFile
Customizar o Cabeçalho
Criar uma pasta
mkdir /data/dataverse/branding cd /data/dataverse/branding
Pode-se baixar a página de teste ou customizar
wget https://guides.dataverse.org/en/5.5/_downloads/4e2c4e359b641142d3b5d34f979248b0/custom-header.html
curl -X PUT -d '/data/dataverse/branding/custom-header.html' http://localhost:8080/api/admin/settings/:HeaderCustomizationFile
Remove o nome do Dataverse após o menu
curl -X PUT -d 'true' http://localhost:8080/api/admin/settings/:DisableRootDataverseTheme
Veja [[1]]
Web Analytics Code (Google Analytics)
Veja [[2]]
Liberar ou bloquar novos cadastros (SignUp)
Desativa:
curl -X PUT -d 'false' http://localhost:8080/api/admin/settings/:AllowSignUp
Ativa:
curl -X PUT -d 'true' http://localhost:8080/api/admin/settings/:AllowSignUp
Instalando o pacote de idiomas
veja: Dataverse:Language
TERMO DE USO
== Termo de usu (WEB) =- There are no Terms of Use for this Dataverse installation.
pico /var/www/html/dataverse/terms/term.html
curl -X PUT -d@/var/www/html/dataverse/terms/term.html http://localhost:8080/api/admin/settings/:ApplicationTermsOfUse
Termo de uso (API)
Alterar o link do sobre
- NavbarAboutUrl
Defina NavbarAboutUrl como um URL completo que será usado para o link "Sobre" na barra de navegação.
Nota: O link “Sobre” não aparecerá na barra de navegação até que esta opção esteja configurada.
curl -X PUT -d http://dataverse.example.edu http://localhost:8080/api/admin/settings/:NavbarAboutUrl
https://guides.dataverse.org/en/latest/installation/config.html?highlight=navbarabouturl