Item Importances

Background

Items on lists can be given a level of importance. This is used to indicate to students that they may wish to pay more or less attention to certain works.

Libraries often use the item importance in their purchase decision making processes and so want to track items which have importances and those that don’t

Questions you might be asking

Events

This recipe includes some queries that use events.

There are a few things to be aware of when working with events in Talis Aspire Advanced MIS. Events are grouped into time windows with a count or sum per time window. Events are available for the last 30 days with a 1 hour granularity, and for the last 36 months with a 1 day granularity. Also as Talis add more events into Advanced MIS you may want to check when the first event of a particular class appears, as it may not be available for the full time range you are interested in.

Here are a couple of queries to see how far back event data is available:

-- data available since:
select min(time_window) from f_event_timeseries_24hr;

-- data available since for specific event:
select min(time_window) from f_event_timeseries_24hr
WHERE event_class = 'list.item.external_link.click';

It may be that there are different dates returned. For example, the reading intentions were only added to Advanced MIS from December 2018, but we have events in the database going back to May 2018.

A Basic Query

We start with a simple query to find out how many items do not have an importance set.

-- count the items
select count(item_guid)
from f_rl_items
where importance = '';

-- which items are they?
select item_url
from f_rl_items
where importance = '';

We could then look to see how many items there are for each importance type:

select importance, count(importance)
from f_rl_items
group by importance;

Which gives something like

importancecount
7863
Recommended4211
Suggested for student purchase700
Essential2289
Optional1981

Linking importances to the hierarchy

We need to know that lists are linked to the hierarchy, and items are linked to lists. We need to also know about the hierarchy, for example that there are schools or departments which have modules, and it is these modules which are linked to lists

select
       hierarchy.url,
       items.importance,
       count(items.importance)
from
     f_rl_items items,
     f_rl_hierarchy_descendants hierarchy,
     f_rl_lists lists
where
      -- join lists to the hierarchy
      lists.hierarchy_url = hierarchy.url
  and
      -- join lists to their items
      lists.list_guid = items.list_guid
  and
      -- look for only nodes in the hierarchy that have a descendant of type 'Module'
      hierarchy.descendant_url
          in (
              select url
              from f_rl_hierarchy
              where type = 'Module'
              )
group by
         hierarchy.url,
         items.importance
order by
         hierarchy.url,
         items.importance
;

This might give us something like this which can then be processed into a chart

urlimportancecount
http://demo.talisaspire.com/courses/buseco1
http://demo.talisaspire.com/courses/busecoEssential3
http://demo.talisaspire.com/courses/busecoOptional2
http://demo.talisaspire.com/courses/busecoRecommended5
http://demo.talisaspire.com/courses/busecoSuggested for student purchase1
http://demo.talisaspire.com/courses/gol0012
http://demo.talisaspire.com/courses/hum1104
http://demo.talisaspire.com/courses/hum110Essential1
http://demo.talisaspire.com/courses/hum110Optional1
http://demo.talisaspire.com/departments/acc00112
http://demo.talisaspire.com/departments/man01198
http://demo.talisaspire.com/departments/man01Essential264
http://demo.talisaspire.com/departments/man01Journals231
http://demo.talisaspire.com/departments/man01Optional33
http://demo.talisaspire.com/departments/man01Recommended495
http://demo.talisaspire.com/departments/man01Suggested for student purchase132
http://demo.talisaspire.com/modules/inv10127
http://demo.talisaspire.com/modules/inv101Suggested for student purchase4
http://demo.talisaspire.com/schools/bs02735
http://demo.talisaspire.com/schools/bs02Suggested for student purchase49

Assumptions and limitations

Things to try

You could also now link in the f_event_timeseries_24hr table, looking for list.item.view events linked to the items that have importances.