From 1f366a2d26ac47ea8cb0f3d43e64c6d0e7a5b2ae Mon Sep 17 00:00:00 2001 From: Valentin Sasyan Date: Wed, 29 Oct 2025 09:59:09 +0100 Subject: [PATCH 1/2] =?UTF-8?q?[carto]=20Chemin=20affich=C3=A9=20complet?= =?UTF-8?q?=20+=20utilisation=20chemin=20fournis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/cartotheque/AfficherScans.vue | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/app/src/components/cartotheque/AfficherScans.vue b/app/src/components/cartotheque/AfficherScans.vue index 4a7038e..94d2ab9 100644 --- a/app/src/components/cartotheque/AfficherScans.vue +++ b/app/src/components/cartotheque/AfficherScans.vue @@ -34,9 +34,10 @@
{{ key }}
{{ val }}
@@ -126,10 +127,15 @@ function generateFolderPath(info) { } /** - * genère le chemin de l'image à partir des informations de la carte + * Génère le chemin de l'image à partir des informations de la carte * @param info */ function generateImagePath(info, ext='JP2') { + // Si le chemin est indiqué en paramètre, on le retourne directement + if (info.chemin) { + return info.chemin + } + // Sinon on le génère (il sera très probablement non fonctionnel...) return generateFolderPath(info) + `/${info.id_carte}.${ext}` } @@ -160,13 +166,15 @@ watch(storeSelectedScan, (newVal) => { const info = storeSelectedScan.value?.properties if (info) { imageUrl.value = getImageURL(info) + let chemin = `\\\\store\\store-PATRIMOINE${config.IIPSRV_PREFIX_CARTE}${generateImagePath(info)}` + chemin = chemin.replace(/\//g, '\\').replace(/\\/g, '\\'); essentialDetails.value = { 'Nom du scan': storeSelectedScan.value.name, 'Collection': info.collection || 'N/A', 'Sous-collection': info.sous_coll || 'N/A', 'Échelle': info.echelle || 'N/A', 'Dates': `${info.date_fin || 'N/A'} - ${info.date_pub || 'N/A'}`, - 'Chemin': generateImagePath(info), + 'Chemin': chemin, } } } @@ -436,6 +444,7 @@ function downloadxml() { /* Scan Preview Styles */ .scan-preview { margin-bottom: 20px; + width: 100%; } .scan-card { @@ -491,6 +500,17 @@ function downloadxml() { flex: 0 0 65%; color: #333; font-size: 11px; + word-wrap: break-word; + overflow-x: auto; +} + +.detail-item.Chemin { + display: block; + overflow: hidden; +} +.detail-item.Chemin>div { + display: block; + flex: none; } .action-buttons { From efda0a792764f6cec96beed5a3c459f29fb50a73 Mon Sep 17 00:00:00 2001 From: Valentin Sasyan Date: Wed, 29 Oct 2025 10:15:02 +0100 Subject: [PATCH 2/2] =?UTF-8?q?[photo]=20Chemin=20affich=C3=A9=20complet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/components/phototheque/Mission.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/app/src/components/phototheque/Mission.vue b/app/src/components/phototheque/Mission.vue index 98b15f7..b2490f5 100644 --- a/app/src/components/phototheque/Mission.vue +++ b/app/src/components/phototheque/Mission.vue @@ -95,11 +95,11 @@
DOSSIER
-
{{ getFolder() }}
+
{{ `\\\\store\\store-PATRIMOINE${getFolder().replace(/\//g, '\\')}` }}
@@ -496,6 +496,7 @@ function clickedFlyTo() { .mission-preview { margin-bottom: 20px; + width: 100%; } .mission-card { @@ -543,7 +544,7 @@ function clickedFlyTo() { .detail-label { flex: 0 0 45%; - font-weight: 500; + font-weight: bold; color: #555; font-size: 11px; } @@ -554,6 +555,15 @@ function clickedFlyTo() { font-size: 11px; } +.detail-item.dossier { + display: block; + overflow: hidden; +} +.detail-item.dossier>div { + display: block; + flex: none; +} + .action-buttons { display: flex; justify-content: space-between;