View | Details | Raw Unified | Return to bug 34920
Collapse All | Expand All

(-)a/t/cypress/integration/ERM/Agreements_spec.ts (+20 lines)
Lines 135-140 describe("Agreement CRUD operations", () => { Link Here
135
    it("Add agreement", () => {
135
    it("Add agreement", () => {
136
        let agreement = cy.get_agreement();
136
        let agreement = cy.get_agreement();
137
        let vendors = cy.get_vendors_to_relate();
137
        let vendors = cy.get_vendors_to_relate();
138
        let av_cat_values = cy.get_ERM_av_cats_values();
138
        // No agreement, no license yet
139
        // No agreement, no license yet
139
        cy.intercept("GET", "/api/v1/erm/agreements*", {
140
        cy.intercept("GET", "/api/v1/erm/agreements*", {
140
            statusCode: 200,
141
            statusCode: 200,
Lines 150-155 describe("Agreement CRUD operations", () => { Link Here
150
            body: vendors,
151
            body: vendors,
151
        });
152
        });
152
153
154
        cy.intercept("GET", "/api/v1/authorised_value_categories*", {
155
            statusCode: 200,
156
            body: av_cat_values,
157
        }).as("get-ERM-av-cats-values");
158
153
        // Click the button in the toolbar
159
        // Click the button in the toolbar
154
        cy.visit("/cgi-bin/koha/erm/agreements");
160
        cy.visit("/cgi-bin/koha/erm/agreements");
155
        cy.contains("New agreement").click();
161
        cy.contains("New agreement").click();
Lines 169-174 describe("Agreement CRUD operations", () => { Link Here
169
            "have.length",
175
            "have.length",
170
            1
176
            1
171
        ); // name, description, status
177
        ); // name, description, status
178
179
        cy.get("#agreement_status .vs__search").type("closed" + "{enter}", {
180
            force: true,
181
        });
182
183
        cy.get("#agreement_closure_reason .vs__search").click();
184
        let closure_reasons = av_cat_values.find(
185
            av_cat => av_cat.category_name === "ERM_AGREEMENT_CLOSURE_REASON"
186
        );
187
        cy.get("#agreement_closure_reason #vs3__option-0").contains(
188
            closure_reasons.authorised_values[0].description
189
        );
190
        cy.get("#agreement_closure_reason #vs3__option-1").should("be.empty");
191
172
        cy.get("#agreement_status .vs__search").type(
192
        cy.get("#agreement_status .vs__search").type(
173
            agreement.status + "{enter}",
193
            agreement.status + "{enter}",
174
            { force: true }
194
            { force: true }
(-)a/t/cypress/support/e2e.js (-1 / +886 lines)
Lines 131-136 cy.get_agreement = () => { Link Here
131
    };
131
    };
132
}
132
}
133
133
134
cy.get_ERM_av_cats_values = () => {
135
    return [
136
        {
137
            authorised_values: [
138
                {
139
                    authorised_value_id: 11,
140
                    category_name: "ERM_AGREEMENT_CLOSURE_REASON",
141
                    description: "Expired",
142
                    image_url: null,
143
                    opac_description: null,
144
                    value: "expired",
145
                },
146
                {
147
                    authorised_value_id: 12,
148
                    category_name: "ERM_AGREEMENT_CLOSURE_REASON",
149
                    description: null,
150
                    image_url: "",
151
                    opac_description: null,
152
                    value: "cancelled",
153
                },
154
            ],
155
            category_name: "ERM_AGREEMENT_CLOSURE_REASON",
156
            is_system: true,
157
        },
158
        {
159
            authorised_values: [
160
                {
161
                    authorised_value_id: 30,
162
                    category_name: "ERM_AGREEMENT_LICENSE_LOCATION",
163
                    description: "Filing cabinet",
164
                    image_url: null,
165
                    opac_description: null,
166
                    value: "filing_cabinet",
167
                },
168
                {
169
                    authorised_value_id: 31,
170
                    category_name: "ERM_AGREEMENT_LICENSE_LOCATION",
171
                    description: "Cupboard",
172
                    image_url: null,
173
                    opac_description: null,
174
                    value: "cupboard",
175
                },
176
            ],
177
            category_name: "ERM_AGREEMENT_LICENSE_LOCATION",
178
            is_system: true,
179
        },
180
        {
181
            authorised_values: [
182
                {
183
                    authorised_value_id: 27,
184
                    category_name: "ERM_AGREEMENT_LICENSE_STATUS",
185
                    description: "Controlling",
186
                    image_url: null,
187
                    opac_description: null,
188
                    value: "controlling",
189
                },
190
                {
191
                    authorised_value_id: 28,
192
                    category_name: "ERM_AGREEMENT_LICENSE_STATUS",
193
                    description: "Future",
194
                    image_url: null,
195
                    opac_description: null,
196
                    value: "future",
197
                },
198
                {
199
                    authorised_value_id: 29,
200
                    category_name: "ERM_AGREEMENT_LICENSE_STATUS",
201
                    description: "Historic",
202
                    image_url: null,
203
                    opac_description: null,
204
                    value: "history",
205
                },
206
            ],
207
            category_name: "ERM_AGREEMENT_LICENSE_STATUS",
208
            is_system: true,
209
        },
210
        {
211
            authorised_values: [
212
                {
213
                    authorised_value_id: 13,
214
                    category_name: "ERM_AGREEMENT_RENEWAL_PRIORITY",
215
                    description: "For review",
216
                    image_url: null,
217
                    opac_description: null,
218
                    value: "for_review",
219
                },
220
                {
221
                    authorised_value_id: 14,
222
                    category_name: "ERM_AGREEMENT_RENEWAL_PRIORITY",
223
                    description: "Renew",
224
                    image_url: null,
225
                    opac_description: null,
226
                    value: "renew",
227
                },
228
                {
229
                    authorised_value_id: 15,
230
                    category_name: "ERM_AGREEMENT_RENEWAL_PRIORITY",
231
                    description: "Cancel",
232
                    image_url: null,
233
                    opac_description: null,
234
                    value: "cancel",
235
                },
236
            ],
237
            category_name: "ERM_AGREEMENT_RENEWAL_PRIORITY",
238
            is_system: true,
239
        },
240
        {
241
            authorised_values: [
242
                {
243
                    authorised_value_id: 8,
244
                    category_name: "ERM_AGREEMENT_STATUS",
245
                    description: "Active",
246
                    image_url: null,
247
                    opac_description: null,
248
                    value: "active",
249
                },
250
                {
251
                    authorised_value_id: 9,
252
                    category_name: "ERM_AGREEMENT_STATUS",
253
                    description: "In negotiation",
254
                    image_url: null,
255
                    opac_description: null,
256
                    value: "in_negotiation",
257
                },
258
                {
259
                    authorised_value_id: 10,
260
                    category_name: "ERM_AGREEMENT_STATUS",
261
                    description: "Closed",
262
                    image_url: null,
263
                    opac_description: null,
264
                    value: "closed",
265
                },
266
            ],
267
            category_name: "ERM_AGREEMENT_STATUS",
268
            is_system: true,
269
        },
270
        {
271
            authorised_values: [
272
                {
273
                    authorised_value_id: 81,
274
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
275
                    description: "Searches automated",
276
                    image_url: null,
277
                    opac_description: null,
278
                    value: "Searches_Automated",
279
                },
280
                {
281
                    authorised_value_id: 82,
282
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
283
                    description: "Searches federated",
284
                    image_url: null,
285
                    opac_description: null,
286
                    value: "Searches_Federated",
287
                },
288
                {
289
                    authorised_value_id: 83,
290
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
291
                    description: "Searches regular",
292
                    image_url: null,
293
                    opac_description: null,
294
                    value: "Searches_Regular",
295
                },
296
                {
297
                    authorised_value_id: 84,
298
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
299
                    description: "Total item investigations",
300
                    image_url: null,
301
                    opac_description: null,
302
                    value: "Total_Item_Investigations",
303
                },
304
                {
305
                    authorised_value_id: 85,
306
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
307
                    description: "Total item requests",
308
                    image_url: null,
309
                    opac_description: null,
310
                    value: "Total_Item_Requests",
311
                },
312
                {
313
                    authorised_value_id: 86,
314
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
315
                    description: "Unique item investigations",
316
                    image_url: null,
317
                    opac_description: null,
318
                    value: "Unique_Item_Investigations",
319
                },
320
                {
321
                    authorised_value_id: 87,
322
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
323
                    description: "Unique item requests",
324
                    image_url: null,
325
                    opac_description: null,
326
                    value: "Unique_Item_Requests",
327
                },
328
                {
329
                    authorised_value_id: 88,
330
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
331
                    description: "Unique title investigations",
332
                    image_url: null,
333
                    opac_description: null,
334
                    value: "Unique_Title_Investigations",
335
                },
336
                {
337
                    authorised_value_id: 89,
338
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
339
                    description: "Unique title requests",
340
                    image_url: null,
341
                    opac_description: null,
342
                    value: "Unique_Title_Requests",
343
                },
344
                {
345
                    authorised_value_id: 90,
346
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
347
                    description: "No license",
348
                    image_url: null,
349
                    opac_description: null,
350
                    value: "No_License",
351
                },
352
                {
353
                    authorised_value_id: 91,
354
                    category_name: "ERM_DATABASE_REPORTS_METRICS",
355
                    description: "Limit exceeded",
356
                    image_url: null,
357
                    opac_description: null,
358
                    value: "Limit_Exceeded",
359
                },
360
            ],
361
            category_name: "ERM_DATABASE_REPORTS_METRICS",
362
            is_system: true,
363
        },
364
        {
365
            authorised_values: [
366
                {
367
                    authorised_value_id: 100,
368
                    category_name: "ERM_ITEM_REPORTS_METRICS",
369
                    description: "Total item investigations",
370
                    image_url: null,
371
                    opac_description: null,
372
                    value: "Total_Item_Investigations",
373
                },
374
                {
375
                    authorised_value_id: 101,
376
                    category_name: "ERM_ITEM_REPORTS_METRICS",
377
                    description: "Total item requests",
378
                    image_url: null,
379
                    opac_description: null,
380
                    value: "Total_Item_Requests",
381
                },
382
                {
383
                    authorised_value_id: 102,
384
                    category_name: "ERM_ITEM_REPORTS_METRICS",
385
                    description: "Unique item investigations",
386
                    image_url: null,
387
                    opac_description: null,
388
                    value: "Unique_Item_Investigations",
389
                },
390
                {
391
                    authorised_value_id: 103,
392
                    category_name: "ERM_ITEM_REPORTS_METRICS",
393
                    description: "Unique item requests",
394
                    image_url: null,
395
                    opac_description: null,
396
                    value: "Unique_Item_Requests",
397
                },
398
                {
399
                    authorised_value_id: 104,
400
                    category_name: "ERM_ITEM_REPORTS_METRICS",
401
                    description: "Limit exceeded",
402
                    image_url: null,
403
                    opac_description: null,
404
                    value: "Limit_Exceeded",
405
                },
406
                {
407
                    authorised_value_id: 105,
408
                    category_name: "ERM_ITEM_REPORTS_METRICS",
409
                    description: "No license",
410
                    image_url: null,
411
                    opac_description: null,
412
                    value: "No_License",
413
                },
414
            ],
415
            category_name: "ERM_ITEM_REPORTS_METRICS",
416
            is_system: true,
417
        },
418
        {
419
            authorised_values: [
420
                {
421
                    authorised_value_id: 22,
422
                    category_name: "ERM_LICENSE_STATUS",
423
                    description: "In negotiation",
424
                    image_url: null,
425
                    opac_description: null,
426
                    value: "in_negotiation",
427
                },
428
                {
429
                    authorised_value_id: 23,
430
                    category_name: "ERM_LICENSE_STATUS",
431
                    description: "Not yet active",
432
                    image_url: null,
433
                    opac_description: null,
434
                    value: "not_yet_active",
435
                },
436
                {
437
                    authorised_value_id: 24,
438
                    category_name: "ERM_LICENSE_STATUS",
439
                    description: "Active",
440
                    image_url: null,
441
                    opac_description: null,
442
                    value: "active",
443
                },
444
                {
445
                    authorised_value_id: 25,
446
                    category_name: "ERM_LICENSE_STATUS",
447
                    description: "Rejected",
448
                    image_url: null,
449
                    opac_description: null,
450
                    value: "rejected",
451
                },
452
                {
453
                    authorised_value_id: 26,
454
                    category_name: "ERM_LICENSE_STATUS",
455
                    description: "Expired",
456
                    image_url: null,
457
                    opac_description: null,
458
                    value: "expired",
459
                },
460
            ],
461
            category_name: "ERM_LICENSE_STATUS",
462
            is_system: true,
463
        },
464
        {
465
            authorised_values: [
466
                {
467
                    authorised_value_id: 18,
468
                    category_name: "ERM_LICENSE_TYPE",
469
                    description: "Local",
470
                    image_url: null,
471
                    opac_description: null,
472
                    value: "local",
473
                },
474
                {
475
                    authorised_value_id: 19,
476
                    category_name: "ERM_LICENSE_TYPE",
477
                    description: "Consortial",
478
                    image_url: null,
479
                    opac_description: null,
480
                    value: "consortial",
481
                },
482
                {
483
                    authorised_value_id: 20,
484
                    category_name: "ERM_LICENSE_TYPE",
485
                    description: "National",
486
                    image_url: null,
487
                    opac_description: null,
488
                    value: "national",
489
                },
490
                {
491
                    authorised_value_id: 21,
492
                    category_name: "ERM_LICENSE_TYPE",
493
                    description: "Alliance",
494
                    image_url: null,
495
                    opac_description: null,
496
                    value: "alliance",
497
                },
498
            ],
499
            category_name: "ERM_LICENSE_TYPE",
500
            is_system: true,
501
        },
502
        {
503
            authorised_values: [
504
                {
505
                    authorised_value_id: 34,
506
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
507
                    description: "Aggregated full",
508
                    image_url: null,
509
                    opac_description: null,
510
                    value: "AggregatedFullText",
511
                },
512
                {
513
                    authorised_value_id: 35,
514
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
515
                    description: "Abstract and index",
516
                    image_url: null,
517
                    opac_description: null,
518
                    value: "AbstractAndIndex",
519
                },
520
                {
521
                    authorised_value_id: 36,
522
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
523
                    description: "E-book",
524
                    image_url: null,
525
                    opac_description: null,
526
                    value: "EBook",
527
                },
528
                {
529
                    authorised_value_id: 37,
530
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
531
                    description: "Mixed content",
532
                    image_url: null,
533
                    opac_description: null,
534
                    value: "MixedContent",
535
                },
536
                {
537
                    authorised_value_id: 38,
538
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
539
                    description: "E-journal",
540
                    image_url: null,
541
                    opac_description: null,
542
                    value: "EJournal",
543
                },
544
                {
545
                    authorised_value_id: 39,
546
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
547
                    description: "Online reference",
548
                    image_url: null,
549
                    opac_description: null,
550
                    value: "OnlineReference",
551
                },
552
                {
553
                    authorised_value_id: 40,
554
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
555
                    description: "Print",
556
                    image_url: null,
557
                    opac_description: null,
558
                    value: "Print",
559
                },
560
                {
561
                    authorised_value_id: 41,
562
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
563
                    description: "Streaming media",
564
                    image_url: null,
565
                    opac_description: null,
566
                    value: "StreamingMedia",
567
                },
568
                {
569
                    authorised_value_id: 42,
570
                    category_name: "ERM_PACKAGE_CONTENT_TYPE",
571
                    description: "Unknown",
572
                    image_url: null,
573
                    opac_description: null,
574
                    value: "Unknown",
575
                },
576
            ],
577
            category_name: "ERM_PACKAGE_CONTENT_TYPE",
578
            is_system: true,
579
        },
580
        {
581
            authorised_values: [
582
                {
583
                    authorised_value_id: 32,
584
                    category_name: "ERM_PACKAGE_TYPE",
585
                    description: "Local",
586
                    image_url: null,
587
                    opac_description: null,
588
                    value: "local",
589
                },
590
                {
591
                    authorised_value_id: 33,
592
                    category_name: "ERM_PACKAGE_TYPE",
593
                    description: "Complete",
594
                    image_url: null,
595
                    opac_description: null,
596
                    value: "complete",
597
                },
598
            ],
599
            category_name: "ERM_PACKAGE_TYPE",
600
            is_system: true,
601
        },
602
        {
603
            authorised_values: [
604
                {
605
                    authorised_value_id: 74,
606
                    category_name: "ERM_PLATFORM_REPORTS_METRICS",
607
                    description: "Searches platform",
608
                    image_url: null,
609
                    opac_description: null,
610
                    value: "Searches_Platform",
611
                },
612
                {
613
                    authorised_value_id: 75,
614
                    category_name: "ERM_PLATFORM_REPORTS_METRICS",
615
                    description: "Total item investigations",
616
                    image_url: null,
617
                    opac_description: null,
618
                    value: "Total_Item_Investigations",
619
                },
620
                {
621
                    authorised_value_id: 76,
622
                    category_name: "ERM_PLATFORM_REPORTS_METRICS",
623
                    description: "Total item requests",
624
                    image_url: null,
625
                    opac_description: null,
626
                    value: "Total_Item_Requests",
627
                },
628
                {
629
                    authorised_value_id: 77,
630
                    category_name: "ERM_PLATFORM_REPORTS_METRICS",
631
                    description: "Unique item investigations",
632
                    image_url: null,
633
                    opac_description: null,
634
                    value: "Unique_Item_Investigations",
635
                },
636
                {
637
                    authorised_value_id: 78,
638
                    category_name: "ERM_PLATFORM_REPORTS_METRICS",
639
                    description: "Unique item requests",
640
                    image_url: null,
641
                    opac_description: null,
642
                    value: "Unique_Item_Requests",
643
                },
644
                {
645
                    authorised_value_id: 79,
646
                    category_name: "ERM_PLATFORM_REPORTS_METRICS",
647
                    description: "Unique title investigations",
648
                    image_url: null,
649
                    opac_description: null,
650
                    value: "Unique_Title_Investigations",
651
                },
652
                {
653
                    authorised_value_id: 80,
654
                    category_name: "ERM_PLATFORM_REPORTS_METRICS",
655
                    description: "Unique title requests",
656
                    image_url: null,
657
                    opac_description: null,
658
                    value: "Unique_Title_Requests",
659
                },
660
            ],
661
            category_name: "ERM_PLATFORM_REPORTS_METRICS",
662
            is_system: true,
663
        },
664
        {
665
            authorised_values: [
666
                {
667
                    authorised_value_id: 58,
668
                    category_name: "ERM_REPORT_TYPES",
669
                    description: "PR - Platform master report",
670
                    image_url: null,
671
                    opac_description: null,
672
                    value: "PR",
673
                },
674
                {
675
                    authorised_value_id: 59,
676
                    category_name: "ERM_REPORT_TYPES",
677
                    description: "PR_P1 - Platform usage",
678
                    image_url: null,
679
                    opac_description: null,
680
                    value: "PR_P1",
681
                },
682
                {
683
                    authorised_value_id: 60,
684
                    category_name: "ERM_REPORT_TYPES",
685
                    description: "DR - Database master report",
686
                    image_url: null,
687
                    opac_description: null,
688
                    value: "DR",
689
                },
690
                {
691
                    authorised_value_id: 61,
692
                    category_name: "ERM_REPORT_TYPES",
693
                    description: "DR_D1 - Database search and item usage",
694
                    image_url: null,
695
                    opac_description: null,
696
                    value: "DR_D1",
697
                },
698
                {
699
                    authorised_value_id: 62,
700
                    category_name: "ERM_REPORT_TYPES",
701
                    description: "DR_D2 - Database access denied",
702
                    image_url: null,
703
                    opac_description: null,
704
                    value: "DR_D2",
705
                },
706
                {
707
                    authorised_value_id: 63,
708
                    category_name: "ERM_REPORT_TYPES",
709
                    description: "TR - Title master report",
710
                    image_url: null,
711
                    opac_description: null,
712
                    value: "TR",
713
                },
714
                {
715
                    authorised_value_id: 64,
716
                    category_name: "ERM_REPORT_TYPES",
717
                    description: "TR_B1 - Book requests (excluding OA_Gold)",
718
                    image_url: null,
719
                    opac_description: null,
720
                    value: "TR_B1",
721
                },
722
                {
723
                    authorised_value_id: 65,
724
                    category_name: "ERM_REPORT_TYPES",
725
                    description: "TR_B2 - Book access denied",
726
                    image_url: null,
727
                    opac_description: null,
728
                    value: "TR_B2",
729
                },
730
                {
731
                    authorised_value_id: 66,
732
                    category_name: "ERM_REPORT_TYPES",
733
                    description: "TR_B3 - Book usage by access type",
734
                    image_url: null,
735
                    opac_description: null,
736
                    value: "TR_B3",
737
                },
738
                {
739
                    authorised_value_id: 67,
740
                    category_name: "ERM_REPORT_TYPES",
741
                    description: "TR_J1 - Journal requests (excluding OA_Gold)",
742
                    image_url: null,
743
                    opac_description: null,
744
                    value: "TR_J1",
745
                },
746
                {
747
                    authorised_value_id: 68,
748
                    category_name: "ERM_REPORT_TYPES",
749
                    description: "TR_J2 - Journal access denied",
750
                    image_url: null,
751
                    opac_description: null,
752
                    value: "TR_J2",
753
                },
754
                {
755
                    authorised_value_id: 69,
756
                    category_name: "ERM_REPORT_TYPES",
757
                    description: "TR_J3 - Journal usage by access type",
758
                    image_url: null,
759
                    opac_description: null,
760
                    value: "TR_J3",
761
                },
762
                {
763
                    authorised_value_id: 70,
764
                    category_name: "ERM_REPORT_TYPES",
765
                    description:
766
                        "TR_J4 - Journal requests by YOP(excluding OA_Gold)",
767
                    image_url: null,
768
                    opac_description: null,
769
                    value: "TR_J4",
770
                },
771
                {
772
                    authorised_value_id: 71,
773
                    category_name: "ERM_REPORT_TYPES",
774
                    description: "IR - Item master report",
775
                    image_url: null,
776
                    opac_description: null,
777
                    value: "IR",
778
                },
779
                {
780
                    authorised_value_id: 72,
781
                    category_name: "ERM_REPORT_TYPES",
782
                    description: "IR_A1 - Journal article requests",
783
                    image_url: null,
784
                    opac_description: null,
785
                    value: "IR_A1",
786
                },
787
                {
788
                    authorised_value_id: 73,
789
                    category_name: "ERM_REPORT_TYPES",
790
                    description: "IR_M1 - Multimedia item requests",
791
                    image_url: null,
792
                    opac_description: null,
793
                    value: "IR_M1",
794
                },
795
            ],
796
            category_name: "ERM_REPORT_TYPES",
797
            is_system: true,
798
        },
799
        {
800
            authorised_values: [
801
                {
802
                    authorised_value_id: 43,
803
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
804
                    description: "Journal",
805
                    image_url: null,
806
                    opac_description: null,
807
                    value: "journal",
808
                },
809
                {
810
                    authorised_value_id: 44,
811
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
812
                    description: "Newsletter",
813
                    image_url: null,
814
                    opac_description: null,
815
                    value: "newsletter",
816
                },
817
                {
818
                    authorised_value_id: 45,
819
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
820
                    description: "Report",
821
                    image_url: null,
822
                    opac_description: null,
823
                    value: "report",
824
                },
825
                {
826
                    authorised_value_id: 46,
827
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
828
                    description: "Proceedings",
829
                    image_url: null,
830
                    opac_description: null,
831
                    value: "proceedings",
832
                },
833
                {
834
                    authorised_value_id: 47,
835
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
836
                    description: "Website",
837
                    image_url: null,
838
                    opac_description: null,
839
                    value: "website",
840
                },
841
                {
842
                    authorised_value_id: 48,
843
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
844
                    description: "Newspaper",
845
                    image_url: null,
846
                    opac_description: null,
847
                    value: "newspaper",
848
                },
849
                {
850
                    authorised_value_id: 49,
851
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
852
                    description: "Unspecified",
853
                    image_url: null,
854
                    opac_description: null,
855
                    value: "unspecified",
856
                },
857
                {
858
                    authorised_value_id: 50,
859
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
860
                    description: "Book",
861
                    image_url: null,
862
                    opac_description: null,
863
                    value: "book",
864
                },
865
                {
866
                    authorised_value_id: 51,
867
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
868
                    description: "E-book",
869
                    image_url: null,
870
                    opac_description: null,
871
                    value: "ebook",
872
                },
873
                {
874
                    authorised_value_id: 52,
875
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
876
                    description: "Bookseries",
877
                    image_url: null,
878
                    opac_description: null,
879
                    value: "bookseries",
880
                },
881
                {
882
                    authorised_value_id: 53,
883
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
884
                    description: "Database",
885
                    image_url: null,
886
                    opac_description: null,
887
                    value: "database",
888
                },
889
                {
890
                    authorised_value_id: 54,
891
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
892
                    description: "Thesis/Dissertation",
893
                    image_url: null,
894
                    opac_description: null,
895
                    value: "thesisdissertation",
896
                },
897
                {
898
                    authorised_value_id: 55,
899
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
900
                    description: "Streaming audio",
901
                    image_url: null,
902
                    opac_description: null,
903
                    value: "streamingaudio",
904
                },
905
                {
906
                    authorised_value_id: 56,
907
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
908
                    description: "Streaming video",
909
                    image_url: null,
910
                    opac_description: null,
911
                    value: "streamingvideo",
912
                },
913
                {
914
                    authorised_value_id: 57,
915
                    category_name: "ERM_TITLE_PUBLICATION_TYPE",
916
                    description: "Audiobook",
917
                    image_url: null,
918
                    opac_description: null,
919
                    value: "audiobook",
920
                },
921
            ],
922
            category_name: "ERM_TITLE_PUBLICATION_TYPE",
923
            is_system: true,
924
        },
925
        {
926
            authorised_values: [
927
                {
928
                    authorised_value_id: 92,
929
                    category_name: "ERM_TITLE_REPORTS_METRICS",
930
                    description: "Total item investigations",
931
                    image_url: null,
932
                    opac_description: null,
933
                    value: "Total_Item_Investigations",
934
                },
935
                {
936
                    authorised_value_id: 93,
937
                    category_name: "ERM_TITLE_REPORTS_METRICS",
938
                    description: "Total item requests",
939
                    image_url: null,
940
                    opac_description: null,
941
                    value: "Total_Item_Requests",
942
                },
943
                {
944
                    authorised_value_id: 94,
945
                    category_name: "ERM_TITLE_REPORTS_METRICS",
946
                    description: "Unique item investigations",
947
                    image_url: null,
948
                    opac_description: null,
949
                    value: "Unique_Item_Investigations",
950
                },
951
                {
952
                    authorised_value_id: 95,
953
                    category_name: "ERM_TITLE_REPORTS_METRICS",
954
                    description: "Unique item requests",
955
                    image_url: null,
956
                    opac_description: null,
957
                    value: "Unique_Item_Requests",
958
                },
959
                {
960
                    authorised_value_id: 96,
961
                    category_name: "ERM_TITLE_REPORTS_METRICS",
962
                    description: "Unique title investigations",
963
                    image_url: null,
964
                    opac_description: null,
965
                    value: "Unique_Title_Investigations",
966
                },
967
                {
968
                    authorised_value_id: 97,
969
                    category_name: "ERM_TITLE_REPORTS_METRICS",
970
                    description: "Unique title requests",
971
                    image_url: null,
972
                    opac_description: null,
973
                    value: "Unique_Title_Requests",
974
                },
975
                {
976
                    authorised_value_id: 98,
977
                    category_name: "ERM_TITLE_REPORTS_METRICS",
978
                    description: "Limit exceeded",
979
                    image_url: null,
980
                    opac_description: null,
981
                    value: "Limit_Exceeded",
982
                },
983
                {
984
                    authorised_value_id: 99,
985
                    category_name: "ERM_TITLE_REPORTS_METRICS",
986
                    description: "No license",
987
                    image_url: null,
988
                    opac_description: null,
989
                    value: "No_License",
990
                },
991
            ],
992
            category_name: "ERM_TITLE_REPORTS_METRICS",
993
            is_system: true,
994
        },
995
        {
996
            authorised_values: [
997
                {
998
                    authorised_value_id: 16,
999
                    category_name: "ERM_USER_ROLES",
1000
                    description: "ERM librarian",
1001
                    image_url: null,
1002
                    opac_description: null,
1003
                    value: "librarian",
1004
                },
1005
                {
1006
                    authorised_value_id: 17,
1007
                    category_name: "ERM_USER_ROLES",
1008
                    description: "Subject specialist",
1009
                    image_url: null,
1010
                    opac_description: null,
1011
                    value: "subject_specialist",
1012
                },
1013
            ],
1014
            category_name: "ERM_USER_ROLES",
1015
            is_system: true,
1016
        },
1017
    ];
1018
}
1019
134
cy.get_licenses_to_relate = () => {
1020
cy.get_licenses_to_relate = () => {
135
    return [
1021
    return [
136
        {
1022
        {
137
- 

Return to bug 34920