diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py
index 2d12bc5a2a8da372f445d0bcedb761540626e0dc..ef6c5b539f60f8e54417b517d4e233805de7058a 100644
--- a/ckanext/odsh/plugin.py
+++ b/ckanext/odsh/plugin.py
@@ -267,7 +267,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
 
         return pkg_dict
 
-    def before_view(self, pkg_dict):
+    def before_dataset_view(self, pkg_dict):
         '''
         adds the following key-value-pairs to pkg_dict:
         # key: 'is_new', value: True if the dataset has been created within the last month