Changeset 410

Show
Ignore:
Timestamp:
2007-03-08 17:40:20 (2 years ago)
Author:
tdb01r
Message:
  • Refined result set links
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/www/html/generic.css

    r399 r410  
    197197 
    198198#listing { 
     199        clear: left; 
     200        padding-top: 5px; 
    199201} 
    200202#listing .repository { 
     
    270272} 
    271273 
    272 #chart_link { 
    273         float: right; 
    274 
     274#result_total { 
     275        font-weight: bold; 
     276        border-bottom: 2px #484 solid; 
     277        text-align: center; 
     278        margin-top: 1em; 
     279        color: #000; 
     280        background-color: #af8; 
     281
     282 
     283#result_header { 
     284        font-size: 85%; 
     285
     286 
     287#result_header div { 
     288        float: left; 
     289        margin-right: 1em; 
     290
     291 
     292#result_header ul { 
     293        margin: 0; 
     294        padding: 0 0 0 1em; 
     295        list-style-type: none; 
     296
     297 
     298#result_header li { 
     299
     300 
     301#chart_links li { 
     302        float: left; 
     303
  • trunk/www/html/roar_api.php

    r407 r410  
    14691469        } 
    14701470 
    1471         $u = self_url(); 
    1472         $u->param('action','generate_chart'); 
    1473         echo "<div id='chart_link' class='noprint'><a href='".$u->as_string()."' title='Generate a chart from the current listing'><img src='graph_icon.png' alt='Generate Charts' /></a></div>\n"; 
    1474  
    14751471        $url_offset = isset($_REQUEST['url']) ? normalise_url($_REQUEST['url']) : NULL; 
    14761472 
     
    14861482                $page = 0; 
    14871483//      navbar($page,count($ARCHIVES),$qry); 
    1488         echo "<div class='noprint'>\n"; 
     1484 
     1485        echo "<div id='result_total' class='noprint'>".count($ARCHIVES)." repositories found</div>\n"; 
     1486 
     1487        echo "<div id='result_header' class='noprint'>\n"; 
     1488        $u = self_url(); 
     1489        $u->param('action','generate_chart'); 
     1490        echo "<div>"; 
     1491        echo "View this result set as a chart:<ul id='chart_links'>"; 
     1492        echo "<li><a href='".$u->as_string()."' title='Generate a chart of when these repositories were registered'><img src='graph_icon_accession.png' alt='Generate Charts' /></a></li>"; 
     1493        $u->param('chart_type','pie'); 
     1494        echo "<li><a href='".$u->as_string()."' title='Generate a pie chart of these repositories by content type'><img src='graph_icon_pie.png' alt='Generate Charts' /></a></li>"; 
     1495        $u->param('chart_type','stacked'); 
     1496        echo "<li><a href='".$u->as_string()."' title='Generate a stacked graph of these repositories by content type'><img src='graph_icon_stacked.png' alt='Generate Charts' /></a></li>"; 
     1497        echo "</ul></div>\n"; 
     1498 
     1499        echo "<div>"; 
     1500        $csv = self_url(); 
     1501        $csv->action('csv'); 
     1502        echo "Export this result set as:<ul>"; 
     1503        echo "<li><a href='".htmlescape($csv->as_relative())."'>Tab-Separated Format</a></li>"; 
     1504        echo "<li>(<a href='http://trac.eprints.org/projects/iar/wiki/Export'>other formats</a>)</li>"; 
     1505        echo "</ul></div>"; 
     1506 
     1507        echo "<div>"; 
     1508        echo "Analyse the <b>content</b> of these repositories (<a href='http://trac.eprints.org/projects/iar/wiki/Missing'>caveats</a>)"; 
     1509         
     1510        echo "<div>"; 
    14891511        $reclink = self_url(); 
    14901512        $reclink->action('graph'); 
    14911513        $reclink->param('format', 'graph'); 
    14921514        $reclink->param('title',$title); 
    1493         echo "Generate a <a href='".$reclink->as_relative()."'>Total Records</a>\n"; 
     1515        echo "Export repository records summary as:<ul>"; 
     1516        echo "<li><a href='".$reclink->as_relative()."'>Cumulative Graph</a></li>\n"; 
    14941517        $reclink->param('format', 'table'); 
    1495         echo " (<a href='".$reclink->as_relative()."'>table</a>)\n"; 
     1518        echo "<li><a href='".$reclink->as_relative()."'>Cumulative Table</a></li>\n"; 
     1519        echo "</ul></div>"; 
     1520 
     1521        echo "<div>"; 
    14961522        $reclink->action('profile'); 
    14971523        $reclink->param('format', ''); 
    1498         echo " or <a href='".$reclink->as_relative()."'>Document Formats</a> graph for this result set (".count($ARCHIVES)." repositories).<br />\n"; 
    1499         $csv = self_url(); 
    1500         $csv->action('csv'); 
    1501         echo " Export in <a href='".htmlescape($csv->as_relative())."'>Tab-Separated Format</a>."; 
     1524        echo "View repository contents as:<ul>"; 
     1525        echo "<li><a href='".$reclink->as_relative()."'>File Format Graph</a></li>"; 
     1526        echo "</ul></div>\n"; 
     1527         
     1528        echo "</div>"; 
     1529 
    15021530        echo "</div>\n"; 
    1503          
     1531 
    15041532        echo "<div id='listing'>\n"; 
    15051533        $i = 0; $c = 0;