Resource | Count
--- | ---
0 ) { foreach ($CountData["Counts"] as $Id => $Count) { if (Resource::ItemExists($Id)) { $Resource = new Resource($Id); $Shown += $Count; ?>
GetMapped("Title"); ?> |
(no for this period)
| Other | ".number_format($Total-$Shown).""; print "
Total | ".number_format($Total)."
"; print "
Period: " .date("M j Y", strtotime($CountData["StartDate"]))." - " .date("M j Y", strtotime($CountData["EndDate"])) ."
"; ?>

' .'
Search Terms' .'Searches
'; if ($Total > 0) { foreach ($Data as $Terms => $Count) { ?>
0) { print "
Other".number_format($Other)."
"; } print "
Total".number_format($Total)."
"; } else { ?>
(no search data for this period)
Period: " .date("M j Y", $StartDate)." - ".date("M j Y", $EndDate) ."" .""; } function PrintShareTable($CountData, $StartDate, $Caption) { $Other = $CountData["Other"]; $Total = $CountData["Total"]; unset($CountData["Other"]); unset($CountData["Total"]); print '

' .'
Resource' .' | Shares
--- | ---
'; foreach ($CountData as $Id => $Count) { if (!Resource::ItemExists($Id)) { continue; } $Resource = new Resource($Id); ?>
" >GetMapped("Title"); ?> |
0) { print "
Other | ".$Other."
"; } print "
Total | ".$Total."
"; print "
Period: " .date("M j Y", $StartDate)." - " .date("M j Y") ."
" ."

"; } function SearchDesc($Params) { $SearchParams = new SearchParameterSet(); $SearchParams->UrlParameters($Params); return "". $SearchParams->TextDescription(TRUE, FALSE).""; } # ----- MAIN ----------------------------------------------------------------- # convert data we want to graph into graph-friendly formats $GraphItems = array( "H_TotalResourceCountData", "H_NewResourceCountData", "H_UrlClickData", "H_OaiDataByDay", ); foreach ($GraphItems as $GraphItem) { foreach ($$GraphItem as $Key => $Val) { $$GraphItem[$Key] = array($Val); } } $ResourceCountGraph = new Graph(Graph::TYPE_DATE, $H_TotalResourceCountData); $ResourceCountGraph->XLabel("Date"); $ResourceCountGraph->YLabel("Total Resources"); $NewResourceGraph = new Graph(Graph::TYPE_DATE_BAR, $H_NewResourceCountData ); $NewResourceGraph->XLabel("Date"); $NewResourceGraph->YLabel("New Resources"); $UrlClickGraph = new Graph(Graph::TYPE_DATE_BAR, $H_UrlClickData ); $UrlClickGraph->XLabel("Date"); $UrlClickGraph->YLabel("Resource URL Clicks"); $SearchGraph = new Graph(Graph::TYPE_DATE_BAR, $H_SearchDataByDay); $SearchGraph->XLabel("Date"); $SearchGraph->YLabel("Searches"); $SearchGraph->Legend( array("Unprivileged","Privileged") ); $OaiRequestGraph = new Graph(Graph::TYPE_DATE_BAR, $H_OaiDataByDay); $OaiRequestGraph->XLabel("Date"); $OaiRequestGraph->YLabel("OAI Requests"); $OaiRequestGraph->Scale(Graph::WEEKLY); # only use share data if the we have it if (isset($H_SharesByDay)) { $SharesGraph = new Graph(Graph::TYPE_DATE_BAR, $H_SharesByDay); $SharesGraph->XLabel("Date"); $SharesGraph->YLabel("Resource Shares"); $SharesGraph->Legend( array("Email", "Facebook", "Twitter", "LinkedIn", "GooglePlus") ); $SharesGraph->Scale(Graph::WEEKLY); } ?>
Update Now

# Collection Usage Metrics

## Full Record Views Week Month Year |  | ## Resource URL Clicks Week Month Year

## Searches: Unprivileged Users Day Week Month |  | ## Searches: Privileged Users Day Week Month

## Resource Shares Week Month Year |  |

Title("

## Total Number of Resources (updated daily)

"); $ResourceCountGraph->Display(); ?> Title("

## New Resources Added (updated daily)

"); $NewResourceGraph->Display(); ?> Title("

## Resource URL Clicks

"); $UrlClickGraph->Display(); ?> Title("

## Searches

"); $SearchGraph->Display(); ?> Title("

## OAI Requests

"); $OaiRequestGraph->Display(); ?> Title("

## Resource Shares

"); $SharesGraph->Display(); } ?>