Name
global.VASearchCardCreatorVancouver
Description
No description available
Script
var VASearchCardCreatorVancouver = Class.create();
VASearchCardCreatorVancouver.prototype = Object.extendsObject(global.VAGeniusCardCreatorTokyo, {
resultType:null,
vaContext:null,
initialize: function(resultType, searchMetadata, searchResults, vaSystem, vaInputs, vaVars, vaContext, type, index, dynamicChoiceNodeName) {
VAGeniusCardCreatorTokyo.prototype.initialize.call(
this,searchMetadata, searchResults, vaSystem, vaInputs, vaVars, type, index, dynamicChoiceNodeName);
this.vaContext = vaContext;
this.resultType = resultType;
},
getOriginalURL : function() {
// if we didn't set url previously, generate it here
if (gs.nil(this.originalURL))
this.originalURL = VAAISearchHelperTokyo.createURLByActionPayload(this.getTableName(), this.getSysId(), this.getActionName(), this.VA_SYSTEM, false, this.DYNAMIC_CHOICE_NODE_NAME);
return this.originalURL;
},
/**
* Returns the click metrics URL for the given search type.
*/
getMetricsURL: function() {
var originalURL = this.getOriginalURL();
return VAAISearchClickMetricsURLHelper.createResultEventMetricsURL(
this.resultType, this.SEARCH_META_DATA, this.GENIUS_RESULTS, this.VA_SYSTEM,
this.VA_INPUTS, this.VA_VARS, originalURL, this.index);
},
type: 'VASearchCardCreatorVancouver'
});
Sys ID
6195060eeb572110bbbd7558b5522852