File tree 24 files changed +35
-303
lines changed
24 files changed +35
-303
lines changed Original file line number Diff line number Diff line change 402
402
theme: ' bootstrap4'
403
403
});
404
404
405
- makeSureResourceParameterIsPresentInURL ();
406
-
407
- function makeSureResourceParameterIsPresentInURL () {
408
- const currentUrl = window .location .href ;
409
- const url = new URL (currentUrl);
410
-
411
- const searchParams = url .searchParams ;
412
-
413
- if (! searchParams .has (' r' )) {
414
- console .log (' Resource shortname (Camtrap DP basic metadata):' )
415
- console .log (' ${resource.shortname}' );
416
- searchParams .set (' r' , ' ${resource.shortname}' );
417
- window .history .replaceState ({}, ' ' , url .toString ());
418
- }
419
- }
405
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
420
406
});
421
407
</script >
422
408
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 39
39
$ (" #generateOff" ).hide ();
40
40
});
41
41
42
- makeSureResourceParameterIsPresentInURL ();
43
-
44
- function makeSureResourceParameterIsPresentInURL () {
45
- const currentUrl = window .location .href ;
46
- const url = new URL (currentUrl);
47
-
48
- const searchParams = url .searchParams ;
49
-
50
- if (! searchParams .has (' r' )) {
51
- searchParams .set (' r' , ' ${resource.shortname}' );
52
- window .history .replaceState ({}, ' ' , url .toString ());
53
- }
54
- }
42
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
55
43
});
56
44
< / script>
57
45
< #assign currentMenu= " manage" / >
Original file line number Diff line number Diff line change 76
76
77
77
$ (" #re-infer-link" ).on (' click' , displayProcessing);
78
78
79
- makeSureResourceParameterIsPresentInURL ();
80
-
81
- function makeSureResourceParameterIsPresentInURL () {
82
- const currentUrl = window .location .href ;
83
- const url = new URL (currentUrl);
84
-
85
- const searchParams = url .searchParams ;
86
-
87
- if (! searchParams .has (' r' )) {
88
- searchParams .set (' r' , ' ${resource.shortname}' );
89
- window .history .replaceState ({}, ' ' , url .toString ());
90
- }
91
- }
79
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
92
80
});
93
81
</script >
94
82
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 74
74
$ (' body, html' ).animate ({scrollTop: pos});
75
75
}
76
76
77
- makeSureResourceParameterIsPresentInURL ();
78
-
79
- function makeSureResourceParameterIsPresentInURL () {
80
- const currentUrl = window .location .href ;
81
- const url = new URL (currentUrl);
82
-
83
- const searchParams = url .searchParams ;
84
-
85
- if (! searchParams .has (' r' )) {
86
- searchParams .set (' r' , ' ${resource.shortname}' );
87
- window .history .replaceState ({}, ' ' , url .toString ());
88
- }
89
- }
77
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
90
78
});
91
79
</script >
92
80
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 218
218
theme: ' bootstrap4'
219
219
});
220
220
221
- makeSureResourceParameterIsPresentInURL ();
222
-
223
- function makeSureResourceParameterIsPresentInURL () {
224
- const currentUrl = window .location .href ;
225
- const url = new URL (currentUrl);
226
-
227
- const searchParams = url .searchParams ;
228
-
229
- if (! searchParams .has (' r' )) {
230
- searchParams .set (' r' , ' ${resource.shortname}' );
231
- window .history .replaceState ({}, ' ' , url .toString ());
232
- }
233
- }
221
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
234
222
});
235
223
</script >
236
224
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 44
44
theme: ' bootstrap4'
45
45
});
46
46
47
- makeSureResourceParameterIsPresentInURL ();
48
-
49
- function makeSureResourceParameterIsPresentInURL () {
50
- const currentUrl = window .location .href ;
51
- const url = new URL (currentUrl);
52
-
53
- const searchParams = url .searchParams ;
54
-
55
- if (! searchParams .has (' r' )) {
56
- searchParams .set (' r' , ' ${resource.shortname}' );
57
- window .history .replaceState ({}, ' ' , url .toString ());
58
- }
59
- }
47
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
60
48
});
61
49
</script >
62
50
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 301
301
302
302
$ (" #re-infer-link" ).on (' click' , displayProcessing);
303
303
304
- makeSureResourceParameterIsPresentInURL ();
305
-
306
- function makeSureResourceParameterIsPresentInURL () {
307
- const currentUrl = window .location .href ;
308
- const url = new URL (currentUrl);
309
-
310
- const searchParams = url .searchParams ;
311
-
312
- if (! searchParams .has (' r' )) {
313
- searchParams .set (' r' , ' ${resource.shortname}' );
314
- window .history .replaceState ({}, ' ' , url .toString ());
315
- }
316
- }
304
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
317
305
});
318
306
</script >
319
307
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 48
48
49
49
$ (" #re-infer-link" ).on (' click' , displayProcessing);
50
50
51
- makeSureResourceParameterIsPresentInURL ();
52
-
53
- function makeSureResourceParameterIsPresentInURL () {
54
- const currentUrl = window .location .href ;
55
- const url = new URL (currentUrl);
56
-
57
- const searchParams = url .searchParams ;
58
-
59
- if (! searchParams .has (' r' )) {
60
- searchParams .set (' r' , ' ${resource.shortname}' );
61
- window .history .replaceState ({}, ' ' , url .toString ());
62
- }
63
- }
51
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
64
52
});
65
53
</script >
66
54
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 230
230
$ (' body, html' ).animate ({scrollTop: pos});
231
231
}
232
232
233
- makeSureResourceParameterIsPresentInURL ();
234
-
235
- function makeSureResourceParameterIsPresentInURL () {
236
- const currentUrl = window .location .href ;
237
- const url = new URL (currentUrl);
238
-
239
- const searchParams = url .searchParams ;
240
-
241
- if (! searchParams .has (' r' )) {
242
- searchParams .set (' r' , ' ${resource.shortname}' );
243
- window .history .replaceState ({}, ' ' , url .toString ());
244
- }
245
- }
233
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
246
234
});
247
235
</script >
248
236
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 53
53
this .submit ();
54
54
});
55
55
56
- makeSureResourceParameterIsPresentInURL ();
57
-
58
- function makeSureResourceParameterIsPresentInURL () {
59
- const currentUrl = window .location .href ;
60
- const url = new URL (currentUrl);
61
-
62
- const searchParams = url .searchParams ;
63
-
64
- if (! searchParams .has (' r' )) {
65
- searchParams .set (' r' , ' ${resource.shortname}' );
66
- window .history .replaceState ({}, ' ' , url .toString ());
67
- }
68
- }
56
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
69
57
});
70
58
</script >
71
59
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 116
116
hideProcessing ();
117
117
}
118
118
119
- makeSureResourceParameterIsPresentInURL ();
120
-
121
- function makeSureResourceParameterIsPresentInURL () {
122
- const currentUrl = window .location .href ;
123
- const url = new URL (currentUrl);
124
-
125
- const searchParams = url .searchParams ;
126
-
127
- if (! searchParams .has (' r' )) {
128
- searchParams .set (' r' , ' ${resource.shortname}' );
129
- window .history .replaceState ({}, ' ' , url .toString ());
130
- }
131
- }
119
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
132
120
});
133
121
</script >
134
122
<#assign currentMetadataPage = "additional"/ >
Original file line number Diff line number Diff line change 124
124
this .submit ();
125
125
});
126
126
127
- makeSureResourceParameterIsPresentInURL ();
128
-
129
- function makeSureResourceParameterIsPresentInURL () {
130
- const currentUrl = window .location .href ;
131
- const url = new URL (currentUrl);
132
-
133
- const searchParams = url .searchParams ;
134
-
135
- if (! searchParams .has (' r' )) {
136
- searchParams .set (' r' , ' ${resource.shortname}' );
137
- window .history .replaceState ({}, ' ' , url .toString ());
138
- }
139
- }
127
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
140
128
});
141
129
</script >
142
130
<#assign currentMenu="manage"/ >
Original file line number Diff line number Diff line change 272
272
this .submit ();
273
273
});
274
274
275
- makeSureResourceParameterIsPresentInURL ();
276
-
277
- function makeSureResourceParameterIsPresentInURL () {
278
- const currentUrl = window .location .href ;
279
- const url = new URL (currentUrl);
280
-
281
- const searchParams = url .searchParams ;
282
-
283
- if (! searchParams .has (' r' )) {
284
- console .log (' Resource shortname (EML basic metadata):' )
285
- console .log (' ${resource.shortname}' );
286
- searchParams .set (' r' , ' ${resource.shortname}' );
287
- window .history .replaceState ({}, ' ' , url .toString ());
288
- }
289
- }
275
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
290
276
});
291
277
</script >
292
278
<style >
Original file line number Diff line number Diff line change 91
91
hideProcessing ();
92
92
}
93
93
94
- makeSureResourceParameterIsPresentInURL ();
95
-
96
- function makeSureResourceParameterIsPresentInURL () {
97
- const currentUrl = window .location .href ;
98
- const url = new URL (currentUrl);
99
-
100
- const searchParams = url .searchParams ;
101
-
102
- if (! searchParams .has (' r' )) {
103
- searchParams .set (' r' , ' ${resource.shortname}' );
104
- window .history .replaceState ({}, ' ' , url .toString ());
105
- }
106
- }
94
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
107
95
});
108
96
< / script>
109
97
< #include " /WEB-INF/pages/macros/metadata.ftl" / >
Original file line number Diff line number Diff line change 126
126
theme: ' bootstrap4'
127
127
});
128
128
129
- makeSureResourceParameterIsPresentInURL ();
130
-
131
- function makeSureResourceParameterIsPresentInURL () {
132
- const currentUrl = window .location .href ;
133
- const url = new URL (currentUrl);
134
-
135
- const searchParams = url .searchParams ;
136
-
137
- if (! searchParams .has (' r' )) {
138
- searchParams .set (' r' , ' ${resource.shortname}' );
139
- window .history .replaceState ({}, ' ' , url .toString ());
140
- }
141
- }
129
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
142
130
});
143
131
</script >
144
132
Original file line number Diff line number Diff line change 205
205
}
206
206
});
207
207
208
- makeSureResourceParameterIsPresentInURL ();
209
-
210
- function makeSureResourceParameterIsPresentInURL () {
211
- const currentUrl = window .location .href ;
212
- const url = new URL (currentUrl);
213
-
214
- const searchParams = url .searchParams ;
215
-
216
- if (! searchParams .has (' r' )) {
217
- searchParams .set (' r' , ' ${resource.shortname}' );
218
- window .history .replaceState ({}, ' ' , url .toString ());
219
- }
220
- }
208
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
221
209
});
222
210
</script >
223
211
<style >
Original file line number Diff line number Diff line change 428
428
validateCoordinates (event );
429
429
});
430
430
431
- makeSureResourceParameterIsPresentInURL ();
432
-
433
- function makeSureResourceParameterIsPresentInURL () {
434
- const currentUrl = window .location .href ;
435
- const url = new URL (currentUrl);
436
-
437
- const searchParams = url .searchParams ;
438
-
439
- if (! searchParams .has (' r' )) {
440
- searchParams .set (' r' , ' ${resource.shortname}' );
441
- window .history .replaceState ({}, ' ' , url .toString ());
442
- }
443
- }
431
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
444
432
});
445
433
< / script>
446
434
Original file line number Diff line number Diff line change 60
60
hideProcessing ();
61
61
}
62
62
63
- makeSureResourceParameterIsPresentInURL ();
64
-
65
- function makeSureResourceParameterIsPresentInURL () {
66
- const currentUrl = window .location .href ;
67
- const url = new URL (currentUrl);
68
-
69
- const searchParams = url .searchParams ;
70
-
71
- if (! searchParams .has (' r' )) {
72
- searchParams .set (' r' , ' ${resource.shortname}' );
73
- window .history .replaceState ({}, ' ' , url .toString ());
74
- }
75
- }
63
+ makeSureResourceParameterIsPresentInURL (' ${resource.shortname}' );
76
64
});
77
65
</script >
78
66
<#include "/WEB-INF/pages/macros/metadata.ftl"/ >
You can’t perform that action at this time.
0 commit comments