<commit_before>/*
Copyright 2009 University of Toronto

Licensed under the Educational Community License (ECL), Version 2.0. 
ou may not use this file except in compliance with this License.

You may obtain a copy of the ECL 2.0 License at
https://source.collectionspace.org/collection-space/LICENSE.txt
*/

/*global jQuery, fluid_1_1*/

var cspace = cspace || {};

(function ($, fluid) {

    var defaultSearchUrlBuilder = function (recordType, query) {
        return "../chain/" + recordType + "/search?query=" + query;
    };<commit_msg>CSPACE-675: Update the Search component's URL generation.<commit_after>/*
Copyright 2009 University of Toronto

Licensed under the Educational Community License (ECL), Version 2.0. 
ou may not use this file except in compliance with this License.

You may obtain a copy of the ECL 2.0 License at
https://source.collectionspace.org/collection-space/LICENSE.txt
*/

/*global jQuery, fluid_1_1*/

var cspace = cspace || {};

(function ($, fluid) {

    var defaultSearchUrlBuilder = function (recordType, query) {
// Up to 0.4, there's a bug in which the recordType for 'object' needs to be
// plural
        if (recordType === "object") {
            recordType = "objects";
        }
        return "../../chain/" + recordType + "/search?query=" + query;
    };
{'fraction_non_alphanumeric': 0.11760184473481937, 'fraction_numerical': 0.01921598770176787, 'mean_word_length': 3.3986486486486487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4865303', 'n_tokens_mistral': 386, 'n_tokens_neox': 366, 'n_words': 141}