src/main/webapp/js/corpora.js
/**
	 * @param {BLFormat} format as received from the server
	 * @param {string} formatId - full id of the format, including userName portion (if applicable)
	 * @return {Format} normalized version of the format
	 */
@param {BLFormat} format as received from the server
@param {string} formatId - full id of the format, including userName portion (if applicable)
@return {Format} normalized version of the format
@param { BLFormat } format as received from the server @param { string } formatId - full id of the format including userName portion ( if applicable ) @return { Format } normalized version of the format
function normalizeFormatData(format, formatId) {
		var shortId = formatId.substr(formatId.indexOf(':')+1);
		return $.extend({}, format, {
			id: formatId,
			shortId: shortId,
			displayName: format.displayName || shortId,
			description: format.description || format.displayName || shortId,
			isPrivate: shortId !== formatId
		});
	}
function normalizeFormatData ( format , formatId ) { var shortId = formatId . substr ( formatId . indexOf ( ':' ) + 1 ) ; return $ . extend ( { } , format , { id : formatId , shortId : shortId , displayName : format . displayName || shortId , description : format . description || format . displayName || shortId , isPrivate : shortId !== formatId } ) ; }
@param {BLFormat} format as received from the server
 @param {string} formatId - full id of the format, including userName portion (if applicable)
 @return {Format} normalized version of the format
@param { BLFormat } format as received from the server @param { string } formatId - full id of the format including userName portion ( if applicable ) @return { Format } normalized version of the format