function [mapName, relativePathToMapFile, found]   =                    ...
    getBlockHelpMapNameAndPath(block_type)
%  Returns the mapName and the relative map file path for this block_type
%

% Copyright 2019-2022 The MathWorks, Inc.

narginchk(1,1);
docRoot = docroot;
if isempty(docRoot)
    error(message(['shared_rfblks_ideal:rfblksideal:'                   ...
         'HelpSystemUnAvailable']));
end

%   Column one is the "System object name".
%   Column two is the DOC anchor ID.
%   For core blocks, the first column is the 'BlockType'.
%      System blocks                           Doc anchor ID
blks = {                                                                ...
  'rf.Amplifier'                              'amplifier';              ...
  'rf.Mixer'                                  'mixer';                  ...
  'rf.PAmemory'                               'pamemory';               ...
  'rf.Filter'                                 'filter';                 ...
  'rf.Sparameter'                             'sparameter'              ...
  };

relativePathToMapFile = '/../help/simrf/helptargets.map';
% Test block to determine if RF Simulink Library Blockset
idx_logic = strcmp(block_type, blks(:,1));
if any(idx_logic)
  found = true;
  mapName = char(blks(idx_logic,2));
else
  found = false;
  mapName = 'User Defined';
end
