Commit cd1dc8d1 authored by Daniel Suarez Souto's avatar Daniel Suarez Souto
Browse files

Minimal changes

parent c5082426
......@@ -46,7 +46,7 @@ Data can be provided in one of three ways:
</style>
<link rel="import" type="css" href="google-chart.css">
<template>
<paper-material elevation="1" >
<paper-material elevation="1" style$={{getHeight()}}>
<div class="top-bar">
<iron-icon icon="{{icon}}"></iron-icon>
<span>{{options.title}}</span>
......@@ -660,6 +660,11 @@ Data can be provided in one of three ways:
that.rows = data;
filtered = true;
this._loadData();
},
getHeight: function(){
if(this.field==='schema:author'){
return "height: 325px;"
}
}
......
......@@ -376,7 +376,8 @@
},
setPDF: function(news, index) {
function loadPDF() {
var uri= "http://trivalent-resources.cluster.gsi.dit.upm.es/"+news['magazine'].toLowerCase()+"/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];
/*var uri= "http://trivalent-resources.cluster.gsi.dit.upm.es/"+news['magazine'].toLowerCase()+"/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];*/
var uri= "http://localhost:8080/magazines/"+news['magazine'].toLowerCase()+"/data/"+news['magazine'].toLowerCase()+news['number']+".pdf#page="+news['schema:pageStart'];
//console.log(uri)
$('#article'+index).off();
$('#article'+index+' li#tabArticle a').on('shown.bs.tab', function(event) {
......
......@@ -26,7 +26,7 @@
<app-location route="{{route}}"></app-location>
<elastic-client
config='{"host": "localhost:19200"}'
config='{"host": "http://sefarad-elasticsearch.cluster.gsi.dit.upm.es"}'
client="{{client}}"
cluster-status="{{myStatus}}">
</elastic-client>
......
FROM nginx
COPY dashboard /etc/nginx/sites-available/dashboard
RUN mkdir /etc/nginx/sites-enabled/
RUN ln -s /etc/nginx/sites-available/dashboard /etc/nginx/sites-enabled/dashboard
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://sefarad:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment