From 22370ad197c38375425d2effa7381f4f2429f6d8 Mon Sep 17 00:00:00 2001 From: qqmyers Date: Thu, 5 Jan 2023 17:01:04 -0500 Subject: [PATCH] Re-use contentTruncate in dataverse page Fix + sign in collapse Fix only truncate first description Use cset to avoid duplication (efficiency?) --- src/main/java/propertyFiles/Bundle.properties | 2 +- src/main/webapp/dataset.xhtml | 11 ++++++----- src/main/webapp/dataverse.xhtml | 14 ++++++++++++++ .../webapp/resources/js/dv_rebind_bootstrap_ui.js | 2 +- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/main/java/propertyFiles/Bundle.properties b/src/main/java/propertyFiles/Bundle.properties index 62531d32bb2..3e01ee7f7f8 100644 --- a/src/main/java/propertyFiles/Bundle.properties +++ b/src/main/java/propertyFiles/Bundle.properties @@ -73,7 +73,7 @@ delete=Delete copyClipboard=Copy to Clipboard truncateMoreBtn=Read full {0} [+] truncateMoreTip=Click to read the full {0}. -truncateLessBtn=Collapse {0} [+] +truncateLessBtn=Collapse {0} [-] truncateLessTip=Click to collapse the {0}. yes=Yes no=No diff --git a/src/main/webapp/dataset.xhtml b/src/main/webapp/dataset.xhtml index 35753374dbb..ffae0ec8ad9 100644 --- a/src/main/webapp/dataset.xhtml +++ b/src/main/webapp/dataset.xhtml @@ -1790,6 +1790,7 @@ +