Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
frontend:breadcrumb [2012/05/18 18:02]
giancarlo
frontend:breadcrumb [2013/05/23 11:45]
giancarlo
Line 36: Line 36:
                                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>
-                               order by $title';+</code> 
 +<wrap tip>Tip</wrap> 
 +<WRAP prewrap center caution>      
 +<code php> 
 +                               order by $parentObject'; 
 +</code> 
 +</WRAP> 
 +<code php>
       $query_string = htmlentities(urlencode($query_string));       $query_string = htmlentities(urlencode($query_string));
  
Line 53: Line 60:
 /*        $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') {
Line 59: Line 66:
 /*        } */ /*        } */
 /*        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 {
 
 
frontend/breadcrumb.txt · Last modified: 2013/05/23 11:45 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki