Commit f94d28b365fa0874b8c7a37c5fade1610781f1bb

Authored by kevin_fourie
1 parent 64775166

Merged in...

KTS-3817
"Document title on search result page is shown broken"
Fixed. Replaced truncate with mb_truncate. Closed <nobr> tags.

Committed by: Megan Watson
Reviewed by: Conrad Vermeulen


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.4-Release-Branch@9581 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/search2/search_results.smarty
... ... @@ -145,10 +145,10 @@ function onShowAll(showall)
145 145 <span class="contenttype {$hit->MimeIconPath}">
146 146  
147 147 {if $hit->IsDocument}
148   - &nbsp;&nbsp;<a href="{$rootUrl}/view.php?fDocumentId={$hit->Id}"><B>{$hit->Title|truncate:80}</b></a>
  148 + &nbsp;&nbsp;<a href="{$rootUrl}/view.php?fDocumentId={$hit->Id}"><B>{$hit->Title|mb_truncate:30:'...':true}</b></a>
149 149 {if $hit->Title != $hit->Filename}
150 150 &nbsp;&nbsp;
151   - <font style=" color: green "> - {i18n}Filename:{/i18n} {$hit->Filename|truncate:40}</font>
  151 + <font style=" color: green "> - {i18n}Filename:{/i18n} {$hit->Filename|mb_truncate:30:'...':true}</font>
152 152 {/if}
153 153 {if $hit->IsAvailable}
154 154 &nbsp;&nbsp;
... ... @@ -163,7 +163,7 @@ function onShowAll(showall)
163 163 {/if}
164 164  
165 165 {else}
166   - &nbsp;&nbsp;<a href="{$rootUrl}/browse.php?fFolderId={$hit->RealId}{if $hit->IsProxy}&fShortcutFolder={$hit->Id}{/if}"><B>{$hit->Title|truncate:80}</b></a>
  166 + &nbsp;&nbsp;<a href="{$rootUrl}/browse.php?fFolderId={$hit->RealId}{if $hit->IsProxy}&fShortcutFolder={$hit->Id}{/if}"><B>{$hit->Title|mb_truncate:30:'...':true}</b></a>
167 167  
168 168 {/if}
169 169  
... ... @@ -180,9 +180,9 @@ function onShowAll(showall)
180 180 <tr><td colspan=2>{$hit->Text}</td></tr>
181 181 <tr><td>
182 182 {if $hit->IsDocument}
183   - <font style=" color: green "><a href="{$rootUrl}/browse.php?fFolderId={$hit->FolderId}" tag="{$hit->FullPath}">{$hit->FullPath|truncate:40}</a>/{$hit->Title|truncate:40} - {$hit->Filesize}</font>
  183 + <font style=" color: green "><a href="{$rootUrl}/browse.php?fFolderId={$hit->FolderId}" tag="{$hit->FullPath}">{$hit->FullPath|mb_truncate:30:'...':true}</a>/{$hit->Title|mb_truncate:30:'...':true} - {$hit->Filesize}</font>
184 184 {else}
185   - <font style=" color: green "><a href="{$rootUrl}/browse.php?fFolderId={$hit->FolderId}" tag="{$hit->FullPath}">{$hit->FullPath|truncate:40}</a></font>
  185 + <font style=" color: green "><a href="{$rootUrl}/browse.php?fFolderId={$hit->FolderId}" tag="{$hit->FullPath}">{$hit->FullPath|mb_truncate:30:'...':true}</a></font>
186 186 {/if}
187 187 </td>
188 188 <td align=right><nobr>
... ... @@ -192,6 +192,7 @@ function onShowAll(showall)
192 192 {i18n}on{/i18n} {$hit->DateCreated}
193 193 {/if}
194 194 </font>
  195 + </nobr>
195 196 </td>
196 197 {if $hit->IsDocument}
197 198 <tr><td>
... ... @@ -209,6 +210,7 @@ function onShowAll(showall)
209 210 {i18n}on{/i18n} {$hit->DateModified}
210 211 {/if}
211 212 </font>
  213 + </nobr>
212 214 </td>
213 215 {/if}
214 216  
... ...