From 05657a971e06d577e927cce683f6852741a950a8 Mon Sep 17 00:00:00 2001
From: Daviti Gogshelidze <daviti1@mail.com>
Date: Wed, 5 Jun 2019 11:48:59 +0200
Subject: [PATCH] changes for Download Publications

---
 .../radiolist/radiolist.component.ts          | 33 ++++++++++---------
 .../radiolist/radiolist.template.html         |  3 +-
 2 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/src/components/radiolist/radiolist.component.ts b/src/components/radiolist/radiolist.component.ts
index 237f3dd76..808e15d66 100644
--- a/src/components/radiolist/radiolist.component.ts
+++ b/src/components/radiolist/radiolist.component.ts
@@ -8,22 +8,22 @@ import { ZipFileDownloadService } from "src/services/zipFileDownload.service";
   styleUrls: [
     './radiolist.style.css'
   ],
-  styles: [
-    `
-    ul > li.selected > .textSpan:before
-    {
-      content: '\u2022';
-      width : 1em;
-      display:inline-block;
-    }
-    ul > li:not(.selected) > .textSpan:before
-    {
-      content: ' ';
-      width : 1em;
-      display:inline-block;
-    }  
-    `
-  ],
+  // styles: [
+  //   `
+  //   ul > li.selected > .textSpan:before
+  //   {
+  //     content: '\u2022';
+  //     width : 1em;
+  //     display:inline-block;
+  //   }
+  //   ul > li:not(.selected) > .textSpan:before
+  //   {
+  //     content: ' ';
+  //     width : 1em;
+  //     display:inline-block;
+  //   }
+  //   `
+  // ],
   changeDetection: ChangeDetectionStrategy.OnPush
 })
 
@@ -68,6 +68,7 @@ export class RadioList{
 
 
   downloadPublications(item) {
+    console.log(item['properties']['publications'])
     const filename = item['name']
     let publicationsText = item['name'] + ' Publications:\r\n'
       item['properties']['publications'].forEach((p, i) => {
diff --git a/src/components/radiolist/radiolist.template.html b/src/components/radiolist/radiolist.template.html
index f16e7cc4c..1dce33c86 100644
--- a/src/components/radiolist/radiolist.template.html
+++ b/src/components/radiolist/radiolist.template.html
@@ -15,8 +15,9 @@
     <span class="dropdown-item-1 textSpan"
       #DropDownText
       [innerHTML] = "listDisplay(input)"
+      [style.fontWeight] = "checkSelected(selectedItem, input)? 'bold' : ''"
       [ngStyle]="input['properties'] && input['properties']['publications'] ? {'width': 'calc(100% - 30px)', 'overflow': 'hidden'} : {}"
-      [matTooltip]="overflowText(DropDownText)? DropDownText.innerHTML: ''">
+      [matTooltip]="overflowText(DropDownText)? DropDownText.innerText: ''">
     </span>
 
     <span *ngIf="input['properties'] && input['properties']['publications']" class="infoIcon" (click)="showToast(input);$event.stopPropagation()"
-- 
GitLab