anchor.diff:  %% terminate. It should be the opposite of Module:init/1 and do any necessary
   %% cleaning up. When it returns, the gen_server terminates with Reason.
   %% The return value is ignored.
  -terminate(_Reason, State) ->
  -    Context = State#state.context,
  -    z_notifier:detach(search_query, self(), Context),
  -    z_notifier:detach(rsc_pivot_done, self(), Context),
  -    z_notifier:detach(rsc_delete, self(), Context),
  +terminate(_Reason, _State) ->
       ok.
   
   %% @spec code_change(OldVsn, State, Extra) -> {ok, NewState}
  
positive.code: %% @doc Starts the server
  start_link(Args) when is_list(Args) ->
      gen_server:start_link(?MODULE, Args, []).
  
  %%====================================================================
  %% gen_server callbacks
  
negative.code: 
  %% interface functions
  -export([
      pid_observe_search_query/3,
      pid_observe_rsc_pivot_done/3,
      pid_observe_rsc_delete/3
  ]).
  
  -include("zotonic.hrl").
  