diff --git a/media_js_reports/export-pdf-report.js b/media_js_reports/export-pdf-report.js
index 8735fde..0120d86 100644
--- a/media_js_reports/export-pdf-report.js
+++ b/media_js_reports/export-pdf-report.js
@@ -12,8 +12,10 @@ define([
//console.log('Params:', params);
this.anexarUbic = ko.observable(false);
+ this.satMap = ko.observable(false);
this.anexarImagenes = ko.observable(false);
this.anexarPdfs = ko.observable(false);
+
const boolToStr = (bool) => bool ? "1" : "0";
self.resourceId = ko.observable(
@@ -23,7 +25,7 @@ define([
self.exportPDF = function() {
var id = self.resourceId();
if (id) {
- var url = '/export/pdf/' + id + '/' + boolToStr(self.anexarUbic()) + '/' + boolToStr(self.anexarImagenes()) + '/' + boolToStr(self.anexarPdfs()) + '/';
+ var url = '/export/pdf/' + id + '/' + boolToStr(self.anexarUbic()) + '/' + boolToStr(self.satMap()) + '/' + boolToStr(self.anexarImagenes()) + '/' + boolToStr(self.anexarPdfs()) + '/';
window.open(url, '_blank');
} else {
alert('No se encontró el ID del recurso.');
diff --git a/templates_reports/actor_pdf_report.html b/templates_reports/actor_pdf_report.html
index 53ce996..c29eec3 100644
--- a/templates_reports/actor_pdf_report.html
+++ b/templates_reports/actor_pdf_report.html
@@ -16,14 +16,15 @@
h3 { font-size: 12pt;}
h4 { font-size: 11pt;}
- .tiles-grid-grp { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: auto auto; gap: 2px;}
+ .tiles-grid-grp { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 2px;}
.tiles-grid-grp-col { grid-column: 2; grid-row: 1 / span 2; }
.tile-block { border: 1px solid var(--ceniza); border-radius: 4px; padding: 2px; margin: 2px 0; background-color: var(--claro);}
.tile-title { font-size: 11pt; font-weight: bold; color: var(--oscuro); border-bottom: 1px solid var(--ceniza); padding-bottom: 2px; margin-bottom: 5px;}
.data-row { display: flex; padding: 2px 0; border-bottom: 1px solid var(--claro);}
.data-label { font-weight: 600; letter-spacing: -0.05em; width: 40%; color: var(--oscuro);}
- .data-value { width: 40%; letter-spacing: -0.05em; word-wrap: break-word;}
+ .data-value { width: 60%; font-size:.9em; word-wrap: break-word;}
.no-data { color: var(--ceniza); font-style: italic;}
+ .tiles-grid-grp-col .tile-block img { object-fit: cover; width: 330px; max-height: 230px;}
@page {
@top-left { background: var(--resaltado); content: counter(page); height: 1cm; text-align: center; width: 1cm;}
@@ -117,7 +118,7 @@
{% with gis_vector=resource_data|val_from_key:"Ubicación simple"|val_from_key:"Coordenadas / Geometría"|val_from_key:"@value"|json_to_obj %}
{% for gis in gis_vector.features %}
- {{ gis.geometry }}
+ {{ gis.geometry|truncatewords:24 }}
{% endfor %}
{% endwith %}
@@ -131,6 +132,7 @@
Mapa de referencia
+
diff --git a/templates_reports/bim_pdf_report.html b/templates_reports/bim_pdf_report.html
index 6dd600e..210f928 100644
--- a/templates_reports/bim_pdf_report.html
+++ b/templates_reports/bim_pdf_report.html
@@ -162,7 +162,7 @@
{% with gis_vector=resource_data|val_from_key:"Ubicación BIM"|val_from_key:"Coordenadas / Geometría"|val_from_key:"@value"|json_to_obj %}
{% for gis in gis_vector.features %}
- {{ gis.geometry }}
+ {{ gis.geometry|truncatewords:24 }}
{% endfor %}
{% endwith %}
@@ -175,6 +175,7 @@
Mapa de referencia
+
diff --git a/templates_reports/bm_pdf_report.html b/templates_reports/bm_pdf_report.html
index 46a27e0..c39a160 100644
--- a/templates_reports/bm_pdf_report.html
+++ b/templates_reports/bm_pdf_report.html
@@ -152,15 +152,17 @@
Espacio:
{{ resource_data|val_from_key:"Localización"|val_from_key:"Espacio" }}
-
- Inmueble:
- {{ resource_data|val_from_key:"Localización"|val_from_key:"Inmueble" }}
-
-
- Colección:
- {{ resource_data|val_from_key:"Localización"|val_from_key:"Colección" }}
-
- {% if resource_data|val_from_key:"Localización"|has_key:"Ubicación" %}
+ {% if resource.print_ubic %}
+
+ Inmueble:
+ {{ resource_data|val_from_key:"Localización"|val_from_key:"Inmueble" }}
+
+
+ Colección:
+ {{ resource_data|val_from_key:"Localización"|val_from_key:"Colección" }}
+
+ {% endif %}
+ {% if resource_data|val_from_key:"Localización"|has_key:"Ubicación" and resource.print_ubic %}
Ambiente : {{resource_data|val_from_key:"Localización"|val_from_key:"Ubicación"|val_from_key:"Ambiente" }}
@@ -180,11 +182,11 @@
Coordenadas / Geometría:
- {% if resource_data|val_from_key:"Localización"|has_key:"Coordenadas / Geometría" %}
+ {% if resource_data|val_from_key:"Localización"|has_key:"Coordenadas / Geometría" and resource.print_ubic %}
{% with gis_vector=resource_data|val_from_key:"Localización"|val_from_key:"Coordenadas / Geometría"|val_from_key:"@value"|json_to_obj %}
{% for gis in gis_vector.features %}
- {{ gis.geometry }}
+ {{ gis.geometry|truncatewords:24 }}
{% endfor %}
{% endwith %}
@@ -197,6 +199,7 @@
Mapa de referencia
+
diff --git a/templates_reports/pi_pdf_report.html b/templates_reports/pi_pdf_report.html
index 219102e..050664c 100644
--- a/templates_reports/pi_pdf_report.html
+++ b/templates_reports/pi_pdf_report.html
@@ -126,7 +126,7 @@
{% with gis_vector=resource_data|val_from_key:"Ubicación 2"|val_from_key:"Coordenadas / Geometría"|val_from_key:"@value"|json_to_obj %}
{% for gis in gis_vector.features %}
- {{ gis.geometry }}
+ {{ gis.geometry|truncatewords:24 }}
{% endfor %}
{% endwith %}
@@ -140,6 +140,7 @@
Mapa de referencia
+
diff --git a/templates_views_report-templates/export-pdf-report.htm b/templates_views_report-templates/export-pdf-report.htm
index 9f064dc..af374f9 100644
--- a/templates_views_report-templates/export-pdf-report.htm
+++ b/templates_views_report-templates/export-pdf-report.htm
@@ -15,11 +15,15 @@
+ params: { value: satMap, config:{ label: 'Mapa satelital'}}}">
+ params: { value: anexarImagenes, config:{ label: 'Adjuntar imágenes'}}}">
+
+