Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
frontend:breadcrumb [2012/05/18 18:02] giancarlo |
frontend:breadcrumb [2013/05/23 11:45] giancarlo |
and $parentObject <fedora-model:state> <info:fedora/fedora-system:def/model#Active>) | and $parentObject <fedora-model:state> <info:fedora/fedora-system:def/model#Active>) |
minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> | minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> |
| </code> |
| <wrap tip>Tip</wrap> |
| <WRAP prewrap center caution> |
| <code php> |
order by $title'; | order by $title'; |
| </code> |
| </WRAP> |
| <code php> |
$query_string = htmlentities(urlencode($query_string)); | $query_string = htmlentities(urlencode($query_string)); |
| |
/* $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); */ | /* $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); */ |
| |
if (strlen($parent) >0) { | if ((strlen($parent) >0) && ($level <10)) { |
/* if (substr($matches[1],-11,6) == '- page') { */ | /* if (substr($matches[1],-11,6) == '- page') { */ |
if (substr($matches[1],-11,6) != '- page') { | if (substr($matches[1],-11,6) != '- page') { |
/* } */ | /* } */ |
/* else if (strlen($matches[1]) > 20){ */ | /* else if (strlen($matches[1]) > 20){ */ |
if (strlen($matches[1]) > 20){ | if (strlen($matches[1]) > 25){ |
$breadcrumbs[] = l(substr($matches[1],0,20) . '...', 'fedora/repository/' . $pid); | $breadcrumbs[] = l(htmlentities(substr($matches[1],0,25)) . '...', 'fedora/repository/' . $pid); |
} | } |
else { | else { |