Commit f94d28b365fa0874b8c7a37c5fade1610781f1bb
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
Showing
1 changed file
with
7 additions
and
5 deletions
templates/ktcore/search2/search_results.smarty
| @@ -145,10 +145,10 @@ function onShowAll(showall) | @@ -145,10 +145,10 @@ function onShowAll(showall) | ||
| 145 | <span class="contenttype {$hit->MimeIconPath}"> | 145 | <span class="contenttype {$hit->MimeIconPath}"> |
| 146 | 146 | ||
| 147 | {if $hit->IsDocument} | 147 | {if $hit->IsDocument} |
| 148 | - <a href="{$rootUrl}/view.php?fDocumentId={$hit->Id}"><B>{$hit->Title|truncate:80}</b></a> | 148 | + <a href="{$rootUrl}/view.php?fDocumentId={$hit->Id}"><B>{$hit->Title|mb_truncate:30:'...':true}</b></a> |
| 149 | {if $hit->Title != $hit->Filename} | 149 | {if $hit->Title != $hit->Filename} |
| 150 | | 150 | |
| 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 | {/if} | 152 | {/if} |
| 153 | {if $hit->IsAvailable} | 153 | {if $hit->IsAvailable} |
| 154 | | 154 | |
| @@ -163,7 +163,7 @@ function onShowAll(showall) | @@ -163,7 +163,7 @@ function onShowAll(showall) | ||
| 163 | {/if} | 163 | {/if} |
| 164 | 164 | ||
| 165 | {else} | 165 | {else} |
| 166 | - <a href="{$rootUrl}/browse.php?fFolderId={$hit->RealId}{if $hit->IsProxy}&fShortcutFolder={$hit->Id}{/if}"><B>{$hit->Title|truncate:80}</b></a> | 166 | + <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 | {/if} | 168 | {/if} |
| 169 | 169 | ||
| @@ -180,9 +180,9 @@ function onShowAll(showall) | @@ -180,9 +180,9 @@ function onShowAll(showall) | ||
| 180 | <tr><td colspan=2>{$hit->Text}</td></tr> | 180 | <tr><td colspan=2>{$hit->Text}</td></tr> |
| 181 | <tr><td> | 181 | <tr><td> |
| 182 | {if $hit->IsDocument} | 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 | {else} | 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 | {/if} | 186 | {/if} |
| 187 | </td> | 187 | </td> |
| 188 | <td align=right><nobr> | 188 | <td align=right><nobr> |
| @@ -192,6 +192,7 @@ function onShowAll(showall) | @@ -192,6 +192,7 @@ function onShowAll(showall) | ||
| 192 | {i18n}on{/i18n} {$hit->DateCreated} | 192 | {i18n}on{/i18n} {$hit->DateCreated} |
| 193 | {/if} | 193 | {/if} |
| 194 | </font> | 194 | </font> |
| 195 | + </nobr> | ||
| 195 | </td> | 196 | </td> |
| 196 | {if $hit->IsDocument} | 197 | {if $hit->IsDocument} |
| 197 | <tr><td> | 198 | <tr><td> |
| @@ -209,6 +210,7 @@ function onShowAll(showall) | @@ -209,6 +210,7 @@ function onShowAll(showall) | ||
| 209 | {i18n}on{/i18n} {$hit->DateModified} | 210 | {i18n}on{/i18n} {$hit->DateModified} |
| 210 | {/if} | 211 | {/if} |
| 211 | </font> | 212 | </font> |
| 213 | + </nobr> | ||
| 212 | </td> | 214 | </td> |
| 213 | {/if} | 215 | {/if} |
| 214 | 216 |