@@ -9,7 +9,6 @@ var newExcludePatternsCount = 0;
9
9
var newTitlePatternsCount = 0 ;
10
10
var newDocumentTypePatternsCount = 0 ;
11
11
var newDivisionPatternsCount = 0 ;
12
- // var is_multi_division = "{{ is_multi_division|lower }}";
13
12
var currentTab = "" ; //blank for the first tab
14
13
var matchPatternTypeMap = {
15
14
"Individual URL Pattern" : 1 ,
@@ -257,38 +256,40 @@ function initializeDataTable() {
257
256
getScrapedTitleColumn ( ) ,
258
257
getGeneratedTitleColumn ( ) ,
259
258
getDocumentTypeColumn ( ) ,
260
- getDivisionColumn ( ) ,
259
+ // getDivisionColumn(),
261
260
{ data : "id" , visible : false , searchable : false } ,
262
261
{ data : "generated_title_id" , visible : false , searchable : false } ,
263
262
{ data : "match_pattern_type" , visible : false , searchable : false } ,
264
263
{ data : "candidate_urls_count" , visible : false , searchable : false } ,
265
264
{ data : "excluded" , visible : false , searchable : false } ,
266
- {
267
- data : null ,
268
- render : function ( data , type , row ) {
269
- if ( ! row . document_type ) return "Select" ;
270
- return dict [ row . document_type ] ;
271
- } ,
272
- visible : false ,
273
- } ,
274
- {
275
- data : null ,
276
- render : function ( data , type , row ) {
277
- const excludedDict = {
278
- true : "Yes" ,
279
- false : "No" ,
280
- } ;
281
- return excludedDict [ row . excluded ] ;
282
- } ,
283
- visible : false ,
284
- } ,
285
- {
286
- data : null ,
287
- render : function ( data , type , row ) {
288
- return row . generated_title ;
289
- } ,
290
- visible : false ,
291
- } ,
265
+ // {
266
+ // data: null,
267
+ // render: function (data, type, row) {
268
+ // if (!row.document_type) return "Select";
269
+ // return dict[row.document_type];
270
+ // },
271
+ // visible: false,
272
+ // },
273
+ // {
274
+ // data: null,
275
+ // render: function (data, type, row) {
276
+ // const excludedDict = {
277
+ // true: "Yes",
278
+ // false: "No",
279
+ // };
280
+ // return excludedDict[row.excluded];
281
+ // },
282
+ // visible: false,
283
+ // },
284
+ // {
285
+ // data: null,
286
+ // render: function (data, type, row) {
287
+ // return row.generated_title;
288
+ // },
289
+ // visible: false,
290
+ // },
291
+ // ...(is_multi_division === 'true' ? [getDivisionColumn()] : []),
292
+ // getDivisionColumn(),
292
293
] ,
293
294
createdRow : function ( row , data , dataIndex ) {
294
295
if ( data [ "excluded" ] ) {
0 commit comments