ndlibersa / resources

**DEPRECATED** MOVED TO https://github.com/Coral-erm/Coral
GNU General Public License v3.0
9 stars 19 forks source link

Adding a Get Statistics button to the resource page #24

Closed jeffnm closed 11 years ago

jeffnm commented 11 years ago

I received a request to create a way to quickly get to statistics for the currently displayed resource title. This is what I came up with.

I added a field to the ResourceType table to indicate whether or not the specified Resource Type should display a Get Statistics button. The Get Statistics button submits a title search to the reports module for the current resource's title. The button appears in the helpful links section of the page.

The rest of the updates are to let the Admin user toggle the statistics field. I also check that the Usage Statistics module is installed before either the ResourceType admin toggle or the Get Statistics button are displayed.