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

(-)a/C4/Indicators.pm (+863 lines)
Line 0 Link Here
1
package C4::Indicators;
2
3
# Copyright 2010-2011 Spanish Minister of Culture
4
#
5
# This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it under the
8
# terms of the GNU General Public License as published by the Free Software
9
# Foundation; either version 2 of the License, or (at your option) any later
10
# version.
11
#
12
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License along
17
# with Koha; if not, write to the Free Software Foundation, Inc.,
18
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20
use strict;
21
use warnings;
22
use C4::Context;
23
use C4::Debug;
24
25
26
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
27
28
BEGIN {
29
    $VERSION = 3.02;    # set version for version checking
30
    require Exporter;
31
    @ISA    = qw(Exporter);
32
    @EXPORT = qw(
33
      &GetFrameworksInd
34
      &GetAuthtypeInd
35
      &CloneIndicatorsFrameworkAuth
36
      &GetIndicatorsFrameworkAuth
37
      &DelIndicatorsFrameworkAuth
38
      &HasFieldMarcInd
39
      &GetDataFieldMarc
40
      &GetIndicator
41
      &AddIndicator
42
      &DelIndicator
43
      &AddIndicatorValue
44
      &DelIndicatorValue
45
      &ModIndicatorValue
46
      &ModIndicatorDesc
47
      &GetValuesIndicator
48
      &GetValuesIndicatorFrameWorkAuth
49
      &GetLanguagesIndicators
50
      &binarySearch
51
      &CheckValueIndicatorsSub
52
    );
53
}
54
55
=head1 NAME
56
57
C4::Indicators - Indicators Module Functions
58
59
=head1 SYNOPSIS
60
61
  use C4::Indicators;
62
63
=head1 DESCRIPTION
64
65
Module to manage indicators on intranet cataloguing section
66
67
Module to manage indicators on the intranet cataloguing section
68
applying the rules of MARC21 according to the Library of Congress
69
http://www.loc.gov/marc/bibliographic/ecbdhome.html
70
71
Functions for handling MARC21 indicators on cataloguing.
72
73
74
=head1 SUBROUTINES
75
76
77
78
79
=head2 GetFrameworksInd
80
81
Returns information about existing frameworks with indicators
82
83
=cut
84
85
sub GetFrameworksInd
86
{
87
88
    my $frameworkcode = shift;
89
90
    my @frameworks;
91
    my $dbh = C4::Context->dbh;
92
    if ($dbh) {
93
        eval {
94
            my $sth = $dbh->prepare("SELECT b.* FROM biblio_framework b , marc_indicators i WHERE b.frameworkcode<>? AND b.frameworkcode=i.frameworkcode AND i.authtypecode IS NULL GROUP BY frameworkcode");
95
            $sth->execute($frameworkcode);
96
            while ( my $iter = $sth->fetchrow_hashref ) {
97
                push @frameworks, $iter;
98
            }
99
        };
100
    }
101
    return ( \@frameworks );
102
}#GetFrameworksInd
103
104
105
=head2 GetAuthtypeInd
106
107
Returns information about existing Auth type with indicators
108
109
=cut
110
111
sub GetAuthtypeInd
112
{
113
114
    my $authtypecode = shift;
115
116
    my @authtypes;
117
    my $dbh = C4::Context->dbh;
118
    if ($dbh) {
119
        eval {
120
            my $sth = $dbh->prepare("SELECT a.* FROM auth_types a , marc_indicators i WHERE a.authtypecode<>? AND a.authtypecode=i.authtypecode AND i.frameworkcode IS NULL GROUP BY authtypecode");
121
            $sth->execute($authtypecode);
122
            while ( my $iter = $sth->fetchrow_hashref ) {
123
                push @authtypes, $iter;
124
            }
125
        };
126
    }
127
    return ( \@authtypes );
128
}#GetAuthtypeInd
129
130
131
132
=head2 CloneIndicatorsFrameworkAuth
133
134
Clone all the indicators from one framework/authtype to another one
135
136
return :
137
the new frameworkcode
138
139
=cut
140
141
142
sub CloneIndicatorsFrameworkAuth
143
{
144
    my ($codeSource, $codeDest, $type) = @_;
145
146
    my $indicators = GetIndicatorsFrameworkAuth($codeSource, $type);
147
    my $hashRefSource;
148
    my ($id_indicator, $id_indicator_value);
149
    for $hashRefSource (@$indicators) {
150
        if (GetDataFieldMarc($hashRefSource->{tagfield}, $codeDest, $type)) {
151
            $id_indicator = AddIndicator($hashRefSource->{tagfield}, $codeDest, $type);
152
            if ($id_indicator) {
153
                my ($id_indicator_old, $data) = GetValuesIndicator($hashRefSource->{id_indicator}, $hashRefSource->{tagfield}, $codeSource, $type);
154
                for (@$data) {
155
                    $id_indicator_value = AddIndicatorValue($id_indicator, $hashRefSource->{tagfield}, $codeDest, $type, $_->{ind}, $_->{ind_value}, $_->{ind_desc}, $_->{lang});
156
                }
157
            }
158
        }
159
    }
160
    return $codeDest;
161
}#CloneIndicatorsFrameworkAuth
162
163
164
165
=head2 GetIndicatorsFrameworkAuth
166
167
Get all the indicators from a framework/authtype
168
169
return :
170
an array of hash data
171
172
=cut
173
174
175
sub GetIndicatorsFrameworkAuth
176
{
177
    my ($code, $type) = @_;
178
179
    my @data;
180
    my $dbh = C4::Context->dbh;
181
    if ($dbh) {
182
        eval {
183
            my $query = ($type eq 'biblio')?qq|SELECT id_indicator, tagfield FROM marc_indicators WHERE frameworkcode=?|:qq|SELECT id_indicator, tagfield FROM marc_indicators WHERE authtypecode=?|;
184
            my $sth = $dbh->prepare($query);
185
            $sth->execute($code);
186
            my $hashRef;
187
            while ($hashRef = $sth->fetchrow_hashref) {
188
                push @data, $hashRef;
189
            }
190
        };
191
        if ($@) {
192
            $debug and warn "Error GetIndicatorsFrameworkAuth $@\n";
193
        }
194
    }
195
    return \@data;
196
}#GetIndicatorsFrameworkAuth
197
198
199
200
=head2 DelIndicatorsFrameworkAuth
201
202
Delete indicators in a specific framework/authtype
203
204
return :
205
the success of the operation
206
207
=cut
208
209
210
sub DelIndicatorsFrameworkAuth
211
{
212
    my ($code, $type) = @_;
213
214
    my $dbh = C4::Context->dbh;
215
    if ($dbh) {
216
        eval {
217
            my $query = ($type eq 'auth')?qq|DELETE FROM marc_indicators
218
                WHERE authtypecode=?|:qq|DELETE FROM marc_indicators
219
                WHERE frameworkcode=?|;
220
            my $sth = $dbh->prepare($query);
221
            $sth->execute($code);
222
        };
223
        if ($@) {
224
            $debug and warn "Error DelIndicatorsFrameworkAuth $@\n";
225
        } else {
226
            return 1;
227
        }
228
    }
229
    return 0;
230
}#DelIndicatorsFrameworkAuth
231
232
233
234
=head2 HasFieldMarc
235
236
Know if has any tag structure a specific framework
237
238
return :
239
number of marc tag fields
240
241
=cut
242
243
244
sub HasFieldMarcInd
245
{
246
    my ($code, $type) = @_;
247
248
    my $ret = 0;
249
    my $dbh = C4::Context->dbh;
250
    if ($dbh) {
251
        eval {
252
            my $query = ($type eq 'biblio')?qq|SELECT COUNT(*) FROM marc_tag_structure
253
                WHERE frameworkcode=? AND tagfield NOT LIKE '00%'|:qq|SELECT COUNT(*) FROM auth_tag_structure
254
                WHERE authtypecode=? AND tagfield NOT LIKE '00%'|;
255
            my $sth = $dbh->prepare($query);
256
            $sth->execute($code);
257
            ($ret) = $sth->fetchrow;
258
259
        };
260
        if ($@) {
261
            $debug and warn "Error HasFieldMarc $@\n";
262
        }
263
    }
264
    return $ret;
265
}#HasFieldMarcInd
266
267
268
269
=head2 GetDataFieldMarc
270
271
Get the data from marc_tag_structure/auth_tag_structure for a field in a specific framework/authtype
272
273
return :
274
the data hash for the datafield
275
276
=cut
277
278
279
sub GetDataFieldMarc
280
{
281
    my ($tagfield, $code, $type) = @_;
282
283
    my $data = {};
284
    my $dbh = C4::Context->dbh;
285
    if ($dbh) {
286
        eval {
287
            my $query = ($type eq 'auth')?qq|SELECT tagfield,liblibrarian,libopac,mandatory,repeatable
288
                            FROM auth_tag_structure
289
                            WHERE authtypecode=? AND tagfield=?|:qq|SELECT tagfield,liblibrarian,libopac,mandatory,repeatable
290
                            FROM marc_tag_structure
291
                            WHERE frameworkcode=? AND tagfield=?|;
292
            my $sth = $dbh->prepare($query);
293
            $sth->execute($code, $tagfield);
294
            $data = $sth->fetchrow_hashref;
295
        };
296
        if ($@) {
297
            $debug and warn "Error GetDataFieldMarc $@\n";
298
        }
299
    }
300
    return $data;
301
}#GetDataFieldMarc
302
303
304
305
=head2 GetIndicator
306
307
Get the indicator id from a field in a specific framework/authtype
308
309
return :
310
the id of this indicator
311
312
=cut
313
314
315
sub GetIndicator
316
{
317
    my ($tagfield, $code, $type) = @_;
318
319
    my $id_indicator;
320
    my $dbh = C4::Context->dbh;
321
    if ($dbh) {
322
        eval {
323
            my $query;
324
            my $sth;
325
            if ($code) {
326
                $query = ($type eq 'auth')?qq|SELECT id_indicator
327
                    FROM marc_indicators
328
                    WHERE tagfield=? AND authtypecode=?|:qq|SELECT id_indicator
329
                    FROM marc_indicators
330
                    WHERE tagfield=? AND frameworkcode=?|;
331
                $sth = $dbh->prepare($query);
332
                $sth->execute($tagfield, $code);
333
            } else {
334
                $query = ($type eq 'auth')?qq|SELECT id_indicator
335
                    FROM marc_indicators
336
                    WHERE tagfield=? AND authtypecode=''|:qq|SELECT id_indicator
337
                    FROM marc_indicators
338
                    WHERE tagfield=? AND frameworkcode=''|;
339
                $sth = $dbh->prepare($query);
340
                $sth->execute($tagfield);
341
            }
342
            ($id_indicator) = $sth->fetchrow;
343
        };
344
        if ($@) {
345
            $debug and warn "Error GetIndicator $@\n";
346
        }
347
    }
348
    return $id_indicator;
349
}#GetIndicator
350
351
352
353
=head2 AddIndicator
354
355
Adds a new indicator to a field in a specific framework/authtype
356
357
return :
358
the id of this new indicator
359
360
=cut
361
362
363
sub AddIndicator
364
{
365
    my ($tagfield, $code, $type) = @_;
366
367
    my $id_indicator;
368
    my $dbh = C4::Context->dbh;
369
    if ($dbh) {
370
        eval {
371
            my $query = ($type eq 'auth')?qq|INSERT INTO marc_indicators
372
                (tagfield,authtypecode) VALUES (?,?)|:qq|INSERT INTO marc_indicators
373
                (tagfield,frameworkcode) VALUES (?,?)|;
374
            my $sth = $dbh->prepare($query);
375
            $sth->execute($tagfield, $code);
376
            if ($sth->rows > 0) {
377
                $id_indicator = $dbh->{'mysql_insertid'};
378
            }
379
        };
380
        if ($@) {
381
            $debug and warn "Error AddIndicator $@\n";
382
        }
383
    }
384
    return $id_indicator;
385
}#AddIndicator
386
387
388
389
=head2 DelIndicator
390
391
Delete a new indicator to a field in a specific framework/authtype
392
393
return :
394
the success of the operation
395
396
=cut
397
398
399
sub DelIndicator
400
{
401
    my ($id_indicator, $tagfield, $code, $type) = @_;
402
403
    my $ret;
404
    my $dbh = C4::Context->dbh;
405
    if ($dbh) {
406
        eval {
407
            my $query;
408
            my @arrParams;
409
            if ($id_indicator){
410
                $query = qq|DELETE FROM marc_indicators
411
                WHERE id_indicator=?|;
412
                push @arrParams, $id_indicator;
413
            } else {
414
                $query = ($type eq 'biblio')?qq|DELETE FROM marc_indicators
415
                WHERE tagfield=? AND frameworkcode=?|:qq|DELETE FROM marc_indicators
416
                WHERE tagfield=? AND authtypecode=?|;
417
                @arrParams = ($tagfield, $code);
418
            }
419
            my $sth = $dbh->prepare($query);
420
            $sth->execute(@arrParams);
421
            $ret = 1;
422
        };
423
        if ($@) {
424
            $debug and warn "Error DelIndicator $@\n";
425
        }
426
    }
427
    return $ret;
428
}#DelIndicator
429
430
431
432
=head2 AddIndicatorValue
433
434
Adds a new indicator value and (if defined) description to a field in a specific framework/authtype
435
436
return :
437
the id of this new indicator value
438
439
=cut
440
441
442
sub AddIndicatorValue
443
{
444
    my ($id_indicator, $tagfield, $code, $type, $index, $value, $desc, $lang) = @_;
445
446
    my $id_indicator_value;
447
    my $dbh = C4::Context->dbh;
448
    if ($dbh) {
449
        $id_indicator = GetIndicator($tagfield, $code, $type) unless ($id_indicator);
450
        $id_indicator = AddIndicator($tagfield, $code, $type) unless ($id_indicator);
451
        eval {
452
            my $query = qq|INSERT INTO marc_indicators_value
453
                (id_indicator,ind,ind_value) VALUES (?,?,?)|;
454
            my $sth = $dbh->prepare($query);
455
            $sth->execute($id_indicator, $index, $value);
456
            if ($sth->rows > 0) {
457
                $id_indicator_value = $dbh->{'mysql_insertid'};
458
                if ($id_indicator_value && $desc) {
459
                    $query = qq|INSERT INTO marc_indicators_desc
460
                        (id_indicator_value,lang,ind_desc) VALUES (?,?,?)|;
461
                    $lang = 'en' unless ($lang);
462
                    my $sth2 = $dbh->prepare($query);
463
                    $sth2->execute($id_indicator_value, $lang, $desc);
464
                }
465
            }
466
        };
467
        if ($@) {
468
            #print $@;
469
            $debug and warn "Error AddIndicatorValue $@\n";
470
        }
471
    }
472
    return $id_indicator_value;
473
}#AddIndicatorValue
474
475
476
477
=head2 DelIndicatorValue
478
479
Delete a new indicator value in a framework field
480
481
return :
482
the success of the operation
483
484
=cut
485
486
487
sub DelIndicatorValue
488
{
489
    my ($id_indicator_value) = @_;
490
491
    my $ret;
492
    my $dbh = C4::Context->dbh;
493
    if ($dbh) {
494
        eval {
495
            my $query = qq|DELETE FROM marc_indicators_value
496
                WHERE id_indicator_value=?|;
497
            my $sth = $dbh->prepare($query);
498
            $sth->execute($id_indicator_value);
499
            $ret = 1;
500
        };
501
        if ($@) {
502
            $debug and warn "Error DelIndicatorValue $@\n";
503
        }
504
    }
505
    return $ret;
506
}#DelIndicatorValue
507
508
509
510
=head2 ModIndicatorValue
511
512
Modify a indicator value in a framework field
513
514
return :
515
the success of the operation
516
517
=cut
518
519
520
sub ModIndicatorValue
521
{
522
    my ($id_indicator_value, $value, $desc, $lang, $ind) = @_;
523
524
    my $ret;
525
    my $dbh = C4::Context->dbh;
526
    if ($dbh) {
527
        eval {
528
            my $query = qq|UPDATE marc_indicators_value
529
                SET ind_value=?, ind=?
530
                WHERE id_indicator_value=?|;
531
            my $sth = $dbh->prepare($query);
532
            $sth->execute($value, $ind, $id_indicator_value);
533
            if ($desc) {
534
                $ret = ModIndicatorDesc($id_indicator_value, $desc, $lang);
535
            } else {
536
                $ret = 1;
537
            }
538
        };
539
        if ($@) {
540
            $debug and warn "Error ModIndicatorValue $@\n";
541
        }
542
    }
543
    return $ret;
544
}#ModIndicatorValue
545
546
547
548
=head2 ModIndicatorDesc
549
550
Modify a indicator description in a framework field and language
551
552
return :
553
the success of the operation
554
555
=cut
556
557
558
sub ModIndicatorDesc
559
{
560
    my ($id_indicator_value, $desc, $lang) = @_;
561
562
    my $ret;
563
    my $dbh = C4::Context->dbh;
564
    if ($dbh) {
565
        eval {
566
            my $query = qq|SELECT COUNT(*) FROM marc_indicators_desc
567
                WHERE id_indicator_value=? AND lang=?|;
568
            my $sth = $dbh->prepare($query);
569
            $sth->execute($id_indicator_value, $lang);
570
            my ($num) = $sth->fetchrow;
571
            $sth->finish;
572
            if ($num) {
573
                $query = qq|UPDATE marc_indicators_desc
574
                SET ind_desc=?
575
                WHERE id_indicator_value=? AND lang=?|;
576
                $sth = $dbh->prepare($query);
577
                $sth->execute($desc, $id_indicator_value, $lang);
578
            } else {
579
                $query = qq|INSERT INTO marc_indicators_desc
580
                        (id_indicator_value,lang,ind_desc) VALUES (?,?,?)|;
581
                $sth = $dbh->prepare($query);
582
                $sth->execute($id_indicator_value, $lang, $desc);
583
            }
584
            $ret = 1;
585
        };
586
        if ($@) {
587
            $debug and warn "Error ModIndicatorDesc $@\n";
588
        }
589
    }
590
    return $ret;
591
}#ModIndicatorDesc
592
593
594
595
=head2 GetValuesIndicator
596
597
Get distinct values and descriptions from framework/authtype field
598
599
return :
600
the id of the indicator and an array structure with the data required
601
602
=cut
603
604
605
sub GetValuesIndicator
606
{
607
    my ($id_indicator, $tagfield, $code, $type, $lang) = @_;
608
609
    my @data;
610
    my $dbh = C4::Context->dbh;
611
    if ($dbh) {
612
        $id_indicator = GetIndicator($tagfield, $code, $type) unless ($id_indicator);
613
        if ($id_indicator) {
614
            eval {
615
                my $query;
616
                my $sth;
617
                if ($lang) {
618
                    $query = qq|(SELECT v.id_indicator_value, v.ind, v.ind_value, d.ind_desc, d.lang
619
                            FROM marc_indicators_value v, marc_indicators_desc d
620
                            WHERE v.id_indicator=? AND d.id_indicator_value=v.id_indicator_value AND d.lang=?
621
                            )
622
                    UNION
623
                        (SELECT v.id_indicator_value, v.ind, v.ind_value, NULL AS ind_desc, NULL AS lang
624
                            FROM marc_indicators_value v
625
                            WHERE v.id_indicator=? AND NOT EXISTS (SELECT d.* FROM marc_indicators_desc d WHERE d.id_indicator_value=v.id_indicator_value))
626
                        ORDER BY ind, ind_value|;
627
                    $sth = $dbh->prepare($query);
628
                    $sth->execute($id_indicator, $lang, $id_indicator);
629
                } else {
630
                    $query = qq|SELECT v.id_indicator_value, v.ind, v.ind_value, d.ind_desc, d.lang
631
                        FROM marc_indicators_value v
632
                        LEFT JOIN marc_indicators_desc d ON d.id_indicator_value=v.id_indicator_value
633
                        WHERE v.id_indicator=?
634
                        ORDER BY v.ind, v.ind_value|;
635
                    $sth = $dbh->prepare($query);
636
                    $sth->execute($id_indicator);
637
                }
638
                while (my $hashRef = $sth->fetchrow_hashref) {
639
                    push @data, $hashRef;
640
                }
641
            };
642
            if ($@) {
643
                $debug and warn "Error GetValuesIndicator $@\n";
644
            }
645
        }
646
    }
647
    return ($id_indicator, \@data);
648
}#GetValuesIndicator
649
650
651
652
=head2 GetValuesIndicatorFrameWorkAuth
653
654
Get distinct values and descriptions from framework/authtype template
655
656
return :
657
the frameworkcode/authtypecode and an hash structure with the data required
658
659
=cut
660
661
662
sub GetValuesIndicatorFrameWorkAuth
663
{
664
    my ($code, $type, $tagfieldsArrRef, $lang) = @_;
665
666
    my %data;
667
    my $dbh = C4::Context->dbh;
668
    if ($dbh) {
669
        unless ($tagfieldsArrRef && @$tagfieldsArrRef) {
670
            $tagfieldsArrRef = [];
671
            eval {
672
                my $query;
673
                my $sth;
674
                if ($code) {
675
                    $query = ($type eq 'auth')?qq|SELECT tagfield FROM auth_tag_structure
676
                        WHERE tagfield NOT LIKE '00%' AND authtypecode=?|:qq|SELECT tagfield FROM marc_tag_structure
677
                        WHERE tagfield NOT LIKE '00%' AND frameworkcode=?|;
678
                    $sth = $dbh->prepare($query);
679
                    $sth->execute($code);
680
                } else {
681
                    $query = ($type eq 'auth')?qq|SELECT tagfield FROM auth_tag_structure
682
                        WHERE tagfield NOT LIKE '00%' AND authtypecode=''|:qq|SELECT tagfield FROM marc_tag_structure
683
                        WHERE tagfield NOT LIKE '00%' AND frameworkcode=''|;
684
                    $sth = $dbh->prepare($query);
685
                    $sth->execute();
686
                }
687
                my $tagfield;
688
                while (($tagfield) = $sth->fetchrow) {
689
                    push @$tagfieldsArrRef, $tagfield;
690
                }
691
            };
692
        }
693
        for (@$tagfieldsArrRef) {
694
            my ($id_indicator, $dataInd) = GetValuesIndicator(undef, $_, $code, $type, $lang);
695
            $data{$_} = $dataInd;
696
        }
697
        if ($@) {
698
            $debug and warn "Error GetValuesIndicatorFrameWork $@\n";
699
        }
700
    }
701
    return ($code, \%data);
702
}#GetValuesIndicatorFrameWorkAuth
703
704
705
706
=head2 GetLanguagesIndicators
707
708
Get distinct languages from indicators descriptions
709
710
return :
711
the languages as a sorted array
712
713
=cut
714
715
716
sub GetLanguagesIndicators
717
{
718
    my @languages;
719
    my $dbh = C4::Context->dbh;
720
    if ($dbh) {
721
        eval {
722
            my $query = qq|SELECT DISTINCT lang FROM marc_indicators_desc ORDER BY lang|;
723
            my $sth = $dbh->prepare($query);
724
            $sth->execute();
725
            my $lang;
726
            while (($lang) = $sth->fetchrow) {
727
                push @languages, $lang;
728
            }
729
        };
730
        if ($@) {
731
            $debug and warn "Error GetLanguagesIndicators $@\n";
732
        }
733
    }
734
    return \@languages;
735
}#GetLanguagesIndicators
736
737
738
739
=head2 binarySearch
740
741
Little binary search for strings
742
743
return :
744
true or false
745
746
=cut
747
748
749
sub binarySearch
750
{
751
    my ($id, $arr) = @_;
752
753
    if ($arr && @$arr) {
754
        my $i = 0;
755
        my $j = scalar(@$arr) - 1;
756
        my $k = 0;
757
        while ($arr->[$k] ne $id && $j >= $i) {
758
            $k = int(($i + $j) / 2);
759
            if ($id gt $arr->[$k]) {
760
                $i = $k + 1;
761
            } else {
762
                $j = $k - 1;
763
            }
764
        }
765
        return 0 if ($arr->[$k] ne $id);
766
        return 1;
767
    }
768
    return 0;
769
}#binarySearch
770
771
772
773
=head2 CheckValueIndicators
774
775
Check the validity ot the indicators form values against the user defined ones
776
777
return :
778
Hash with the indicators with wrong values
779
780
=cut
781
782
783
sub CheckValueIndicatorsSub
784
{
785
    my ($input, $code, $type, $langParam) = @_;
786
787
    my $retHash;
788
    my $lang;
789
    my $indicatorsLanguages = GetLanguagesIndicators();
790
    if ($langParam && binarySearch($langParam, $indicatorsLanguages)) {
791
        $lang = $langParam;
792
    } elsif ($input->param('lang') && binarySearch($input->param('lang'), $indicatorsLanguages)) {
793
        $lang = $input->param('lang');
794
    } else {
795
        $lang = 'en';
796
    }
797
    my ($codeRet, $data) = GetValuesIndicatorFrameWorkAuth($code, $type, undef, $lang);
798
    if ($data) {
799
        $retHash = {};
800
        my $tagfield;
801
        my $ind;
802
        my $var;
803
        my $random;
804
        my $found;
805
        my $nonEmptySubfield;
806
        my $pattern;
807
        my $hasIndicator = 0;
808
        my @params = $input->param();
809
        foreach $var (@params) {
810
            if ($var =~ /^tag_([0-9]{3})_indicator([12])_([0-9]+)$/) {
811
                $tagfield = $1;
812
                $ind = $2;
813
                $random = '[0-9_]*(?:' . $3 . ')?';
814
                if ($data->{$tagfield} && @{$data->{$tagfield}}) {
815
                    $hasIndicator = 0;
816
                    # check if exists this indicator in the framework
817
                    for (@{$data->{$tagfield}}) {
818
                        if ($ind == $_->{ind}) {
819
                            $hasIndicator = 1;
820
                            last;
821
                        }
822
                    }
823
                    next unless ($hasIndicator);
824
                    $found = 0;
825
                    # look for some subfield filled and if so check indicator
826
                    $nonEmptySubfield = 0;
827
                    $pattern = 'tag_' . $tagfield . '_subfield_[a-z0-9]_' . $random;
828
                    foreach my $value (@params) {
829
                        if ($value =~ /^$pattern/ && $input->param($value) ne '') {
830
                            $nonEmptySubfield = 1;
831
                            last;
832
                        }
833
                    }
834
                    # check if exists the value for the indicator
835
                    if ($nonEmptySubfield) {
836
                        for (@{$data->{$tagfield}}) {
837
                            if ($ind == $_->{ind} && ($_->{ind_value} eq $input->param($var) || $input->param($var) eq '' || $input->param($var) eq ' ')) {
838
                                $found = 1;
839
                                last;
840
                            }
841
                        }
842
                        # incorrect value
843
                        $retHash->{$tagfield}->{$ind} = $input->param($var) unless ($found);
844
                    }
845
                }
846
            }
847
        }
848
        $retHash = undef unless (scalar(keys %$retHash));
849
    }
850
    return $retHash;
851
}#CheckValueIndicatorsSub
852
853
854
855
856
1;
857
__END__
858
859
=head1 AUTHOR
860
861
Koha Development Team <http://koha-community.org/>
862
863
=cut
(-)a/admin/auth_tag_structure.pl (+11 lines)
Lines 26-31 use C4::Koha; Link Here
26
use C4::Context;
26
use C4::Context;
27
use C4::Output;
27
use C4::Output;
28
use C4::Context;
28
use C4::Context;
29
use C4::Indicators;
29
30
30
31
31
# retrieve parameters
32
# retrieve parameters
Lines 191-196 if ($op eq 'add_form') { Link Here
191
		$sth->execute($searchfield,$authtypecode);
192
		$sth->execute($searchfield,$authtypecode);
192
		my $sth = $dbh->prepare("delete from auth_subfield_structure where tagfield=? and authtypecode=?");
193
		my $sth = $dbh->prepare("delete from auth_subfield_structure where tagfield=? and authtypecode=?");
193
		$sth->execute($searchfield,$authtypecode);
194
		$sth->execute($searchfield,$authtypecode);
195
        # Manage Indicators, delete indicators from authtype
196
        if (int($searchfield) >= 10) {
197
            DelIndicator(undef, $searchfield, $authtypecode, 'auth');
198
        }
194
	}
199
	}
195
    print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=auth_tag_structure.pl?searchfield=".$input->param('tagfield')."&authtypecode=$authtypecode\">";
200
    print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=auth_tag_structure.pl?searchfield=".$input->param('tagfield')."&authtypecode=$authtypecode\">";
196
    exit;
201
    exit;
Lines 229-234 if ($op eq 'add_form') { Link Here
229
        $row_data{mandatory}        = $results->[$i]{'mandatory'};
234
        $row_data{mandatory}        = $results->[$i]{'mandatory'};
230
        $row_data{authorised_value} = $results->[$i]{'authorised_value'};
235
        $row_data{authorised_value} = $results->[$i]{'authorised_value'};
231
        $row_data{subfield_link}    = "auth_subfields_structure.pl?tagfield=" . $results->[$i]{'tagfield'} . "&amp;authtypecode=" . $authtypecode;
236
        $row_data{subfield_link}    = "auth_subfields_structure.pl?tagfield=" . $results->[$i]{'tagfield'} . "&amp;authtypecode=" . $authtypecode;
237
        # Show link to manage indicators for a field
238
        $row_data{indicator_link} = (int($results->[$i]{'tagfield'}) >= 10)?'marc_indicators_structure.pl?op=mod&amp;tagfield='.$results->[$i]{'tagfield'}.'&amp;authtypecode='.$authtypecode:'';
232
        $row_data{edit}             = "$script_name?op=add_form&amp;searchfield=" . $results->[$i]{'tagfield'} . "&amp;authtypecode=" . $authtypecode;
239
        $row_data{edit}             = "$script_name?op=add_form&amp;searchfield=" . $results->[$i]{'tagfield'} . "&amp;authtypecode=" . $authtypecode;
233
        $row_data{delete}           = "$script_name?op=delete_confirm&amp;searchfield=" . $results->[$i]{'tagfield'} . "&amp;authtypecode=" . $authtypecode;
240
        $row_data{delete}           = "$script_name?op=delete_confirm&amp;searchfield=" . $results->[$i]{'tagfield'} . "&amp;authtypecode=" . $authtypecode;
234
		push(@loop_data, \%row_data);
241
		push(@loop_data, \%row_data);
Lines 286-290 sub duplicate_auth_framework { Link Here
286
	while ( my ( $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield,$tab, $authorised_value, $thesaurus_category, $seealso,$hidden) = $sth->fetchrow) {
293
	while ( my ( $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield,$tab, $authorised_value, $thesaurus_category, $seealso,$hidden) = $sth->fetchrow) {
287
		$sth_insert->execute($newauthtype, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory,$kohafield, $tab, $authorised_value, $thesaurus_category, $seealso,$hidden);
294
		$sth_insert->execute($newauthtype, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory,$kohafield, $tab, $authorised_value, $thesaurus_category, $seealso,$hidden);
288
	}
295
	}
296
    # Manage Indicators, clone the indicators from the parent of the new framework
297
    if ($input->param("clone_indicators") eq "1") {
298
        CloneIndicatorsFrameworkAuth($oldauthtype, $newauthtype, 'auth');
299
    }
289
}
300
}
290
301
(-)a/admin/authtypes.pl (-4 / +22 lines)
Lines 26-31 use CGI; Link Here
26
use C4::Context;
26
use C4::Context;
27
use C4::Auth;
27
use C4::Auth;
28
use C4::Output;
28
use C4::Output;
29
use C4::Indicators;
29
30
30
sub StringSearch  {
31
sub StringSearch  {
31
    my $sth = C4::Context->dbh->prepare("SELECT * FROM auth_types WHERE (authtypecode like ?) ORDER BY authtypecode");
32
    my $sth = C4::Context->dbh->prepare("SELECT * FROM auth_types WHERE (authtypecode like ?) ORDER BY authtypecode");
Lines 56-61 $template->param( Link Here
56
57
57
my $dbh = C4::Context->dbh;
58
my $dbh = C4::Context->dbh;
58
59
60
# get authtype list for cloning indicators
61
if ($authtypecode && HasFieldMarcInd($authtypecode, 'auth')) {
62
    my $authtypes = GetAuthtypeInd($authtypecode);
63
    $template->param(
64
        authtypesloop => $authtypes
65
    );
66
}
67
68
59
# called by default. Used to create form to add or  modify a record
69
# called by default. Used to create form to add or  modify a record
60
if ($op eq 'add_form') {
70
if ($op eq 'add_form') {
61
    #---- if primkey exists, it's a modify action, so read values to modify...
71
    #---- if primkey exists, it's a modify action, so read values to modify...
Lines 74-83 if ($op eq 'add_form') { Link Here
74
################## ADD_VALIDATE ##################################
84
################## ADD_VALIDATE ##################################
75
# called by add_form, used to insert/modify data in DB
85
# called by add_form, used to insert/modify data in DB
76
} elsif ($op eq 'add_validate') {
86
} elsif ($op eq 'add_validate') {
77
    my $sth = $input->param('modif') ? 
87
    if ($input->param('modif')) {
78
            $dbh->prepare("UPDATE auth_types SET authtypetext=? ,auth_tag_to_report=?, summary=? WHERE authtypecode=?") :
88
        my $sth = $dbh->prepare("UPDATE auth_types SET authtypetext=? ,auth_tag_to_report=?, summary=? WHERE authtypecode=?");
79
            $dbh->prepare("INSERT INTO auth_types SET authtypetext=?, auth_tag_to_report=?, summary=?, authtypecode=?") ;
89
        $sth->execute($input->param('authtypetext'),$input->param('auth_tag_to_report'),$input->param('summary'),$input->param('authtypecode'));
80
    $sth->execute($input->param('authtypetext'),$input->param('auth_tag_to_report'),$input->param('summary'),$input->param('authtypecode'));
90
        #Clone indicators from a framework
91
        if($input->param('indicators') && DelIndicatorsFrameworkAuth($input->param('authtypecode'), 'auth')) {
92
            my $frameworkBase = ($input->param('indicators') eq 'Default')?'':$input->param('indicators');
93
            CloneIndicatorsFrameworkAuth($frameworkBase, $input->param('authtypecode'), 'auth');
94
        }
95
    } else {
96
        my $sth = $dbh->prepare("INSERT INTO auth_types SET authtypetext=?, auth_tag_to_report=?, summary=?, authtypecode=?");
97
        $sth->execute($input->param('authtypetext'),$input->param('auth_tag_to_report'),$input->param('summary'),$input->param('authtypecode'));
98
    }
81
    print $input->redirect($script_name);    # FIXME: unnecessary redirect
99
    print $input->redirect($script_name);    # FIXME: unnecessary redirect
82
    exit;
100
    exit;
83
                                                    # END $OP eq ADD_VALIDATE
101
                                                    # END $OP eq ADD_VALIDATE
(-)a/admin/biblio_framework.pl (-1 / +19 lines)
Lines 27-32 use CGI; Link Here
27
use C4::Context;
27
use C4::Context;
28
use C4::Auth;
28
use C4::Auth;
29
use C4::Output;
29
use C4::Output;
30
use C4::Indicators;
30
31
31
sub StringSearch  {
32
sub StringSearch  {
32
	my $dbh = C4::Context->dbh;
33
	my $dbh = C4::Context->dbh;
Lines 43-49 my $op = $input->param('op') || ''; Link Here
43
my $pagesize      = 20;
44
my $pagesize      = 20;
44
45
45
my ($template, $borrowernumber, $cookie)
46
my ($template, $borrowernumber, $cookie)
46
    = get_template_and_user({template_name => "admin/biblio_framework.tmpl",
47
    = get_template_and_user({template_name => "admin/biblio_framework.tt",
47
			     query => $input,
48
			     query => $input,
48
			     type => "intranet",
49
			     type => "intranet",
49
			     authnotrequired => 0,
50
			     authnotrequired => 0,
Lines 55-60 $template->param( script_name => $script_name); Link Here
55
$template->param(($op||'else') => 1);
56
$template->param(($op||'else') => 1);
56
57
57
my $dbh = C4::Context->dbh;
58
my $dbh = C4::Context->dbh;
59
60
61
# get framework list for cloning indicators
62
if ($frameworkcode && HasFieldMarcInd($frameworkcode, 'biblio')) {
63
    my $frameworks = GetFrameworksInd($frameworkcode);
64
    unshift @$frameworks, {frameworkcode => 'Default', frameworktext => 'Default'};
65
    $template->param(
66
        frameworkloop => $frameworks
67
    );
68
}
69
70
58
################## ADD_FORM ##################################
71
################## ADD_FORM ##################################
59
# called by default. Used to create form to add or  modify a record
72
# called by default. Used to create form to add or  modify a record
60
if ($op eq 'add_form') {
73
if ($op eq 'add_form') {
Lines 79-84 if ($op eq 'add_form') { Link Here
79
        if ($input->param('modif')) {
92
        if ($input->param('modif')) {
80
            my $sth=$dbh->prepare("UPDATE biblio_framework SET frameworktext=? WHERE frameworkcode=?");
93
            my $sth=$dbh->prepare("UPDATE biblio_framework SET frameworktext=? WHERE frameworkcode=?");
81
            $sth->execute($input->param('frameworktext'),$input->param('frameworkcode'));
94
            $sth->execute($input->param('frameworktext'),$input->param('frameworkcode'));
95
            #Clone indicators from a framework
96
            if($input->param('indicators') && DelIndicatorsFrameworkAuth($input->param('frameworkcode'), 'biblio')) {
97
                my $frameworkBase = ($input->param('indicators') eq 'Default')?'':$input->param('indicators');
98
                CloneIndicatorsFrameworkAuth($frameworkBase, $input->param('frameworkcode'), 'biblio');
99
            }
82
        } else {
100
        } else {
83
            my $sth=$dbh->prepare("INSERT into biblio_framework (frameworkcode,frameworktext) values (?,?)");
101
            my $sth=$dbh->prepare("INSERT into biblio_framework (frameworkcode,frameworktext) values (?,?)");
84
            $sth->execute($input->param('frameworkcode'),$input->param('frameworktext'));
102
            $sth->execute($input->param('frameworkcode'),$input->param('frameworktext'));
(-)a/admin/marc_indicators_structure.pl (+162 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
4
# Copyright 2010-2011 Spanish Minister of Culture
5
#
6
# This file is part of Koha.
7
#
8
# Koha is free software; you can redistribute it and/or modify it under the
9
# terms of the GNU General Public License as published by the Free Software
10
# Foundation; either version 2 of the License, or (at your option) any later
11
# version.
12
#
13
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License along
18
# with Koha; if not, write to the Free Software Foundation, Inc.,
19
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21
use strict;
22
use CGI;
23
use C4::Indicators;
24
use C4::Context;
25
use C4::Output;
26
use C4::Auth;
27
use C4::Biblio;
28
29
30
31
my $input = new CGI;
32
33
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
34
    {
35
        template_name   => "admin/marc_indicators_structure.tt",
36
        query           => $input,
37
        type            => "intranet",
38
        authnotrequired => 0,
39
        flagsrequired   => { parameters => 1 },
40
        debug           => 1,
41
    }
42
);
43
44
my $frameworkcode = $input->param('frameworkcode');
45
my $authtypecode = $input->param('authtypecode');
46
my $op = $input->param('op');
47
my $tagfield = $input->param('tagfield');
48
49
# Get the languages associated with indicators
50
my $indicatorsLanguages = GetLanguagesIndicators();
51
52
# Is our language is defined on the indicators?
53
my $lang;
54
if ($input->param('lang') && binarySearch($input->param('lang'), $indicatorsLanguages)) {
55
    $lang = $input->param('lang');
56
} elsif ($template->param('lang') && binarySearch($template->param('lang'), $indicatorsLanguages)) {
57
    $lang = $template->param('lang');
58
} elsif ($template->{'lang'} && binarySearch($template->{'lang'}, $indicatorsLanguages)) {
59
    $lang = $template->{'lang'};
60
} else {
61
    $lang = 'en';
62
}
63
64
my $dataInd;
65
my $id_indicator;
66
my $strError = '';
67
my ($code, $type);
68
if (defined($frameworkcode)) {
69
    $code = $frameworkcode;
70
    $type = 'biblio';
71
} elsif (defined($authtypecode)) {
72
    $code = $authtypecode;
73
    $type = 'auth';
74
} else {
75
    print $input->redirect($input->referer());
76
    exit;
77
}
78
79
if ($input->request_method() eq "GET") {
80
    if ($op eq 'mod') {
81
        ($id_indicator, $dataInd) = GetValuesIndicator(undef, $tagfield, $code, $type, $lang);
82
    } else {
83
        $op = 'add';
84
    }
85
} elsif ($input->request_method() eq "POST") {
86
    if ($op eq 'add') {
87
        my $inserted = 0;
88
        $id_indicator = AddIndicator($tagfield, $code, $type);
89
        if ($id_indicator) {
90
            $inserted++;
91
            my $id_indicator_value;
92
            my $counter;
93
            for ($input->param()) {
94
                if ($_ =~ /^ind_value_([0-9]+)$/ && ($counter = $1) && $input->param('ind_' . $counter) =~ /^([12])$/) {
95
                    $id_indicator_value = AddIndicatorValue($id_indicator, $tagfield, $code, $type, $1, $input->param($_), $input->param('ind_desc_' . $counter), $lang);
96
                    $inserted++ if ($id_indicator_value);
97
                }
98
            }
99
        }
100
        if ($inserted) {
101
            $op = 'mod';
102
            $strError = 'Insertion OK';
103
            ($id_indicator, $dataInd) = GetValuesIndicator($id_indicator, $tagfield, $code, $type, $lang);
104
        } else {
105
            $strError = 'Insertion failed';
106
        }
107
    } elsif ($op eq 'mod') {
108
        $id_indicator = $input->param('id_indicator');
109
        ($id_indicator, $dataInd) = GetValuesIndicator($id_indicator, $tagfield, $code, $type, $lang);
110
        my $indRepeated = {};
111
        my $indId = {};
112
        my $id_indicator_value;
113
        my $counter;
114
        for ($input->param()) {
115
            if ($_ =~ /^id_indicator_([0-9]+)$/ && ($counter = $1) && $input->param('ind_' . $counter) =~ /^([12])$/) {
116
                $indRepeated->{$counter} = $input->param($_);
117
                $indId->{$input->param($_)} = $input->param($_);
118
                ModIndicatorValue($input->param($_), $input->param('ind_value_' . $counter), $input->param('ind_desc_' . $counter), $lang, $input->param('ind_' . $counter));
119
            } elsif ($_ =~ /^ind_value_([0-9]+)$/ && ($counter = $1) && !exists($indRepeated->{$counter}) && $input->param('ind_' . $counter) =~ /^([12])$/) {
120
                $id_indicator_value = AddIndicatorValue($id_indicator, $tagfield, $code, $type, $1, $input->param($_), $input->param('ind_desc_' . $counter), $lang);
121
                $indId->{$id_indicator_value} = $id_indicator_value if ($id_indicator_value);
122
            }
123
        }
124
        foreach (@$dataInd) {
125
            unless (exists($indId->{$_->{id_indicator_value}})) {
126
                DelIndicatorValue($_->{id_indicator_value});
127
                $id_indicator_value = $_->{id_contenido};
128
            }
129
        }
130
        unless ($id_indicator_value) {
131
            $strError = 'Update OK.';
132
        } else {
133
            $strError = 'Update failed.';
134
        }
135
        @$dataInd = undef;
136
        ($id_indicator, $dataInd) = GetValuesIndicator($id_indicator, $tagfield, $code, $type, $lang);
137
        DelIndicator($id_indicator, $tagfield, $code, $type) unless (@$dataInd);
138
    }
139
}
140
141
142
if ($dataInd) {
143
    my $i = 1;
144
    for (@$dataInd) {
145
        $_->{numInd} = $i;
146
        $i++;
147
    }
148
}
149
150
151
$template->param(code => $code,
152
            type => $type,
153
            strError => $strError,
154
            op => $op,
155
            lang => $lang,
156
            tagfield => $tagfield,
157
            numInd => ($dataInd)?scalar(@$dataInd):0,
158
            BIG_LOOP => $dataInd,
159
);
160
161
162
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/admin/marctagstructure.pl (-1 / +15 lines)
Lines 26-31 use C4::Koha; Link Here
26
use C4::Context;
26
use C4::Context;
27
use C4::Output;
27
use C4::Output;
28
use C4::Context;
28
use C4::Context;
29
use C4::Indicators;
29
30
30
31
31
# retrieve parameters
32
# retrieve parameters
Lines 48-54 my $dbh = C4::Context->dbh; Link Here
48
49
49
# open template
50
# open template
50
my ($template, $loggedinuser, $cookie)
51
my ($template, $loggedinuser, $cookie)
51
    = get_template_and_user({template_name => "admin/marctagstructure.tmpl",
52
    = get_template_and_user({template_name => "admin/marctagstructure.tt",
52
			     query => $input,
53
			     query => $input,
53
			     type => "intranet",
54
			     type => "intranet",
54
			     authnotrequired => 0,
55
			     authnotrequired => 0,
Lines 199-204 if ($op eq 'add_form') { Link Here
199
        my $sth2 = $dbh->prepare("DELETE FROM marc_subfield_structure WHERE tagfield=? AND frameworkcode=?");
200
        my $sth2 = $dbh->prepare("DELETE FROM marc_subfield_structure WHERE tagfield=? AND frameworkcode=?");
200
        $sth1->execute($searchfield, $frameworkcode);
201
        $sth1->execute($searchfield, $frameworkcode);
201
        $sth2->execute($searchfield, $frameworkcode);
202
        $sth2->execute($searchfield, $frameworkcode);
203
        # Manage Indicators, delete indicators from framework
204
        if (int($searchfield) >= 10) {
205
            DelIndicator(undef, $searchfield, $frameworkcode, 'biblio');
206
        }
202
	}
207
	}
203
	$template->param(
208
	$template->param(
204
          searchfield => $searchfield,
209
          searchfield => $searchfield,
Lines 263-268 if ($op eq 'add_form') { Link Here
263
			$row_data{mandatory}        = $results[$i]->{'mts_mandatory'};
268
			$row_data{mandatory}        = $results[$i]->{'mts_mandatory'};
264
			$row_data{authorised_value} = $results[$i]->{'mts_authorised_value'};
269
			$row_data{authorised_value} = $results[$i]->{'mts_authorised_value'};
265
			$row_data{subfield_link} = "marc_subfields_structure.pl?op=add_form&amp;tagfield=".$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode;
270
			$row_data{subfield_link} = "marc_subfields_structure.pl?op=add_form&amp;tagfield=".$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode;
271
			# Show link to manage indicators for a field
272
			$row_data{indicator_link} = (int($results[$i]->{'mts_tagfield'}) >= 10)?"marc_indicators_structure.pl?op=mod&amp;tagfield=".$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode:'';
266
			$row_data{edit}          = "$script_name?op=add_form&amp;searchfield="            .$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode;
273
			$row_data{edit}          = "$script_name?op=add_form&amp;searchfield="            .$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode;
267
			$row_data{delete}        = "$script_name?op=delete_confirm&amp;searchfield="      .$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode;
274
			$row_data{delete}        = "$script_name?op=delete_confirm&amp;searchfield="      .$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode;
268
			$j=$i;
275
			$j=$i;
Lines 302-307 if ($op eq 'add_form') { Link Here
302
			$row_data{mandatory}        = $results->[$i]{'mandatory'};
309
			$row_data{mandatory}        = $results->[$i]{'mandatory'};
303
			$row_data{authorised_value} = $results->[$i]{'authorised_value'};
310
			$row_data{authorised_value} = $results->[$i]{'authorised_value'};
304
			$row_data{subfield_link}    = "marc_subfields_structure.pl?tagfield="          .$results->[$i]{'tagfield'}."&amp;frameworkcode=".$frameworkcode;
311
			$row_data{subfield_link}    = "marc_subfields_structure.pl?tagfield="          .$results->[$i]{'tagfield'}."&amp;frameworkcode=".$frameworkcode;
312
			# Show link to manage indicators for a field
313
			$row_data{indicator_link} = (int($results->[$i]{'tagfield'}) >= 10)?'marc_indicators_structure.pl?op=mod&amp;tagfield='.$results->[$i]{'tagfield'}.'&amp;frameworkcode='.$frameworkcode:'';
305
			$row_data{edit}             = "$script_name?op=add_form&amp;searchfield="      .$results->[$i]{'tagfield'}."&amp;frameworkcode=".$frameworkcode;
314
			$row_data{edit}             = "$script_name?op=add_form&amp;searchfield="      .$results->[$i]{'tagfield'}."&amp;frameworkcode=".$frameworkcode;
306
			$row_data{delete}           = "$script_name?op=delete_confirm&amp;searchfield=".$results->[$i]{'tagfield'}."&amp;frameworkcode=".$frameworkcode;
315
			$row_data{delete}           = "$script_name?op=delete_confirm&amp;searchfield=".$results->[$i]{'tagfield'}."&amp;frameworkcode=".$frameworkcode;
307
			push(@loop_data, \%row_data);
316
			push(@loop_data, \%row_data);
Lines 325-330 if ($op eq 'add_form') { Link Here
325
	}
334
	}
326
} #---- END $OP eq DEFAULT
335
} #---- END $OP eq DEFAULT
327
336
337
328
output_html_with_http_headers $input, $cookie, $template->output;
338
output_html_with_http_headers $input, $cookie, $template->output;
329
339
330
#
340
#
Lines 362-366 sub duplicate_framework { Link Here
362
	while ( my ($frameworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso,$hidden) = $sth->fetchrow) {
372
	while ( my ($frameworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso,$hidden) = $sth->fetchrow) {
363
	    $sth_insert->execute($newframeworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso, $hidden);
373
	    $sth_insert->execute($newframeworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso, $hidden);
364
	}
374
	}
375
    # Manage Indicators, clone the indicators from the parent of the new framework
376
    if ($input->param("clone_indicators") eq "1") {
377
        CloneIndicatorsFrameworkAuth($oldframeworkcode, $newframeworkcode, 'biblio');
378
    }
365
}
379
}
366
380
(-)a/authorities/authorities.pl (-1 / +24 lines)
Lines 30-35 use Date::Calc qw(Today); Link Here
30
use MARC::File::USMARC;
30
use MARC::File::USMARC;
31
use MARC::File::XML;
31
use MARC::File::XML;
32
use C4::Biblio;
32
use C4::Biblio;
33
use C4::Indicators;
34
33
use vars qw( $tagslib);
35
use vars qw( $tagslib);
34
use vars qw( $authorised_values_sth);
36
use vars qw( $authorised_values_sth);
35
use vars qw( $is_a_modif );
37
use vars qw( $is_a_modif );
Lines 596-602 if ($op eq "add") { Link Here
596
    }
598
    }
597
599
598
    my ($duplicateauthid,$duplicateauthvalue);
600
    my ($duplicateauthid,$duplicateauthvalue);
599
     ($duplicateauthid,$duplicateauthvalue) = FindDuplicateAuthority($record,$authtypecode) if ($op eq "add") && (!$is_a_modif);
601
    my $retWrongInd; # variable to store the indicators with incorrect values
602
    # Check whether the value of the indicators are correct or do not add/modify the auth and show the form again
603
    # Do not check if the record comes from a Z3959 Search
604
    if ((C4::Context->preference("CheckValueIndicators") || C4::Context->preference("DisplayPluginValueIndicators")) && !$z3950) {
605
        $retWrongInd = CheckValueIndicatorsSub($input, $authtypecode, 'auth', $template->param('lang'));
606
        if ($retWrongInd) {
607
            $duplicateauthid = 1; # modify the variable (even it's not a duplicate) to not enter the next if block
608
            $is_a_modif = 1; # do not want FindDuplicateAuthority
609
            $input->param('confirm_not_duplicate', '0'); # modify to not enter the next if clause
610
            my @wrongInd = ();
611
            map { push @wrongInd, {tagfield => $_, ind1 => $retWrongInd->{$_}->{1}, ind2 => $retWrongInd->{$_}->{2}}; } keys %$retWrongInd;
612
            $template->param(wrongInd => \@wrongInd);
613
        }
614
    }
615
616
    ($duplicateauthid,$duplicateauthvalue) = FindDuplicateAuthority($record,$authtypecode) if ($op eq "add") && (!$is_a_modif);
600
    my $confirm_not_duplicate = $input->param('confirm_not_duplicate');
617
    my $confirm_not_duplicate = $input->param('confirm_not_duplicate');
601
    # it is not a duplicate (determined either by Koha itself or by user checking it's not a duplicate)
618
    # it is not a duplicate (determined either by Koha itself or by user checking it's not a duplicate)
602
    if (!$duplicateauthid or $confirm_not_duplicate) {
619
    if (!$duplicateauthid or $confirm_not_duplicate) {
Lines 660-663 $template->param(authtypesloop => \@authtypesloop, Link Here
660
                authtypetext => $authtypes->{$authtypecode}{'authtypetext'},
677
                authtypetext => $authtypes->{$authtypecode}{'authtypetext'},
661
                hide_marc => C4::Context->preference('hide_marc'),
678
                hide_marc => C4::Context->preference('hide_marc'),
662
                );
679
                );
680
681
$template->param(
682
    DisplayPluginValueIndicators => C4::Context->preference("DisplayPluginValueIndicators"),
683
    CheckValueIndicators => (!$z3950)?(C4::Context->preference("CheckValueIndicators") | C4::Context->preference("DisplayPluginValueIndicators")):0
684
);
685
663
output_html_with_http_headers $input, $cookie, $template->output;
686
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/cataloguing/addbiblio.pl (+23 lines)
Lines 35-40 use C4::Branch; # XXX subfield_is_koha_internal_p Link Here
35
use C4::ClassSource;
35
use C4::ClassSource;
36
use C4::ImportBatch;
36
use C4::ImportBatch;
37
use C4::Charset;
37
use C4::Charset;
38
use C4::Indicators;
38
39
39
use Date::Calc qw(Today);
40
use Date::Calc qw(Today);
40
use MARC::File::USMARC;
41
use MARC::File::USMARC;
Lines 840-845 if ( $op eq "addbiblio" ) { Link Here
840
    $template->param(
841
    $template->param(
841
        biblionumberdata => $biblionumber,
842
        biblionumberdata => $biblionumber,
842
    );
843
    );
844
    my ($duplicatebiblionumber,$duplicatetitle);
845
    my $retWrongInd; # variable to store the indicators with incorrect values
846
    # Check whether the value of the indicators are correct or do not add/modify the biblio and show the form again
847
    # Do not check if the record comes from a Z3959 Search or from an Import
848
    if ((C4::Context->preference("CheckValueIndicators") || C4::Context->preference("DisplayPluginValueIndicators")) && !$z3950 && !$breedingid) {
849
        $retWrongInd = CheckValueIndicatorsSub($input, $frameworkcode, 'biblio', $template->param('lang'));
850
        if ($retWrongInd) {
851
            $duplicatebiblionumber = 1; # modify the variable (even it's not a duplicate) to not enter the next if block
852
            $is_a_modif = 1; # do not want FindDuplicate
853
            $input->param('confirm_not_duplicate', '0'); # modify to not enter the next if clause
854
            my @wrongInd = ();
855
            map { push @wrongInd, {tagfield => $_, ind1 => $retWrongInd->{$_}->{1}, ind2 => $retWrongInd->{$_}->{2}}; } keys %$retWrongInd;
856
            $template->param(wrongInd => \@wrongInd);
857
        }
858
    }
843
    # getting html input
859
    # getting html input
844
    my @params = $input->param();
860
    my @params = $input->param();
845
    $record = TransformHtmlToMarc( $input );
861
    $record = TransformHtmlToMarc( $input );
Lines 848-853 if ( $op eq "addbiblio" ) { Link Here
848
    if ( !$is_a_modif ) {
864
    if ( !$is_a_modif ) {
849
        ( $duplicatebiblionumber, $duplicatetitle ) = FindDuplicate($record);
865
        ( $duplicatebiblionumber, $duplicatetitle ) = FindDuplicate($record);
850
    }
866
    }
867
    ($duplicatebiblionumber,$duplicatetitle) = FindDuplicate($record) if (!$is_a_modif);
851
    my $confirm_not_duplicate = $input->param('confirm_not_duplicate');
868
    my $confirm_not_duplicate = $input->param('confirm_not_duplicate');
852
    # it is not a duplicate (determined either by Koha itself or by user checking it's not a duplicate)
869
    # it is not a duplicate (determined either by Koha itself or by user checking it's not a duplicate)
853
    if ( !$duplicatebiblionumber or $confirm_not_duplicate ) {
870
    if ( !$duplicatebiblionumber or $confirm_not_duplicate ) {
Lines 914-919 if ( $op eq "addbiblio" ) { Link Here
914
        }
931
        }
915
    } else {
932
    } else {
916
    # it may be a duplicate, warn the user and do nothing
933
    # it may be a duplicate, warn the user and do nothing
934
        $duplicatebiblionumber = 0 if ($retWrongInd); # reset duplicatebiblionumber to the original value
917
        build_tabs ($template, $record, $dbh,$encoding,$input);
935
        build_tabs ($template, $record, $dbh,$encoding,$input);
918
        $template->param(
936
        $template->param(
919
            biblionumber             => $biblionumber,
937
            biblionumber             => $biblionumber,
Lines 979-982 $template->param( Link Here
979
    borrowernumber => $loggedinuser, 
997
    borrowernumber => $loggedinuser, 
980
);
998
);
981
999
1000
$template->param(
1001
    DisplayPluginValueIndicators => C4::Context->preference("DisplayPluginValueIndicators"),
1002
    CheckValueIndicators => (!$z3950 && !$breedingid)?(C4::Context->preference("CheckValueIndicators") | C4::Context->preference("DisplayPluginValueIndicators")):0
1003
);
1004
982
output_html_with_http_headers $input, $cookie, $template->output;
1005
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/cataloguing/indicators_ajax.pl (+122 lines)
Line 0 Link Here
1
#!/usr/bin/perl -w
2
3
4
# Copyright 2010-2011 Spanish Minister of Culture
5
#
6
# This file is part of Koha.
7
#
8
# Koha is free software; you can redistribute it and/or modify it under the
9
# terms of the GNU General Public License as published by the Free Software
10
# Foundation; either version 2 of the License, or (at your option) any later
11
# version.
12
#
13
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License along
18
# with Koha; if not, write to the Free Software Foundation, Inc.,
19
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21
22
use strict;
23
use XML::LibXML;
24
use CGI;
25
use C4::Indicators;
26
use IO::Handle;
27
28
29
my $cgi = new CGI;
30
my $strXml = '';
31
my $doc;
32
my $root;
33
34
eval {
35
    $doc = XML::LibXML::Document->new('1.0', 'UTF-8');
36
};
37
if ($@) {
38
    $doc = undef;
39
    $strXml = '<?xml version="1.0" encoding="UTF-8"?>' . chr(10);
40
}
41
42
if ($cgi->request_method() eq "POST" || $cgi->request_method() eq "GET") {
43
44
    my $code = $cgi->param('code');
45
    my $type = $cgi->param('type');
46
    if ($doc) {
47
        $root = $doc->createElement('Framework');
48
        $root->setAttribute('frameworkcode', $code);
49
        $doc->addChild($root);
50
    } else {
51
        $strXml .= '<Framework frameworkcode="' . $code . '">' . chr(10);
52
    }
53
54
    my $params = $cgi->Vars;
55
    my @tagfields;
56
    @tagfields = split("\0", $params->{'tagfields'}) if $params->{'tagfields'};
57
58
    my $indicatorsLanguages = GetLanguagesIndicators();
59
    my $lang;
60
    if ($cgi->param('lang') && binarySearch($cgi->param('lang'), $indicatorsLanguages)) {
61
        $lang = $cgi->param('lang');
62
    } else {
63
        $lang = 'en';
64
    }
65
66
    my ($frameworkcodeRet, $data) = GetValuesIndicatorFrameWorkAuth($code, $type, \@tagfields, $lang);
67
    if ($data) {
68
        my $elementFields;
69
        if ($doc) {
70
            $elementFields = $doc->createElement('Fields');
71
            $root->addChild($elementFields);
72
        } else {
73
            $strXml .= '<Fields>' . chr(10);
74
        }
75
        my $tagfield;
76
        my $elementField;
77
        for $tagfield (sort keys %$data) {
78
            if ($doc) {
79
                $elementField = $doc->createElement('Field');
80
                $elementField->setAttribute('tag', $tagfield);
81
                $elementFields->addChild($elementField);
82
            } else {
83
                $strXml .= '<Field tag="' . $tagfield . '">' . chr(10);
84
            }
85
            if (@{$data->{$tagfield}}) {
86
                my $elementInd;
87
                my $dataUnique = {};
88
                for (@{$data->{$tagfield}}) {
89
                    unless (exists($dataUnique->{$_->{ind}}->{$_->{ind_value}})) {
90
                        $dataUnique->{$_->{ind}}->{$_->{ind_value}} = 1;
91
                        if ($doc) {
92
                            $elementInd = $doc->createElement('Indicator');
93
                            $elementInd->setAttribute('ind', $_->{ind});
94
                            $elementInd->appendText($_->{ind_value});
95
                            $elementField->addChild($elementInd);
96
                        } else {
97
                            $strXml .= '<Indicator ind="' . $_->{ind} . '">' . $_->{ind_value} . '</Indicator>' . chr(10);
98
                        }
99
                    }
100
                }
101
            }
102
            $strXml .= '</Field>' . chr(10) unless ($doc);
103
        }
104
        $strXml .= '</Fields>' . chr(10) unless ($doc);
105
    }
106
    $strXml .= '</Framework>';
107
} else {
108
    if ($doc) {
109
        $root = $doc->createElement('Error');
110
        $doc->addChild($root);
111
    } else {
112
        $strXml .= '<Error />' . chr(10);
113
    }
114
}
115
if ($doc) {
116
    $strXml = $doc->toString(0);
117
}
118
STDOUT->autoflush(1);
119
print "Content-type: application/xml\n\n";
120
print $strXml;
121
close(STDOUT);
122
exit;
(-)a/cataloguing/marc21_indicators.pl (+162 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
4
# Copyright 2010-2011 Spanish Minister of Culture
5
#
6
# This file is part of Koha.
7
#
8
# Koha is free software; you can redistribute it and/or modify it under the
9
# terms of the GNU General Public License as published by the Free Software
10
# Foundation; either version 2 of the License, or (at your option) any later
11
# version.
12
#
13
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
14
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License along
18
# with Koha; if not, write to the Free Software Foundation, Inc.,
19
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21
use strict;
22
use CGI;
23
use C4::Indicators;
24
use C4::Context;
25
use C4::Output;
26
use C4::Auth;
27
use C4::Biblio;
28
use C4::AuthoritiesMarc;
29
30
31
32
my $input = new CGI;
33
my $biblionumber = $input->param('biblionumber');
34
my $frameworkcode = $input->param('frameworkcode');
35
my $authid = $input->param('authid');
36
my $authtypecode = $input->param('authtypecode');
37
my $type = $input->param('type');
38
39
my $code;
40
if (defined($frameworkcode)) {
41
    $code = $frameworkcode;
42
    $type = 'biblio';
43
} elsif (defined($authtypecode)) {
44
    $code = $authtypecode;
45
    $type = 'auth';
46
} elsif ($type eq 'biblio' || $type eq 'auth') {
47
    $code = '';
48
}
49
50
51
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
52
    {
53
        template_name   => "cataloguing/marc21_indicators.tt",
54
        query           => $input,
55
        type            => "intranet",
56
        authnotrequired => 0,
57
    }
58
);
59
60
unless ($type) {
61
    output_html_with_http_headers $input, $cookie, $template->output;
62
    exit;
63
}
64
65
# Values of indicators as filled by user
66
my %tagfields = ();
67
foreach my $var ($input->param()) {
68
    if ($var =~ /^tag_([0-9]{3})_indicator([12])_[0-9]+$/) {
69
        $tagfields{$1}{$2}{value} = $input->param($var) if (defined($input->param($var)) && $input->param($var) ne '#');
70
        $tagfields{$1}{$2}{field} = $var;
71
    }
72
}
73
74
75
# Get data from biblio
76
if ($biblionumber) {
77
    my $record = GetMarcBiblio($biblionumber);
78
    $template->param( title => $record->title());
79
} elsif ($authid) {
80
    my $record = GetAuthority($authid);
81
    $template->param( title => $record->title());
82
}
83
84
# Get the languages associated with indicators
85
my $indicatorsLanguages = GetLanguagesIndicators();
86
87
# Is our language is defined on the indicators?
88
my $lang;
89
if ($input->param('lang') && binarySearch($input->param('lang'), $indicatorsLanguages)) {
90
    $lang = $input->param('lang');
91
} elsif ($template->param('lang') && binarySearch($template->param('lang'), $indicatorsLanguages)) {
92
    $lang = $template->param('lang');
93
} elsif ($template->{'lang'} && binarySearch($template->{'lang'}, $indicatorsLanguages)) {
94
    $lang = $template->{'lang'};
95
} else {
96
    $lang = 'en';
97
}
98
99
my @INDICATORS_LOOP;
100
my @tagfields = keys %tagfields;
101
102
103
# Get predefined values for indicators on a framework, tagfields and language
104
my ($frameworkcodeRet, $data) = GetValuesIndicatorFrameWorkAuth($code, $type, \@tagfields, $lang);
105
if ($data) {
106
    my $tagfield;
107
    for $tagfield (sort keys %$data) {
108
        my $dataField = GetDataFieldMarc($tagfield, $code, $type);
109
        if (exists($tagfields{$tagfield}) || @{$data->{$tagfield}}) {
110
            my $hashRef = {tagfield=> $tagfield,
111
                    desc => $dataField->{liblibrarian}?$dataField->{liblibrarian}:$dataField->{libopac},
112
                    current_value_1 => exists($tagfields{$tagfield}{1}{value})?$tagfields{$tagfield}{1}{value}:'',
113
                    current_value_2 => exists($tagfields{$tagfield}{2}{value})?$tagfields{$tagfield}{2}{value}:'',
114
                    current_field_1 => exists($tagfields{$tagfield}{1})?$tagfields{$tagfield}{1}{field}:'',
115
                    current_field_2 => exists($tagfields{$tagfield}{2})?$tagfields{$tagfield}{2}{field}:''};
116
            my @newDataField;
117
            for my $dataInd (@{$data->{$tagfield}}) {
118
                if (length($dataInd->{ind_desc}) > 50) {
119
                    my $i = 0;
120
                    my $strDesc = $dataInd->{ind_desc};
121
                    do {
122
                        my %dataIndAux = %$dataInd;
123
                        my $strDescPart = '';
124
                        my @arrDesc = split /\s+/, $strDesc;
125
                        while (my $word = shift @arrDesc) {
126
                            $strDescPart .= $word . ' ';
127
                            last if (length($strDescPart) >= 50);
128
                        }
129
                        $dataIndAux{desc_partial} = $strDescPart;
130
                        if ($i > 0) {
131
                            $dataIndAux{ind_value} = '#son#';
132
                            $dataIndAux{ind_desc} = '';
133
                        }
134
                        push @newDataField, \%dataIndAux;
135
                        $strDesc = join(' ', @arrDesc);
136
                        $i++;
137
                    } while (length($strDesc) > 50);
138
                    if ($strDesc) {
139
                        my %dataIndAux = %$dataInd;
140
                        $dataIndAux{desc_partial} = $strDesc;
141
                        $dataIndAux{ind_value} = '#son#';
142
                        $dataIndAux{ind_desc} = '';
143
                        push @newDataField, \%dataIndAux;
144
                    }
145
                } else {
146
                    push @newDataField, $dataInd;
147
                }
148
                $hashRef->{data} = \@newDataField;
149
            }
150
            push @INDICATORS_LOOP, $hashRef;
151
        }
152
    }
153
}
154
155
$template->param(biblionumber => $biblionumber,
156
                INDICATORS_LOOP => \@INDICATORS_LOOP,
157
                indicatorsLanguages => $indicatorsLanguages,
158
                code => $code,
159
                type => $type
160
        );
161
162
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/installer/data/Pg/en/marcflavour/marc21/mandatory/marc21_indicators.sql (+85 lines)
Line 0 Link Here
1
2
--
3
-- Table structure for table marc_indicators
4
--
5
6
7
DROP TABLE IF EXISTS marc_indicators CASCADE;
8
CREATE TABLE marc_indicators (
9
  id_indicator SERIAL PRIMARY KEY,
10
  frameworkcode varchar(4) default NULL REFERENCES biblio_framework (frameworkcode) ON DELETE CASCADE,
11
  tagfield varchar(3) NOT NULL default '',
12
  authtypecode varchar(10) default NULL REFERENCES auth_types (authtypecode) ON DELETE CASCADE
13
);
14
CREATE UNIQUE INDEX marc_indicators_framework_auth_code ON marc_indicators (frameworkcode,authtypecode,tagfield);
15
16
17
--
18
-- Table structure for table marc_indicators_values
19
--
20
21
DROP TABLE IF EXISTS marc_indicators_values CASCADE;
22
CREATE TABLE marc_indicators_values (
23
  ind_value char(1) NOT NULL default '' PRIMARY KEY
24
);
25
26
INSERT INTO marc_indicators_values VALUES (''),('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7'),('8'),('9'),('a'),('b'),('c'),('d'),('e'),('f'),('g'),('h'),('i'),('j'),('k'),('l'),('m'),('n'),('o'),('p'),('q'),('r'),('s'),('t'),('u'),('v'),('w'),('x'),('y'),('z');
27
28
29
--
30
-- Table structure for table marc_indicators_value
31
--
32
33
DROP TABLE IF EXISTS marc_indicators_value CASCADE;
34
CREATE TABLE marc_indicators_value (
35
  id_indicator_value SERIAL PRIMARY KEY,
36
  id_indicator integer NOT NULL REFERENCES marc_indicators (id_indicator) ON DELETE CASCADE,
37
  ind varchar(1) NOT NULL,
38
  ind_value char(1) NOT NULL REFERENCES marc_indicators_values (ind_value) ON DELETE CASCADE,
39
  CHECK ( ind IN ('1', '2'))
40
);
41
CREATE INDEX marc_indicators_value_id_indicator ON marc_indicators_value (id_indicator);
42
CREATE INDEX marc_indicators_value_ind_value ON marc_indicators_value (ind_value);
43
44
45
--
46
-- Table structure for table marc_indicators_desc
47
--
48
49
DROP TABLE IF EXISTS marc_indicators_desc CASCADE;
50
CREATE TABLE marc_indicators_desc (
51
  id_indicator_value integer NOT NULL REFERENCES marc_indicators_value (id_indicator_value) ON DELETE CASCADE,
52
  lang varchar(25) NOT NULL default 'en',
53
  ind_desc text,
54
  PRIMARY KEY  (id_indicator_value,lang)
55
);
56
CREATE INDEX marc_indicators_desc_lang ON marc_indicators_desc (lang);
57
58
59
60
--- ******************************************
61
--- Values for Indicators for Default Framework
62
--- ******************************************
63
--
64
-- Dumping data for table marc_indicators
65
--
66
67
68
INSERT INTO marc_indicators VALUES (1,'','010',NULL),(2,'','013',NULL),(3,'','015',NULL),(4,'','016',NULL),(5,'','017',NULL),(6,'','018',NULL),(7,'','020',NULL),(8,'','022',NULL),(9,'','024',NULL),(10,'','025',NULL),(11,'','026',NULL),(12,'','027',NULL),(13,'','028',NULL),(14,'','030',NULL),(15,'','031',NULL),(16,'','032',NULL),(17,'','033',NULL),(18,'','034',NULL),(19,'','035',NULL),(20,'','036',NULL),(21,'','037',NULL),(22,'','038',NULL),(23,'','040',NULL),(24,'','041',NULL),(25,'','042',NULL),(26,'','043',NULL),(27,'','044',NULL),(28,'','045',NULL),(29,'','046',NULL),(30,'','047',NULL),(31,'','048',NULL),(32,'','050',NULL),(33,'','051',NULL),(34,'','052',NULL),(35,'','055',NULL),(36,'','060',NULL),(37,'','061',NULL),(38,'','066',NULL),(39,'','070',NULL),(40,'','071',NULL),(41,'','072',NULL),(42,'','074',NULL),(43,'','080',NULL),(44,'','082',NULL),(45,'','084',NULL),(46,'','086',NULL),(47,'','088',NULL),(48,'','100',NULL),(49,'','110',NULL),(50,'','111',NULL),(51,'','130',NULL),(52,'','210',NULL),(53,'','222',NULL),(54,'','240',NULL),(55,'','242',NULL),(56,'','245',NULL),(57,'','246',NULL),(58,'','247',NULL),(59,'','250',NULL),(60,'','254',NULL),(61,'','255',NULL),(62,'','256',NULL),(63,'','257',NULL),(64,'','258',NULL),(65,'','260',NULL),(66,'','263',NULL),(67,'','270',NULL),(68,'','300',NULL),(69,'','306',NULL),(70,'','307',NULL),(71,'','310',NULL),(72,'','321',NULL),(73,'','336',NULL),(74,'','337',NULL),(75,'','338',NULL),(76,'','340',NULL),(77,'','342',NULL),(78,'','343',NULL),(79,'','351',NULL),(80,'','352',NULL),(81,'','355',NULL),(82,'','357',NULL),(83,'','362',NULL),(84,'','363',NULL),(85,'','365',NULL),(86,'','366',NULL),(87,'','380',NULL),(88,'','381',NULL),(89,'','382',NULL),(90,'','383',NULL),(91,'','384',NULL),(92,'','490',NULL),(93,'','500',NULL),(94,'','501',NULL),(95,'','502',NULL),(96,'','504',NULL),(97,'','505',NULL),(98,'','506',NULL),(99,'','507',NULL),(100,'','508',NULL),(101,'','510',NULL),(102,'','511',NULL),(103,'','513',NULL),(104,'','514',NULL),(105,'','515',NULL),(106,'','516',NULL),(107,'','518',NULL),(108,'','520',NULL),(109,'','521',NULL),(110,'','522',NULL),(111,'','524',NULL),(112,'','525',NULL),(113,'','526',NULL),(114,'','530',NULL),(115,'','533',NULL),(116,'','534',NULL),(117,'','535',NULL),(118,'','536',NULL),(119,'','538',NULL),(120,'','540',NULL),(121,'','541',NULL),(122,'','544',NULL),(123,'','545',NULL),(124,'','546',NULL),(125,'','547',NULL),(126,'','550',NULL),(127,'','552',NULL),(128,'','555',NULL),(129,'','556',NULL),(130,'','561',NULL),(131,'','562',NULL),(132,'','563',NULL),(133,'','565',NULL),(134,'','567',NULL),(135,'','580',NULL),(136,'','581',NULL),(137,'','583',NULL),(138,'','584',NULL),(139,'','585',NULL),(140,'','586',NULL),(141,'','588',NULL),(142,'','600',NULL),(143,'','610',NULL),(144,'','611',NULL),(145,'','630',NULL),(146,'','648',NULL),(147,'','650',NULL),(148,'','651',NULL),(149,'','653',NULL),(150,'','654',NULL),(151,'','655',NULL),(152,'','656',NULL),(153,'','657',NULL),(154,'','658',NULL),(155,'','662',NULL),(156,'','700',NULL),(157,'','710',NULL),(158,'','711',NULL),(159,'','720',NULL),(160,'','730',NULL),(161,'','740',NULL),(162,'','751',NULL),(163,'','752',NULL),(164,'','753',NULL),(165,'','754',NULL),(166,'','760',NULL),(167,'','762',NULL),(168,'','765',NULL),(169,'','767',NULL),(170,'','770',NULL),(171,'','772',NULL),(172,'','773',NULL),(173,'','774',NULL),(174,'','775',NULL),(175,'','776',NULL),(176,'','777',NULL),(177,'','780',NULL),(178,'','785',NULL),(179,'','786',NULL),(180,'','787',NULL),(181,'','800',NULL),(182,'','810',NULL),(183,'','811',NULL),(184,'','830',NULL),(185,'','841',NULL),(186,'','842',NULL),(187,'','843',NULL),(188,'','844',NULL),(189,'','845',NULL),(190,'','850',NULL),(191,'','852',NULL),(192,'','853',NULL),(193,'','854',NULL),(194,'','855',NULL),(195,'','856',NULL),(196,'','863',NULL),(197,'','864',NULL),(198,'','865',NULL),(199,'','866',NULL),(200,'','867',NULL),(201,'','868',NULL),(202,'','876',NULL),(203,'','877',NULL),(204,'','878',NULL),(205,'','880',NULL),(206,'','882',NULL),(207,'','886',NULL),(208,'','887',NULL),(209,NULL,'010',''),(210,NULL,'014',''),(211,NULL,'016',''),(212,NULL,'020',''),(213,NULL,'022',''),(214,NULL,'024',''),(215,NULL,'031',''),(216,NULL,'034',''),(217,NULL,'035',''),(218,NULL,'040',''),(219,NULL,'042',''),(220,NULL,'043',''),(221,NULL,'045',''),(222,NULL,'046',''),(223,NULL,'050',''),(224,NULL,'052',''),(225,NULL,'053',''),(226,NULL,'055',''),(227,NULL,'060',''),(228,NULL,'065',''),(229,NULL,'066',''),(230,NULL,'070',''),(231,NULL,'072',''),(232,NULL,'073',''),(233,NULL,'080',''),(234,NULL,'082',''),(235,NULL,'083',''),(236,NULL,'086',''),(237,NULL,'087',''),(238,NULL,'100',''),(239,NULL,'110',''),(240,NULL,'111',''),(241,NULL,'130',''),(242,NULL,'148',''),(243,NULL,'150',''),(244,NULL,'151',''),(245,NULL,'155',''),(246,NULL,'180',''),(247,NULL,'181',''),(248,NULL,'182',''),(249,NULL,'185',''),(250,NULL,'260',''),(251,NULL,'336',''),(252,NULL,'360',''),(253,NULL,'370',''),(254,NULL,'371',''),(255,NULL,'372',''),(256,NULL,'373',''),(257,NULL,'374',''),(258,NULL,'375',''),(259,NULL,'376',''),(260,NULL,'377',''),(261,NULL,'380',''),(262,NULL,'381',''),(263,NULL,'382',''),(264,NULL,'383',''),(265,NULL,'384',''),(266,NULL,'400',''),(267,NULL,'410',''),(268,NULL,'411',''),(269,NULL,'430',''),(270,NULL,'448',''),(272,NULL,'450',''),(273,NULL,'451',''),(274,NULL,'455',''),(275,NULL,'480',''),(276,NULL,'481',''),(277,NULL,'482',''),(278,NULL,'485',''),(271,NULL,'488',''),(279,NULL,'500',''),(280,NULL,'510',''),(281,NULL,'511',''),(282,NULL,'530',''),(283,NULL,'548',''),(284,NULL,'550',''),(285,NULL,'551',''),(286,NULL,'555',''),(287,NULL,'580',''),(288,NULL,'581',''),(289,NULL,'582',''),(290,NULL,'585',''),(291,NULL,'640',''),(292,NULL,'641',''),(293,NULL,'642',''),(294,NULL,'643',''),(295,NULL,'644',''),(296,NULL,'645',''),(297,NULL,'646',''),(298,NULL,'663',''),(299,NULL,'664',''),(300,NULL,'665',''),(301,NULL,'666',''),(302,NULL,'667',''),(303,NULL,'670',''),(304,NULL,'675',''),(305,NULL,'678',''),(306,NULL,'680',''),(307,NULL,'681',''),(308,NULL,'682',''),(309,NULL,'688',''),(310,NULL,'700',''),(311,NULL,'710',''),(312,NULL,'711',''),(313,NULL,'730',''),(314,NULL,'748',''),(315,NULL,'750',''),(316,NULL,'751',''),(317,NULL,'755',''),(318,NULL,'780',''),(319,NULL,'781',''),(320,NULL,'782',''),(321,NULL,'785',''),(322,NULL,'788',''),(323,NULL,'856',''),(324,NULL,'880','');
69
70
71
--
72
-- Dumping data for table marc_indicators_value
73
--
74
75
76
INSERT INTO marc_indicators_value VALUES (1,1,'1',''),(2,1,'2',''),(3,1,'1',''),(4,1,'2',''),(5,2,'1',''),(6,2,'2',''),(7,2,'1',''),(8,2,'2',''),(9,3,'1',''),(10,3,'2',''),(11,3,'1',''),(12,3,'2',''),(13,4,'1',''),(14,4,'2',''),(15,4,'1',''),(16,4,'2',''),(17,4,'1','7'),(18,5,'1',''),(19,5,'2',''),(20,5,'1',''),(21,5,'2',''),(22,6,'1',''),(23,6,'2',''),(24,6,'1',''),(25,6,'2',''),(26,7,'1',''),(27,7,'2',''),(28,7,'1',''),(29,7,'2',''),(30,8,'1',''),(31,8,'2',''),(32,8,'1',''),(33,8,'2',''),(34,8,'1','0'),(35,8,'1','1'),(36,9,'1',''),(37,9,'2',''),(38,9,'1','0'),(39,9,'2',''),(40,9,'1','1'),(41,9,'2','0'),(42,9,'1','2'),(43,9,'2','1'),(44,9,'1','3'),(45,9,'1','4'),(46,9,'1','7'),(47,9,'1','8'),(48,10,'1',''),(49,10,'2',''),(50,10,'1',''),(51,10,'2',''),(52,11,'1',''),(53,11,'2',''),(54,11,'1',''),(55,11,'2',''),(56,12,'1',''),(57,12,'2',''),(58,12,'1',''),(59,12,'2',''),(60,13,'1',''),(61,13,'2',''),(62,13,'1','0'),(63,13,'2','0'),(64,13,'1','1'),(65,13,'2','1'),(66,13,'1','2'),(67,13,'2','2'),(68,13,'1','3'),(69,13,'2','3'),(70,13,'1','4'),(71,13,'1','5'),(72,14,'1',''),(73,14,'2',''),(74,14,'1',''),(75,14,'2',''),(76,15,'1',''),(77,15,'2',''),(78,15,'1',''),(79,15,'2',''),(80,16,'1',''),(81,16,'2',''),(82,16,'1',''),(83,16,'2',''),(84,17,'1',''),(85,17,'2',''),(86,17,'1',''),(87,17,'2',''),(88,17,'1','0'),(89,17,'2','0'),(90,17,'1','1'),(91,17,'2','1'),(92,17,'1','2'),(93,17,'2','2'),(94,18,'1',''),(95,18,'2',''),(96,18,'1','0'),(97,18,'2',''),(98,18,'1','1'),(99,18,'2','0'),(100,18,'1','3'),(101,18,'2','1'),(102,19,'1',''),(103,19,'2',''),(104,19,'1',''),(105,19,'2',''),(106,20,'1',''),(107,20,'2',''),(108,20,'1',''),(109,20,'2',''),(110,21,'1',''),(111,21,'2',''),(112,21,'1',''),(113,21,'2',''),(114,22,'1',''),(115,22,'2',''),(116,22,'1',''),(117,22,'2',''),(118,23,'1',''),(119,23,'2',''),(120,23,'1',''),(121,23,'2',''),(122,24,'1',''),(123,24,'2',''),(124,24,'1','0'),(125,24,'2',''),(126,24,'1','1'),(127,24,'2','7'),(128,25,'1',''),(129,25,'2',''),(130,25,'1',''),(131,25,'2',''),(132,26,'1',''),(133,26,'2',''),(134,26,'1',''),(135,26,'2',''),(136,27,'1',''),(137,27,'2',''),(138,27,'1',''),(139,27,'2',''),(140,28,'1',''),(141,28,'2',''),(142,28,'1',''),(143,28,'2',''),(144,28,'1','0'),(145,28,'1','1'),(146,28,'1','2'),(147,29,'1',''),(148,29,'2',''),(149,29,'1',''),(150,29,'2',''),(151,30,'1',''),(152,30,'2',''),(153,30,'1',''),(154,30,'2',''),(155,31,'1',''),(156,31,'2',''),(157,31,'1',''),(158,31,'2',''),(159,32,'1',''),(160,32,'2',''),(161,32,'1',''),(162,32,'2','0'),(163,32,'1','0'),(164,32,'2','4'),(165,32,'1','1'),(166,33,'1',''),(167,33,'2',''),(168,33,'1',''),(169,33,'2',''),(170,34,'1',''),(171,34,'2',''),(172,34,'1',''),(173,34,'2',''),(174,34,'1','1'),(175,34,'1','7'),(176,35,'1',''),(177,35,'2',''),(178,35,'1',''),(179,35,'2','0'),(180,35,'1','0'),(181,35,'2','1'),(182,35,'1','1'),(183,35,'2','2'),(184,35,'2','3'),(185,35,'2',''),(186,35,'2','5'),(187,35,'2','6'),(188,35,'2','7'),(189,35,'2','8'),(190,35,'2','9'),(191,36,'1',''),(192,36,'2',''),(193,36,'1',''),(194,36,'2','0'),(195,36,'1','0'),(196,36,'2','4'),(197,36,'1','1'),(198,37,'1',''),(199,37,'2',''),(200,37,'1',''),(201,37,'2',''),(202,38,'1',''),(203,38,'2',''),(204,38,'1',''),(205,38,'2',''),(206,39,'1',''),(207,39,'2',''),(208,39,'1','0'),(209,39,'2',''),(210,39,'1','1'),(211,40,'1',''),(212,40,'2',''),(213,40,'1',''),(214,40,'2',''),(215,41,'1',''),(216,41,'2',''),(217,41,'1',''),(218,41,'2',''),(219,41,'2','7'),(220,42,'1',''),(221,42,'2',''),(222,42,'1',''),(223,42,'2',''),(224,43,'1',''),(225,43,'2',''),(226,43,'1',''),(227,43,'2',''),(228,44,'1',''),(229,44,'2',''),(230,44,'1','0'),(231,44,'2',''),(232,44,'1','1'),(233,44,'2','0'),(234,44,'2','4'),(235,45,'1',''),(236,45,'2',''),(237,45,'1',''),(238,45,'2',''),(239,46,'1',''),(240,46,'2',''),(241,46,'1',''),(242,46,'2',''),(243,46,'1','0'),(244,46,'1','1'),(245,47,'1',''),(246,47,'2',''),(247,47,'1',''),(248,47,'2',''),(249,48,'1',''),(250,48,'2',''),(251,48,'1','0'),(252,48,'2',''),(253,48,'1','1'),(254,48,'1','3'),(255,49,'1',''),(256,49,'2',''),(257,49,'1','0'),(258,49,'2',''),(259,49,'1',''),(260,49,'1','2'),(261,50,'1',''),(262,50,'2',''),(263,50,'1','0'),(264,50,'2',''),(265,50,'1',''),(266,50,'1','2'),(267,51,'1',''),(268,51,'2',''),(269,51,'1','0'),(270,51,'2',''),(271,51,'1','1'),(272,51,'1','2'),(273,51,'1','3'),(274,51,'1','4'),(275,51,'1','5'),(276,51,'1','6'),(277,51,'1','7'),(278,51,'1','8'),(279,51,'1','9'),(280,52,'1',''),(281,52,'2',''),(282,52,'1','0'),(283,52,'2',''),(284,52,'1','1'),(285,52,'2','0'),(286,53,'1',''),(287,53,'2',''),(288,53,'1',''),(289,53,'2','0'),(290,53,'2','1'),(291,53,'2','2'),(292,53,'2','3'),(293,53,'2','4'),(294,53,'2','5'),(295,53,'2','6'),(296,53,'2','7'),(297,53,'2','8'),(298,53,'2','9'),(299,54,'1',''),(300,54,'2',''),(301,54,'1','0'),(302,54,'2','0'),(303,54,'1','1'),(304,54,'2','1'),(305,54,'2','2'),(306,54,'2','3'),(307,54,'2','4'),(308,54,'2','5'),(309,54,'2','6'),(310,54,'2','7'),(311,54,'2','8'),(312,54,'2','9'),(313,55,'1',''),(314,55,'2',''),(315,55,'1','0'),(316,55,'2','0'),(317,55,'1','1'),(318,55,'2','1'),(319,55,'2','2'),(320,55,'2','3'),(321,55,'2','4'),(322,55,'2','5'),(323,55,'2','6'),(324,55,'2','7'),(325,55,'2','8'),(326,55,'2','9'),(327,56,'1',''),(328,56,'2',''),(329,56,'1','0'),(330,56,'2','0'),(331,56,'1','1'),(332,56,'2','1'),(333,56,'2','2'),(334,56,'2','3'),(335,56,'2','4'),(336,56,'2','5'),(337,56,'2','6'),(338,56,'2','7'),(339,56,'2','8'),(340,56,'2','9'),(341,57,'1',''),(342,57,'2',''),(343,57,'1','0'),(344,57,'2',''),(345,57,'1','1'),(346,57,'2','0'),(347,57,'1','2'),(348,57,'2','1'),(349,57,'1','3'),(350,57,'2','2'),(351,57,'2','3'),(352,57,'2','4'),(353,57,'2','5'),(354,57,'2','6'),(355,57,'2','7'),(356,57,'2','8'),(357,58,'1',''),(358,58,'2',''),(359,58,'1','0'),(360,58,'2','0'),(361,58,'1','1'),(362,58,'2','1'),(363,59,'1',''),(364,59,'2',''),(365,59,'1',''),(366,59,'2',''),(367,60,'1',''),(368,60,'2',''),(369,60,'1',''),(370,60,'2',''),(371,61,'1',''),(372,61,'2',''),(373,61,'1',''),(374,61,'2',''),(375,62,'1',''),(376,62,'2',''),(377,62,'1',''),(378,62,'2',''),(379,63,'1',''),(380,63,'2',''),(381,63,'1',''),(382,63,'2',''),(383,64,'1',''),(384,64,'2',''),(385,64,'1',''),(386,64,'2',''),(387,65,'1',''),(388,65,'2',''),(389,65,'1',''),(390,65,'2',''),(391,65,'1','2'),(392,65,'1',''),(393,66,'1',''),(394,66,'2',''),(395,66,'1',''),(396,66,'2',''),(397,67,'1',''),(398,67,'2',''),(399,67,'1',''),(400,67,'2',''),(401,67,'1','1'),(402,67,'2','0'),(403,67,'1','2'),(404,67,'2','7'),(405,68,'1',''),(406,68,'2',''),(407,68,'1',''),(408,68,'2',''),(409,69,'1',''),(410,69,'2',''),(411,69,'1',''),(412,69,'2',''),(413,70,'1',''),(414,70,'2',''),(415,70,'1',''),(416,70,'2',''),(417,70,'1','8'),(418,71,'1',''),(419,71,'2',''),(420,71,'1',''),(421,71,'2',''),(422,72,'1',''),(423,72,'2',''),(424,72,'1',''),(425,72,'2',''),(426,73,'1',''),(427,73,'2',''),(428,73,'1',''),(429,73,'2',''),(430,74,'1',''),(431,74,'2',''),(432,74,'1',''),(433,74,'2',''),(434,75,'1',''),(435,75,'2',''),(436,75,'1',''),(437,75,'2',''),(438,76,'1',''),(439,76,'2',''),(440,76,'1',''),(441,76,'2',''),(442,77,'1',''),(443,77,'2',''),(444,77,'1','0'),(445,77,'2','0'),(446,77,'1','1'),(447,77,'2','1'),(448,77,'2','2'),(449,77,'2','3'),(450,77,'2','4'),(451,77,'2','5'),(452,77,'2','6'),(453,77,'2','7'),(454,77,'2','8'),(455,78,'1',''),(456,78,'2',''),(457,78,'1',''),(458,78,'2',''),(459,79,'1',''),(460,79,'2',''),(461,79,'1',''),(462,79,'2',''),(463,80,'1',''),(464,80,'2',''),(465,80,'1',''),(466,80,'2',''),(467,81,'1',''),(468,81,'2',''),(469,81,'1','0'),(470,81,'2',''),(471,81,'1','1'),(472,81,'1','2'),(473,81,'1','3'),(474,81,'1','4'),(475,81,'1','5'),(476,81,'1','8'),(477,82,'1',''),(478,82,'2',''),(479,82,'1',''),(480,82,'2',''),(481,83,'1',''),(482,83,'2',''),(483,83,'1','0'),(484,83,'2',''),(485,83,'1','1'),(486,84,'1',''),(487,84,'2',''),(488,84,'1',''),(489,84,'2',''),(490,84,'1','0'),(491,84,'2','0'),(492,84,'1','1'),(493,84,'2',''),(494,85,'1',''),(495,85,'2',''),(496,85,'1',''),(497,85,'2',''),(498,86,'1',''),(499,86,'2',''),(500,86,'1',''),(501,86,'2',''),(502,87,'1',''),(503,87,'2',''),(504,87,'1',''),(505,87,'2',''),(506,88,'1',''),(507,88,'2',''),(508,88,'1',''),(509,88,'2',''),(510,89,'1',''),(511,89,'2',''),(512,89,'1',''),(513,89,'2',''),(514,90,'1',''),(515,90,'2',''),(516,90,'1',''),(517,90,'2',''),(518,91,'1',''),(519,91,'2',''),(520,91,'1',''),(521,91,'2',''),(522,91,'1','0'),(523,91,'1','1'),(524,92,'1',''),(525,92,'2',''),(526,92,'1','0'),(527,92,'2',''),(528,92,'1','1'),(529,93,'1',''),(530,93,'2',''),(531,93,'1',''),(532,93,'2',''),(533,94,'1',''),(534,94,'2',''),(535,94,'1',''),(536,94,'2',''),(537,95,'1',''),(538,95,'2',''),(539,95,'1',''),(540,95,'2',''),(541,96,'1',''),(542,96,'2',''),(543,96,'1',''),(544,96,'2',''),(545,97,'1',''),(546,97,'2',''),(547,97,'1','0'),(548,97,'2',''),(549,97,'1','1'),(550,97,'2','0'),(551,97,'1','2'),(552,97,'1','8'),(553,98,'1',''),(554,98,'2',''),(555,98,'1',''),(556,98,'2',''),(557,98,'1','0'),(558,98,'1','1'),(559,99,'1',''),(560,99,'2',''),(561,99,'1',''),(562,99,'2',''),(563,100,'1',''),(564,100,'2',''),(565,100,'1',''),(566,100,'2',''),(567,101,'1',''),(568,101,'2',''),(569,101,'1','0'),(570,101,'2',''),(571,101,'1','1'),(572,101,'1','2'),(573,101,'1','3'),(574,101,'1','4'),(575,102,'1',''),(576,102,'2',''),(577,102,'1','0'),(578,102,'2',''),(579,102,'1','1'),(580,103,'1',''),(581,103,'2',''),(582,103,'1',''),(583,103,'2',''),(584,104,'1',''),(585,104,'2',''),(586,104,'1',''),(587,104,'2',''),(588,105,'1',''),(589,105,'2',''),(590,105,'1',''),(591,105,'2',''),(592,106,'1',''),(593,106,'2',''),(594,106,'1',''),(595,106,'2',''),(596,106,'1','8'),(597,107,'1',''),(598,107,'2',''),(599,107,'1',''),(600,107,'2',''),(601,108,'1',''),(602,108,'2',''),(603,108,'1',''),(604,108,'2',''),(605,108,'1','0'),(606,108,'1','1'),(607,108,'1','2'),(608,108,'1','4'),(609,108,'1','3'),(610,108,'1','8'),(611,109,'1',''),(612,109,'2',''),(613,109,'1',''),(614,109,'2',''),(615,109,'1','0'),(616,109,'1','1'),(617,109,'1','2'),(618,109,'1','3'),(619,109,'1','4'),(620,109,'1','8'),(621,110,'1',''),(622,110,'2',''),(623,110,'1',''),(624,110,'2',''),(625,110,'1','8'),(626,111,'1',''),(627,111,'2',''),(628,111,'1',''),(629,111,'2',''),(630,111,'1','8'),(631,112,'1',''),(632,112,'2',''),(633,112,'1',''),(634,112,'2',''),(635,113,'1',''),(636,113,'2',''),(637,113,'1','0'),(638,113,'2',''),(639,113,'1','8'),(640,114,'1',''),(641,114,'2',''),(642,114,'1',''),(643,114,'2',''),(644,115,'1',''),(645,115,'2',''),(646,115,'1',''),(647,115,'2',''),(648,116,'1',''),(649,116,'2',''),(650,116,'1',''),(651,116,'2',''),(652,117,'1',''),(653,117,'2',''),(654,117,'1','1'),(655,117,'2',''),(656,117,'1','2'),(657,118,'1',''),(658,118,'2',''),(659,118,'1',''),(660,118,'2',''),(661,119,'1',''),(662,119,'2',''),(663,119,'1',''),(664,119,'2',''),(665,120,'1',''),(666,120,'2',''),(667,120,'1',''),(668,120,'2',''),(669,121,'1',''),(670,121,'2',''),(671,121,'1',''),(672,121,'2',''),(673,122,'1',''),(674,122,'2',''),(675,122,'1',''),(676,122,'2',''),(677,122,'1','0'),(678,122,'1','1'),(679,123,'1',''),(680,123,'2',''),(681,123,'1',''),(682,123,'2',''),(683,123,'1','0'),(684,123,'1','1'),(685,124,'1',''),(686,124,'2',''),(687,124,'1',''),(688,124,'2',''),(689,125,'1',''),(690,125,'2',''),(691,125,'1',''),(692,125,'2',''),(693,126,'1',''),(694,126,'2',''),(695,126,'1',''),(696,126,'2',''),(697,127,'1',''),(698,127,'2',''),(699,127,'1',''),(700,127,'2',''),(701,128,'1',''),(702,128,'2',''),(703,128,'2',''),(704,128,'1','8'),(705,129,'1',''),(706,129,'2',''),(707,129,'2',''),(708,129,'1','8'),(709,130,'1',''),(710,130,'2',''),(711,130,'1',''),(712,130,'2',''),(713,131,'1',''),(714,131,'2',''),(715,131,'1',''),(716,131,'2',''),(717,132,'1',''),(718,132,'2',''),(719,132,'1',''),(720,132,'2',''),(721,133,'1',''),(722,133,'2',''),(723,133,'1',''),(724,133,'2',''),(725,133,'1','0'),(726,133,'1','8'),(727,134,'1',''),(728,134,'2',''),(729,134,'1',''),(730,134,'2',''),(731,134,'1','8'),(732,135,'1',''),(733,135,'2',''),(734,135,'1',''),(735,135,'2',''),(736,136,'1',''),(737,136,'2',''),(738,136,'1',''),(739,136,'2',''),(740,136,'1','8'),(741,137,'1',''),(742,137,'2',''),(743,137,'1',''),(744,137,'2',''),(745,138,'1',''),(746,138,'2',''),(747,138,'1',''),(748,138,'2',''),(749,139,'1',''),(750,139,'2',''),(751,139,'1',''),(752,139,'2',''),(753,140,'1',''),(754,140,'2',''),(755,140,'1',''),(756,140,'2',''),(757,140,'1','8'),(758,141,'1',''),(759,141,'2',''),(760,141,'1',''),(761,141,'2',''),(762,142,'1',''),(763,142,'2',''),(764,142,'1','0'),(765,142,'2',''),(766,142,'1','1'),(767,142,'2','1'),(768,142,'1','2'),(769,142,'2','2'),(770,142,'2','3'),(771,142,'2','4'),(772,142,'2','5'),(773,142,'2','6'),(774,142,'2','7'),(775,143,'1',''),(776,143,'2',''),(777,143,'1','0'),(778,143,'2','0'),(779,143,'1','1'),(780,143,'2','1'),(781,143,'1','2'),(782,143,'2','2'),(783,143,'2','3'),(784,143,'2','4'),(785,143,'2','5'),(786,143,'2','6'),(787,143,'2','7'),(788,144,'1',''),(789,144,'2',''),(790,144,'1','0'),(791,144,'2','0'),(792,144,'1','1'),(793,144,'2','1'),(794,144,'1','2'),(795,144,'2','2'),(796,144,'2','3'),(797,144,'2','4'),(798,144,'2','5'),(799,144,'2','6'),(800,144,'2','7'),(801,145,'1',''),(802,145,'2',''),(803,145,'1','0'),(804,145,'2','0'),(805,145,'1','1'),(806,145,'2','1'),(807,145,'1','2'),(808,145,'2','2'),(809,145,'1','3'),(810,145,'2','3'),(811,145,'1','4'),(812,145,'2','4'),(813,145,'1','5'),(814,145,'2','5'),(815,145,'1','6'),(816,145,'2','6'),(817,145,'1','7'),(818,145,'2','7'),(819,145,'1','8'),(820,145,'1','9'),(821,146,'1',''),(822,146,'2',''),(823,146,'1',''),(824,146,'2','0'),(825,146,'2','1'),(826,146,'2','2'),(827,146,'2','3'),(828,146,'2','4'),(829,146,'2','5'),(830,146,'2','6'),(831,146,'2','7'),(832,147,'1',''),(833,147,'2',''),(834,147,'1',''),(835,147,'2','0'),(836,147,'1','0'),(837,147,'2','1'),(838,147,'1','1'),(839,147,'2','2'),(840,147,'1','2'),(841,147,'2','3'),(842,147,'2','4'),(843,147,'2','5'),(844,147,'2','6'),(845,147,'2','7'),(846,148,'1',''),(847,148,'2',''),(848,148,'1',''),(849,148,'2','0'),(850,148,'2','1'),(851,148,'2','2'),(852,148,'2','3'),(853,148,'2','4'),(854,148,'2','5'),(855,148,'2','6'),(856,148,'2','7'),(857,149,'1',''),(858,149,'2',''),(859,149,'1',''),(860,149,'2',''),(861,149,'1','0'),(862,149,'2','0'),(863,149,'1','1'),(864,149,'2','1'),(865,149,'1','2'),(866,149,'2','2'),(867,149,'2','3'),(868,149,'2','4'),(869,149,'2','5'),(870,149,'2','6'),(871,150,'1',''),(872,150,'2',''),(873,150,'1',''),(874,150,'2',''),(875,150,'1','0'),(876,150,'1','1'),(877,150,'1','2'),(878,151,'1',''),(879,151,'2',''),(880,151,'1',''),(881,151,'2','0'),(882,151,'1','0'),(883,151,'2','1'),(884,151,'2','2'),(885,151,'2','3'),(886,151,'2','4'),(887,151,'2','5'),(888,151,'2','6'),(889,151,'2','7'),(890,152,'1',''),(891,152,'2',''),(892,152,'1',''),(893,152,'2','7'),(894,153,'1',''),(895,153,'2',''),(896,153,'1',''),(897,153,'2','7'),(898,154,'1',''),(899,154,'2',''),(900,154,'1',''),(901,154,'2',''),(902,155,'1',''),(903,155,'2',''),(904,155,'1',''),(905,155,'2',''),(906,156,'1',''),(907,156,'2',''),(908,156,'1','0'),(909,156,'2',''),(910,156,'1','1'),(911,156,'2','2'),(912,156,'1','3'),(913,157,'1',''),(914,157,'2',''),(915,157,'1','0'),(916,157,'2',''),(917,157,'1','1'),(918,157,'2','2'),(919,157,'1','2'),(920,158,'1',''),(921,158,'2',''),(922,158,'1','0'),(923,158,'2',''),(924,158,'1','1'),(925,158,'2','2'),(926,158,'1','2'),(927,159,'1',''),(928,159,'2',''),(929,159,'1',''),(930,159,'2',''),(931,159,'1','1'),(932,159,'1','2'),(933,160,'1',''),(934,160,'2',''),(935,160,'1','0'),(936,160,'2',''),(937,160,'1','1'),(938,160,'2','2'),(939,160,'1','2'),(940,160,'1','3'),(941,160,'1','4'),(942,160,'1','5'),(943,160,'1','6'),(944,160,'1','7'),(945,160,'1','8'),(946,160,'1','9'),(947,161,'1',''),(948,161,'2',''),(949,161,'1','0'),(950,161,'2',''),(951,161,'1','1'),(952,161,'2','2'),(953,161,'1','2'),(954,161,'1','3'),(955,161,'1','4'),(956,161,'1','5'),(957,161,'1','6'),(958,161,'1','7'),(959,161,'1','8'),(960,161,'1','9'),(961,162,'1',''),(962,162,'2',''),(963,162,'1',''),(964,162,'2',''),(965,163,'1',''),(966,163,'2',''),(967,163,'1',''),(968,163,'2',''),(969,164,'1',''),(970,164,'2',''),(971,164,'1',''),(972,164,'2',''),(973,165,'1',''),(974,165,'2',''),(975,165,'1',''),(976,165,'2',''),(977,166,'1',''),(978,166,'2',''),(979,166,'1','0'),(980,166,'2',''),(981,166,'1','1'),(982,166,'2','8'),(983,167,'1',''),(984,167,'2',''),(985,167,'1','0'),(986,167,'2',''),(987,167,'1','1'),(988,167,'2','8'),(989,168,'1',''),(990,168,'2',''),(991,168,'1','0'),(992,168,'2',''),(993,168,'1','1'),(994,168,'2','8'),(995,169,'1',''),(996,169,'2',''),(997,169,'1','0'),(998,169,'2',''),(999,169,'1','1'),(1000,169,'2','8'),(1001,170,'1',''),(1002,170,'2',''),(1003,170,'1','0'),(1004,170,'2',''),(1005,170,'1','1'),(1006,170,'2','8'),(1007,171,'1',''),(1008,171,'2',''),(1009,171,'1','0'),(1010,171,'2',''),(1011,171,'1','1'),(1012,171,'2','0'),(1013,171,'2','8'),(1014,172,'1',''),(1015,172,'2',''),(1016,172,'1','0'),(1017,172,'2',''),(1018,172,'1','1'),(1019,172,'2','8'),(1020,173,'1',''),(1021,173,'2',''),(1022,173,'1','0'),(1023,173,'2',''),(1024,173,'1','1'),(1025,173,'2','8'),(1026,174,'1',''),(1027,174,'2',''),(1028,174,'1','0'),(1029,174,'2',''),(1030,174,'1','1'),(1031,174,'2','8'),(1032,175,'1',''),(1033,175,'2',''),(1034,175,'1','0'),(1035,175,'2',''),(1036,175,'1','1'),(1037,175,'2','8'),(1038,176,'1',''),(1039,176,'2',''),(1040,176,'1','0'),(1041,176,'2',''),(1042,176,'1','1'),(1043,176,'2','8'),(1044,177,'1',''),(1045,177,'2',''),(1046,177,'1','0'),(1047,177,'2','0'),(1048,177,'1','1'),(1049,177,'2','1'),(1050,177,'2','2'),(1051,177,'2','3'),(1052,177,'2',''),(1053,177,'2','5'),(1054,177,'2','6'),(1055,177,'2','7'),(1056,178,'1',''),(1057,178,'2',''),(1058,178,'1','0'),(1059,178,'2','0'),(1060,178,'1','1'),(1061,178,'2','1'),(1062,178,'2','2'),(1063,178,'2','3'),(1064,178,'2','4'),(1065,178,'2','5'),(1066,178,'2','6'),(1067,178,'2','7'),(1068,178,'2','8'),(1069,179,'1',''),(1070,179,'2',''),(1071,179,'1','0'),(1072,179,'2',''),(1073,179,'1','1'),(1074,179,'2','8'),(1075,180,'1',''),(1076,180,'2',''),(1077,180,'1','0'),(1078,180,'2',''),(1079,180,'1','1'),(1080,180,'2','8'),(1081,181,'1',''),(1082,181,'2',''),(1083,181,'1','0'),(1084,181,'2',''),(1085,181,'1','1'),(1086,181,'1','2'),(1087,182,'1',''),(1088,182,'2',''),(1089,182,'1','0'),(1090,182,'2',''),(1091,182,'1','1'),(1092,182,'1','2'),(1093,183,'2',''),(1094,183,'1','0'),(1095,183,'2',''),(1096,183,'1','1'),(1097,183,'1','2'),(1098,184,'1',''),(1099,184,'2',''),(1100,184,'1',''),(1101,184,'2','0'),(1102,184,'2','1'),(1103,184,'2','2'),(1104,184,'2','3'),(1105,184,'2','4'),(1106,184,'2','5'),(1107,184,'2','6'),(1108,184,'2','7'),(1109,184,'2','8'),(1110,184,'2','9'),(1111,185,'1',''),(1112,185,'2',''),(1113,185,'1',''),(1114,185,'2',''),(1115,186,'1',''),(1116,186,'2',''),(1117,186,'1',''),(1118,186,'2',''),(1119,187,'1',''),(1120,187,'2',''),(1121,187,'1',''),(1122,187,'2',''),(1123,188,'1',''),(1124,188,'2',''),(1125,188,'1',''),(1126,188,'2',''),(1127,189,'1',''),(1128,189,'2',''),(1129,189,'1',''),(1130,189,'2',''),(1131,190,'1',''),(1132,190,'2',''),(1133,190,'1',''),(1134,190,'2',''),(1135,191,'1',''),(1136,191,'2',''),(1137,191,'1',''),(1138,191,'2',''),(1139,191,'1','0'),(1140,191,'2','0'),(1141,191,'1','1'),(1142,191,'2','1'),(1143,191,'1','2'),(1144,191,'2','2'),(1145,191,'1','3'),(1146,191,'1','4'),(1147,191,'1','5'),(1148,191,'1','6'),(1149,191,'1','7'),(1150,191,'1','8'),(1151,192,'1',''),(1152,192,'2',''),(1153,192,'1','0'),(1154,192,'2','0'),(1155,192,'1','1'),(1156,192,'2','1'),(1157,192,'1','2'),(1158,192,'2','2'),(1159,192,'1','3'),(1160,192,'2','3'),(1161,193,'1',''),(1162,193,'2',''),(1163,193,'1','0'),(1164,193,'2','0'),(1165,193,'1','1'),(1166,193,'2','1'),(1167,193,'1','2'),(1168,193,'2','2'),(1169,193,'1','3'),(1170,193,'2','3'),(1171,194,'1',''),(1172,194,'2',''),(1173,194,'1',''),(1174,194,'2',''),(1175,195,'1',''),(1176,195,'2',''),(1177,195,'1',''),(1178,195,'2',''),(1179,195,'1','0'),(1180,195,'2','0'),(1181,195,'1','1'),(1182,195,'2','1'),(1183,195,'1','2'),(1184,195,'2','2'),(1185,195,'1','3'),(1186,195,'2','8'),(1187,195,'1','4'),(1188,195,'1','7'),(1189,196,'1',''),(1190,196,'2',''),(1191,196,'1',''),(1192,196,'2',''),(1193,196,'1','3'),(1194,196,'2','0'),(1195,196,'1','4'),(1196,196,'2','1'),(1197,196,'1','5'),(1198,196,'2','2'),(1199,196,'2','3'),(1200,196,'2','4'),(1201,197,'1',''),(1202,197,'2',''),(1203,197,'1',''),(1204,197,'2',''),(1205,197,'1','3'),(1206,197,'2','0'),(1207,197,'1','4'),(1208,197,'2','1'),(1209,197,'1','5'),(1210,197,'2','2'),(1211,197,'2','3'),(1212,197,'2','4'),(1213,198,'1',''),(1214,198,'2',''),(1215,198,'1',''),(1216,198,'2',''),(1217,198,'1','4'),(1218,198,'2','1'),(1219,198,'1','5'),(1220,198,'2','3'),(1221,199,'1',''),(1222,199,'2',''),(1223,199,'1',''),(1224,199,'2','0'),(1225,199,'1','3'),(1226,199,'2','1'),(1227,199,'1','4'),(1228,199,'2','2'),(1229,199,'1','5'),(1230,199,'2','7'),(1231,200,'1',''),(1232,200,'2',''),(1233,200,'1',''),(1234,200,'2','0'),(1235,200,'1','3'),(1236,200,'2','1'),(1237,200,'1','4'),(1238,200,'2','2'),(1239,200,'1','5'),(1240,200,'2','7'),(1241,201,'1',''),(1242,201,'2',''),(1243,201,'1',''),(1244,201,'2','0'),(1245,201,'1','3'),(1246,201,'2','1'),(1247,201,'1','4'),(1248,201,'2','2'),(1249,201,'1','5'),(1250,201,'2','7'),(1251,202,'1',''),(1252,202,'2',''),(1253,202,'1',''),(1254,202,'2',''),(1255,203,'1',''),(1256,203,'2',''),(1257,203,'1',''),(1258,203,'2',''),(1259,204,'1',''),(1260,204,'2',''),(1261,204,'1',''),(1262,204,'2',''),(1263,205,'1',''),(1264,205,'2',''),(1265,206,'1',''),(1266,206,'2',''),(1267,206,'1',''),(1268,206,'2',''),(1269,207,'1',''),(1270,207,'2',''),(1271,207,'1','0'),(1272,207,'2',''),(1273,207,'1','1'),(1274,207,'1','2'),(1275,208,'1',''),(1276,208,'2',''),(1277,208,'1',''),(1278,208,'2',''),(1279,209,'1',''),(1280,209,'2',''),(1281,209,'1',''),(1282,209,'2',''),(1283,210,'1',''),(1284,210,'2',''),(1285,210,'1',''),(1286,210,'2',''),(1287,211,'1',''),(1288,211,'2',''),(1289,211,'1',''),(1290,211,'2',''),(1291,211,'1','7'),(1292,212,'1',''),(1293,212,'2',''),(1294,212,'1',''),(1295,212,'2',''),(1296,213,'1',''),(1297,213,'2',''),(1298,213,'1',''),(1299,213,'2',''),(1300,214,'1',''),(1301,214,'2',''),(1302,214,'1','7'),(1303,214,'2',''),(1304,214,'1','8'),(1305,215,'1',''),(1306,215,'2',''),(1307,215,'1',''),(1308,215,'2',''),(1309,216,'1',''),(1310,216,'2',''),(1311,216,'1',''),(1312,216,'2',''),(1313,216,'2','0'),(1314,216,'2','1'),(1315,217,'1',''),(1316,217,'2',''),(1317,217,'1',''),(1318,217,'2',''),(1319,218,'1',''),(1320,218,'2',''),(1321,218,'1',''),(1322,218,'2',''),(1323,219,'1',''),(1324,219,'2',''),(1325,219,'1',''),(1326,219,'2',''),(1327,220,'1',''),(1328,220,'2',''),(1329,220,'1',''),(1330,220,'2',''),(1331,221,'1',''),(1332,221,'2',''),(1333,221,'1',''),(1334,221,'2',''),(1335,221,'1','0'),(1336,221,'1','1'),(1337,221,'1','2'),(1338,222,'1',''),(1339,222,'2',''),(1340,222,'1',''),(1341,222,'2',''),(1342,223,'1',''),(1343,223,'2',''),(1344,223,'1',''),(1345,223,'2','0'),(1346,223,'2','4'),(1347,224,'1',''),(1348,224,'2',''),(1349,224,'1',''),(1350,224,'2',''),(1351,224,'1','1'),(1352,224,'1','7'),(1353,225,'1',''),(1354,225,'2',''),(1355,225,'1',''),(1356,225,'2','0'),(1357,225,'2','4'),(1358,226,'1',''),(1359,226,'2',''),(1360,226,'1',''),(1361,226,'2','0'),(1362,226,'2','4'),(1363,227,'1',''),(1364,227,'2',''),(1365,227,'1',''),(1366,227,'2','0'),(1367,227,'2','4'),(1368,228,'1',''),(1369,228,'2',''),(1370,228,'1',''),(1371,228,'2',''),(1372,229,'1',''),(1373,229,'2',''),(1374,229,'1',''),(1375,229,'2',''),(1376,230,'1',''),(1377,230,'2',''),(1378,230,'1',''),(1379,230,'2',''),(1380,231,'1',''),(1381,231,'2',''),(1382,231,'1',''),(1383,231,'2',''),(1384,231,'2','0'),(1385,231,'2','7'),(1386,232,'1',''),(1387,232,'2',''),(1388,232,'1',''),(1389,232,'2',''),(1390,233,'1',''),(1391,233,'2',''),(1392,233,'1',''),(1393,233,'2',''),(1394,233,'1','0'),(1395,233,'1','1'),(1396,234,'1',''),(1397,234,'2',''),(1398,234,'1','0'),(1399,234,'2',''),(1400,234,'1','1'),(1401,234,'2','0'),(1402,234,'2','4'),(1403,235,'1',''),(1404,235,'2',''),(1405,235,'1','0'),(1406,235,'2','0'),(1407,235,'1','1'),(1408,235,'2','4'),(1409,236,'1',''),(1410,236,'2',''),(1411,236,'1',''),(1412,236,'2',''),(1413,236,'1','0'),(1414,236,'1','1'),(1415,237,'1',''),(1416,237,'2',''),(1417,237,'1',''),(1418,237,'2',''),(1419,237,'1','0'),(1420,237,'1','1'),(1421,238,'1',''),(1422,238,'2',''),(1423,238,'1','0'),(1424,238,'2',''),(1425,238,'1','1'),(1426,238,'1','3'),(1427,239,'1',''),(1428,239,'2',''),(1429,239,'1','0'),(1430,239,'2',''),(1431,239,'1','1'),(1432,239,'1','2'),(1433,240,'1',''),(1434,240,'2',''),(1435,240,'1','0'),(1436,240,'2',''),(1437,240,'1','1'),(1438,240,'1','2'),(1439,241,'1',''),(1440,241,'2',''),(1441,241,'1',''),(1442,241,'2',''),(1443,242,'1',''),(1444,242,'2',''),(1445,242,'1',''),(1446,242,'2',''),(1447,243,'1',''),(1448,243,'2',''),(1449,243,'1',''),(1450,243,'2',''),(1451,244,'1',''),(1452,244,'2',''),(1453,244,'1',''),(1454,244,'2',''),(1455,245,'1',''),(1456,245,'2',''),(1457,245,'1',''),(1458,245,'2',''),(1459,246,'1',''),(1460,246,'2',''),(1461,246,'1',''),(1462,246,'2',''),(1463,247,'1',''),(1464,247,'2',''),(1465,247,'1',''),(1466,247,'2',''),(1467,248,'1',''),(1468,248,'2',''),(1469,248,'1',''),(1470,248,'2',''),(1471,249,'1',''),(1472,249,'2',''),(1473,249,'1',''),(1474,249,'2',''),(1475,250,'1',''),(1476,250,'2',''),(1477,250,'1',''),(1478,250,'2',''),(1479,251,'1',''),(1480,251,'2',''),(1481,251,'1',''),(1482,251,'2',''),(1483,252,'1',''),(1484,252,'2',''),(1485,252,'1',''),(1486,252,'2',''),(1487,253,'1',''),(1488,253,'2',''),(1489,253,'1',''),(1490,253,'2',''),(1491,254,'1',''),(1492,254,'2',''),(1493,254,'1',''),(1494,254,'2',''),(1495,255,'1',''),(1496,255,'2',''),(1497,255,'1',''),(1498,255,'2',''),(1499,256,'1',''),(1500,256,'2',''),(1501,256,'1',''),(1502,256,'2',''),(1503,257,'1',''),(1504,257,'2',''),(1505,257,'1',''),(1506,257,'2',''),(1507,258,'1',''),(1508,258,'2',''),(1509,258,'1',''),(1510,258,'2',''),(1511,259,'1',''),(1512,259,'2',''),(1513,259,'1',''),(1514,259,'2',''),(1515,260,'1',''),(1516,260,'2',''),(1517,260,'1',''),(1518,260,'2',''),(1519,260,'2','7'),(1520,261,'1',''),(1521,261,'2',''),(1522,261,'1',''),(1523,261,'2',''),(1524,262,'1',''),(1525,262,'2',''),(1526,262,'1',''),(1527,262,'2',''),(1528,263,'1',''),(1529,263,'2',''),(1530,263,'1',''),(1531,263,'2',''),(1532,264,'1',''),(1533,264,'2',''),(1534,264,'1',''),(1535,264,'2',''),(1536,265,'1',''),(1537,265,'2',''),(1538,265,'1',''),(1539,265,'2',''),(1540,265,'1','0'),(1541,265,'1','1'),(1542,266,'1',''),(1543,266,'2',''),(1544,266,'1','0'),(1545,266,'2',''),(1546,266,'1','1'),(1547,266,'1','3'),(1548,267,'1',''),(1549,267,'2',''),(1550,267,'1','0'),(1551,267,'2',''),(1552,267,'1','1'),(1553,267,'1','2'),(1554,268,'1',''),(1555,268,'2',''),(1556,268,'1','0'),(1557,268,'2',''),(1558,268,'1','1'),(1559,268,'1','2'),(1560,269,'1',''),(1561,269,'2',''),(1562,269,'1',''),(1563,269,'2',''),(1564,270,'1',''),(1565,270,'2',''),(1566,271,'1',''),(1567,271,'2',''),(1568,272,'1',''),(1569,272,'2',''),(1570,272,'1',''),(1571,272,'2',''),(1572,273,'1',''),(1573,273,'2',''),(1574,273,'1',''),(1575,273,'2',''),(1576,274,'1',''),(1577,274,'2',''),(1578,274,'1',''),(1579,274,'2',''),(1580,275,'1',''),(1581,275,'2',''),(1582,275,'1',''),(1583,275,'2',''),(1584,276,'1',''),(1585,276,'2',''),(1586,276,'1',''),(1587,276,'2',''),(1588,277,'1',''),(1589,277,'2',''),(1590,277,'1',''),(1591,277,'2',''),(1592,278,'1',''),(1593,278,'2',''),(1594,278,'1',''),(1595,278,'2',''),(1596,279,'1',''),(1597,279,'2',''),(1598,279,'1','0'),(1599,279,'2',''),(1600,279,'1','1'),(1601,279,'1','3'),(1602,280,'1',''),(1603,280,'2',''),(1604,280,'1','0'),(1605,280,'2',''),(1606,280,'1','1'),(1607,280,'1','2'),(1608,281,'1',''),(1609,281,'2',''),(1610,281,'1','0'),(1611,281,'2',''),(1612,281,'1','1'),(1613,281,'1','2'),(1614,282,'1',''),(1615,282,'2',''),(1616,282,'1',''),(1617,282,'2',''),(1618,283,'1',''),(1619,283,'2',''),(1620,283,'1',''),(1621,283,'2',''),(1622,284,'1',''),(1623,284,'2',''),(1624,284,'1',''),(1625,284,'2',''),(1626,285,'1',''),(1627,285,'2',''),(1628,285,'1',''),(1629,285,'2',''),(1630,286,'1',''),(1631,286,'2',''),(1632,286,'1',''),(1633,286,'2',''),(1634,287,'1',''),(1635,287,'2',''),(1636,287,'1',''),(1637,287,'2',''),(1638,288,'1',''),(1639,288,'2',''),(1640,288,'1',''),(1641,288,'2',''),(1642,289,'1',''),(1643,289,'2',''),(1644,289,'1',''),(1645,289,'2',''),(1646,290,'1',''),(1647,290,'2',''),(1648,290,'1',''),(1649,290,'2',''),(1650,291,'1',''),(1651,291,'2',''),(1652,291,'1','0'),(1653,291,'2',''),(1654,291,'1','1'),(1655,292,'1',''),(1656,292,'2',''),(1657,292,'1',''),(1658,292,'2',''),(1659,293,'1',''),(1660,293,'2',''),(1661,293,'1',''),(1662,293,'2',''),(1663,294,'1',''),(1664,294,'2',''),(1665,294,'1',''),(1666,294,'2',''),(1667,295,'1',''),(1668,295,'2',''),(1669,295,'1',''),(1670,295,'2',''),(1671,296,'1',''),(1672,296,'2',''),(1673,296,'1',''),(1674,296,'2',''),(1675,297,'1',''),(1676,297,'2',''),(1677,297,'1',''),(1678,297,'2',''),(1679,298,'1',''),(1680,298,'2',''),(1681,298,'1',''),(1682,298,'2',''),(1683,299,'1',''),(1684,299,'2',''),(1685,299,'1',''),(1686,299,'2',''),(1687,300,'1',''),(1688,300,'2',''),(1689,300,'1',''),(1690,300,'2',''),(1691,301,'1',''),(1692,301,'2',''),(1693,301,'1',''),(1694,301,'2',''),(1695,302,'1',''),(1696,302,'2',''),(1697,302,'1',''),(1698,302,'2',''),(1699,303,'1',''),(1700,303,'2',''),(1701,303,'1',''),(1702,303,'2',''),(1703,304,'1',''),(1704,304,'2',''),(1705,304,'1',''),(1706,304,'2',''),(1707,305,'1',''),(1708,305,'2',''),(1709,305,'1',''),(1710,305,'2',''),(1711,305,'1','0'),(1712,305,'1','1'),(1713,306,'1',''),(1714,306,'2',''),(1715,306,'1',''),(1716,306,'2',''),(1717,307,'1',''),(1718,307,'2',''),(1719,307,'1',''),(1720,307,'2',''),(1721,308,'1',''),(1722,308,'2',''),(1723,308,'1',''),(1724,308,'2',''),(1725,309,'1',''),(1726,309,'2',''),(1727,309,'1',''),(1728,309,'2',''),(1729,310,'1',''),(1730,310,'2',''),(1731,310,'1','0'),(1732,310,'2','0'),(1733,310,'1','1'),(1734,310,'2','1'),(1735,310,'1','3'),(1736,310,'2','2'),(1737,310,'2','3'),(1738,310,'2','4'),(1739,310,'2','5'),(1740,310,'2','6'),(1741,310,'2','7'),(1742,311,'1',''),(1743,311,'2',''),(1744,311,'1','0'),(1745,311,'2','0'),(1746,311,'1','1'),(1747,311,'2','1'),(1748,311,'1','2'),(1749,311,'2','2'),(1750,311,'2','3'),(1751,311,'2','4'),(1752,311,'2','5'),(1753,311,'2','6'),(1754,311,'2','7'),(1755,312,'1',''),(1756,312,'2',''),(1757,312,'1','0'),(1758,312,'2','0'),(1759,312,'1','1'),(1760,312,'2','1'),(1761,312,'1','2'),(1762,312,'2','2'),(1763,312,'2','3'),(1764,312,'2','4'),(1765,312,'2','5'),(1766,312,'2','6'),(1767,312,'2','7'),(1768,313,'1',''),(1769,313,'2',''),(1770,313,'1',''),(1771,313,'2','0'),(1772,313,'2','1'),(1773,313,'2','2'),(1774,313,'2','3'),(1775,313,'2','4'),(1776,313,'2','5'),(1777,313,'2','6'),(1778,313,'2','7'),(1779,314,'1',''),(1780,314,'2',''),(1781,314,'1',''),(1782,314,'2','0'),(1783,314,'2','1'),(1784,314,'2','2'),(1785,314,'2','3'),(1786,314,'2','4'),(1787,314,'2','5'),(1788,314,'2','6'),(1789,314,'2','7'),(1790,315,'1',''),(1791,315,'2',''),(1792,315,'1',''),(1793,315,'2','0'),(1794,315,'2','1'),(1795,315,'2','2'),(1796,315,'2','3'),(1797,315,'2','4'),(1798,315,'2','5'),(1799,315,'2','6'),(1800,315,'2','7'),(1801,316,'1',''),(1802,316,'2',''),(1803,316,'1',''),(1804,316,'2','0'),(1805,316,'2','1'),(1806,316,'2','2'),(1807,316,'2','3'),(1808,316,'2','4'),(1809,316,'2','5'),(1810,316,'2','6'),(1811,316,'2','7'),(1812,317,'1',''),(1813,317,'2',''),(1814,317,'1',''),(1815,317,'2','0'),(1816,317,'2','1'),(1817,317,'2','2'),(1818,317,'2','3'),(1819,317,'2','4'),(1820,317,'2','5'),(1821,317,'2','6'),(1822,317,'2','7'),(1823,318,'1',''),(1824,318,'2',''),(1825,318,'1',''),(1826,318,'2','0'),(1827,318,'2','1'),(1828,318,'2','2'),(1829,318,'2','3'),(1830,318,'2','4'),(1831,318,'2','5'),(1832,318,'2','6'),(1833,318,'2','7'),(1834,319,'1',''),(1835,319,'2',''),(1836,319,'1',''),(1837,319,'2','0'),(1838,319,'2','1'),(1839,319,'2','2'),(1840,319,'2','3'),(1841,319,'2','4'),(1842,319,'2','5'),(1843,319,'2','6'),(1844,319,'2','7'),(1845,320,'1',''),(1846,320,'2',''),(1847,320,'1',''),(1848,320,'2','0'),(1849,320,'2','1'),(1850,320,'2','2'),(1851,320,'2','3'),(1852,320,'2','4'),(1853,320,'2','5'),(1854,320,'2','6'),(1855,320,'2','7'),(1856,321,'2',''),(1857,321,'2','0'),(1858,321,'2','1'),(1859,321,'2','2'),(1860,321,'2','3'),(1861,321,'2','4'),(1862,321,'2','5'),(1863,321,'2','6'),(1864,321,'2','7'),(1865,322,'1',''),(1866,322,'2',''),(1867,322,'1',''),(1868,322,'2','0'),(1869,322,'2','1'),(1870,322,'2','2'),(1871,322,'2','3'),(1872,322,'2','4'),(1873,322,'2','5'),(1874,322,'2','6'),(1875,322,'2','7'),(1876,323,'1',''),(1877,323,'2',''),(1878,323,'1',''),(1879,323,'2',''),(1880,323,'1','0'),(1881,323,'2','0'),(1882,323,'1','1'),(1883,323,'2','1'),(1884,323,'1','2'),(1885,323,'2','2'),(1886,323,'1','3'),(1887,323,'2','8'),(1888,323,'1','4'),(1889,323,'1','7'),(1890,324,'1',''),(1891,324,'2',''),(1892,324,'1',''),(1893,324,'2','');
77
78
79
--
80
-- Dumping data for table marc_indicators_desc
81
--
82
83
INSERT INTO marc_indicators_desc VALUES (1,'en','Undefined'),(2,'en','Undefined'),(3,'en','Undefined'),(4,'en','Undefined'),(5,'en','Undefined'),(6,'en','Undefined'),(7,'en','Undefined'),(8,'en','Undefined'),(9,'en','Undefined'),(10,'en','Undefined'),(11,'en','Undefined'),(12,'en','Undefined'),(13,'en','National bibliographic agency'),(14,'en','Undefined'),(15,'en','Library and Archives Canada'),(16,'en','Undefined'),(17,'en','Source specified in subfield $2. Used when the source of the control number is indicated by a code in subfield $2. Codes from : MARC Code List for Organizations'),(18,'en','Undefined'),(19,'en','Undefined'),(20,'en','Undefined'),(21,'en','Undefined'),(22,'en','Undefined'),(23,'en','Undefined'),(24,'en','Undefined'),(25,'en','Undefined'),(26,'en','Undefined'),(27,'en','Undefined'),(28,'en','Undefined'),(29,'en','Undefined'),(30,'en','Level of international interest'),(31,'en','Undefined'),(32,'en','No level specified'),(33,'en','Undefined'),(34,'en','Continuing resource of international interest'),(35,'en','Continuing resource not of international interest'),(36,'en','Type of standard number or code'),(37,'en','Difference indicator'),(38,'en','International Standard Recording Code'),(39,'en','No information provided'),(40,'en','Universal Product Code'),(41,'en','No difference'),(42,'en','International Standard Music Number'),(43,'en','Difference'),(44,'en','International Article Number'),(45,'en','Serial Item and Contribution Identifier'),(46,'en','Source specified in sufield $2'),(47,'en','Unspecified type of starndard number or code'),(48,'en','Undefined'),(49,'en','Undefined'),(50,'en','Undefined'),(51,'en','Undefined'),(52,'en','Undefined'),(53,'en','Undefined'),(54,'en','Undefined'),(55,'en','Undefined'),(56,'en','Undefined'),(57,'en','Undefined'),(58,'en','Undefined'),(59,'en','Undefined'),(60,'en','Type of publisher number'),(61,'en','Note/added entry controller'),(62,'en','Issue number. Number used to indentify the issue designation, or serial identifiation, assigned by a publisher to a specific sound recording, side of a sound recording, or performance on a sound recording or to a group of sound recording issued as a set.'),(63,'en','No note, no added entry'),(64,'en','Matrix number. Master from witch the specific recording was pressed.'),(65,'en','Note, added entry'),(66,'en','Plate number. Assigned by a publisher to a specific music publication.'),(67,'en','Note, no added entry'),(68,'en','Other music number'),(69,'en','No note, added entry'),(70,'en','Videorecording number'),(71,'en','Other publisher number'),(72,'en','Undefined'),(73,'en','Undefined'),(74,'en','Undefined'),(75,'en','Undefined'),(76,'en','Undefined'),(77,'en','Undefined'),(78,'en','Undefined'),(79,'en','#- Undefined'),(80,'en','Undefined'),(81,'en','Undefined'),(82,'en','# -Undefined'),(83,'en','Undefined'),(84,'en','Type of date in subfield $a'),(85,'en','Type of event'),(86,'en','No date information'),(87,'en','No information provided'),(88,'en','Single date'),(89,'en','Capture. Pertains to the recording of sound, the filming of visual images, the making or producing of a item, or other form of creation of an item'),(90,'en','Multiple single dates'),(91,'en','Broadcast. Pertains to the broadcasting (i.e., transmission) or re-boardcasting of sound or visual images.'),(92,'en','Range of dates'),(93,'en','Finding. Pertains to the finding of a naturally ocurring object.'),(94,'en','Type of scale Specifies the type of scale information given'),(95,'en','Type of ring'),(96,'en','Scale indeterminable/No scale recorded. Used when no representative fraction is given in field 255.'),(97,'en','Not applicable'),(98,'en','Single scale'),(99,'en','Outer ring'),(100,'en','Range of scales'),(101,'en','Exclusion ring'),(102,'en','Undefined'),(103,'en','Undefined'),(104,'en','Undefined'),(105,'en','Undefined'),(106,'en','Undefined'),(107,'en','Undefined'),(108,'en','Undefined'),(109,'en','Undefined'),(110,'en','Undefined'),(111,'en','Undefined'),(112,'en','# -Undefined'),(113,'en','Undefined'),(114,'en','Undefined'),(115,'en','Undefined'),(116,'en','# -Undefined'),(117,'en','Undefined'),(118,'en','Undefined'),(119,'en','Undefined'),(120,'en','Undefined'),(121,'en','Undefined'),(122,'en','Translation indication'),(123,'en','Source of code'),(124,'en','Item not a translation/ does not include a translation'),(125,'en','MARC language code'),(126,'en','Item is or includes a translation'),(127,'en','Source specified in subfield $2'),(128,'en','Undefined'),(129,'en','Undefined'),(130,'en','Undefined'),(131,'en','Undefined'),(132,'en','Undefined'),(133,'en','Undefined'),(134,'en','Undefined'),(135,'en','Undefined'),(136,'en','Undefined'),(137,'en','Undefined'),(138,'en','Undefined'),(139,'en','Undefined'),(140,'en','Type of time period in subfield $b or $c'),(141,'en','Undefined'),(142,'en','Subfield $b or $c not present'),(143,'en','Undefined'),(144,'en','Single date/time'),(145,'en','Multiple sigle dates/times. Multiple $b and/or $c subfields are present, each containing a date/time.'),(146,'en','Range of dates/times. Two $b and/or $c subfields are present and contain a range of dates/times'),(147,'en','Undefined'),(148,'en','Undefined'),(149,'en','Undefined'),(150,'en','Undefined'),(151,'en','Undefined'),(152,'en','Undefined'),(153,'en','# -Undefined'),(154,'en','Undefined'),(155,'en','Undefined'),(156,'en','Undefined'),(157,'en','Undefined'),(158,'en','Undefined'),(159,'en','Existence in LC collection'),(160,'en','Source of call number'),(161,'en','No information provided. Used for all call numbers assigned by agencies other than the Library of Congress'),(162,'en','Assigned by LC. Used when an institution is transcribing from lC cataloging copy.'),(163,'en','Item is in LC. Other agencies should use this value when transcribing from LC cataloging copy on which the call number is neither enclosed within brackets nor preceded by a Maltese cross'),(164,'en','Assigned by agency other than LC.'),(165,'en','Item is not in LC. Used by other agencies when transcribing from LC copy on the call number appears in brackets or is preceded by a Maltese cross. Brackets that customarily surround call numbers for items not in LC are not carried in the MARC record; they may be generated for display.'),(166,'en','Undefined'),(167,'en','Undefined'),(168,'en','Undefined'),(169,'en','Undefined'),(170,'en','Code source'),(171,'en','Undefined'),(172,'en','Library of Congress Classification'),(173,'en','Undefined'),(174,'en','U.S. Dept. of Defense Classification'),(175,'en','Source specified in subfield $2'),(176,'en','Existence in LAC collection'),(177,'en','Type, completeness, source of class/call number'),(178,'en','Information not provided. Used in any record input by an institution other than LAC.'),(179,'en','LC - based call number assigned by LAC'),(180,'en','Work held by LAC'),(181,'en','Complete LC class number assigned by LAC'),(182,'en','Work not held by LAC'),(183,'en','Incomplete LC class number asigned by LAC'),(184,'en','LC- based call number assigned by the contibuting library'),(185,'en','4 -Complete LC class number assigned by the contributing library'),(186,'en','Incomplete LC class number assigned by de contributing library'),(187,'en','Other call number assigned by LAC'),(188,'en','Other class number assigned by LAC'),(189,'en','Other call number assigned by the contributing library'),(190,'en','Other class number assigned by the contributing library'),(191,'en','Existence in NLM collection'),(192,'en','Source of call number'),(193,'en','# -No information provided. Used for call numbers assigned by an organization other than NLM'),(194,'en','Assigned by NLM'),(195,'en','Item is in NLM'),(196,'en','Assigned by agency other than NLM'),(197,'en','Item is not in NLM'),(198,'en','Undefined'),(199,'en','Undefined'),(200,'en','Undefined'),(201,'en','Undefined'),(202,'en','Undefined'),(203,'en','Undefined'),(204,'en','# -Undefined'),(205,'en','Undefined'),(206,'en','Existence in NAL collection'),(207,'en','Undefined'),(208,'en','Item is in NAL'),(209,'en','Undefined'),(210,'en','Item is not in NAL'),(211,'en','Undefined'),(212,'en','Undefined'),(213,'en','Undefined'),(214,'en','# -Undefined'),(215,'en','Undefined'),(216,'en','Code source'),(217,'en','Undefined'),(218,'en','0 -NAL subject category code list'),(219,'en','Source specified in subfield $2'),(220,'en','Undefined'),(221,'en','Undefined'),(222,'en','Undefined'),(223,'en','# -Undefined'),(224,'en','Undefined'),(225,'en','Undefined'),(226,'en','Undefined'),(227,'en','Undefined'),(228,'en','Type of edition'),(229,'en','Source of classification number'),(230,'en','Full edition'),(231,'en','No information provided'),(232,'en','Abridged edition'),(233,'en','Assigned by LC. May be used by organizations transcribing from LC copy'),(234,'en','Assigned by agency other than LC'),(235,'en','Undefined'),(236,'en','Undefined'),(237,'en','Undefined'),(238,'en','Undefined'),(239,'en','Number source'),(240,'en','Undefined'),(241,'en','Source specified in subfield $2. Classification number other than the U.S. or Canadian scheme'),(242,'en','Undefined'),(243,'en','Superintendent of Documents Classification System. Assigned by the U.S. Government Printing Office. Supt.of Docs.no.: may be generated for display'),(244,'en','Government of Canada Publications: Outline of Classification'),(245,'en','Undefined'),(246,'en','Undefined'),(247,'en','Undefined'),(248,'en','# -Undefined'),(249,'en','Type of personal name entry element'),(250,'en','Undefined'),(251,'en','Forename. Forename or a name consisting of words, initials, letters,etc., that are formatted in direc order'),(252,'en','Undefined'),(253,'en','Surname. Single or multiple surname formatted in inverted order or a single name without forenames that is known to be a surname.'),(254,'en','Family name. Name represents a family, clan, dynasty, house, or other such group and may be formatted in direct or inverted order.'),(255,'en','Type of corporate name entry element'),(256,'en','Undefined'),(257,'en','Inverted name. Corporate name begins with a personal name in inverted order.'),(258,'en','Undefined'),(259,'en','1- Jurisdiction name. Name of a jurisdiction that is also an ecclesiastical entity or is a jurisdiction name under which a corporate name or a title of a work is entered.'),(260,'en','Name in direct order.'),(261,'en','Type of meeting name entry element'),(262,'en','Undefined'),(263,'en','Inverted name. Meeting name begins with a personal name in inverted order.'),(264,'en','Undefined'),(265,'en','1 -Jurisdiction name. Jurisdiction name under which a meeting name is entered'),(266,'en','Name in direct order'),(267,'en','Nonfiling characters'),(268,'en','Undefined'),(269,'en','Number of nonfiling characters'),(270,'en','Undefined'),(271,'en','Number of nonfiling characters'),(272,'en','Number of nonfiling characters'),(273,'en','Number of nonfiling characters'),(274,'en','Number of nonfiling characters'),(275,'en','Number of nonfiling characters'),(276,'en','Number of nonfiling characters'),(277,'en','Number of nonfiling characters'),(278,'en','Number of nonfiling characters'),(279,'en','Number of nonfiling characters'),(280,'en','Title added entry'),(281,'en','Type'),(282,'en','No added entry'),(283,'en','Abbreviated key title'),(284,'en','Added entry'),(285,'en','Other abbreviated title'),(286,'en','Undefined'),(287,'en','Nonfiling characters'),(288,'en','Undefined'),(289,'en','No nonfiling characters'),(290,'en','Number of nonfiling characters'),(291,'en','Number of nonfiling characters'),(292,'en','Number of nonfiling characters'),(293,'en','Number of nonfiling characters'),(294,'en','Number of nonfiling characters'),(295,'en','Number of nonfiling characters'),(296,'en','Number of nonfiling characters'),(297,'en','Number of nonfiling characters'),(298,'en','Number of nonfiling characters'),(299,'en','Uniform title printed or displayed'),(300,'en','Nonfiling characters'),(301,'en','Not printed or displayed'),(302,'en','Number of nonfiling characters'),(303,'en','Printed or displayed'),(304,'en','Number of nonfiling characters'),(305,'en','Number of nonfiling characters'),(306,'en','Number of nonfiling characters'),(307,'en','Number of nonfiling characters'),(308,'en','Number of nonfiling characters'),(309,'en','Number of nonfiling characters'),(310,'en','Number of nonfiling characters'),(311,'en','Number of nonfiling characters'),(312,'en','Number of nonfiling characters'),(313,'en','Title added entry'),(314,'en','Nonfiling characters'),(315,'en','No added entry'),(316,'en','No nonfiling characters'),(317,'en','Added entry'),(318,'en','Number of nonfiling characters'),(319,'en','Number of nonfiling characters'),(320,'en','Number of nonfiling characters'),(321,'en','Number of nonfiling characters'),(322,'en','Number of nonfiling characters'),(323,'en','Number of nonfiling characters'),(324,'en','Number of nonfiling characters'),(325,'en','Number of nonfiling characters'),(326,'en','Number of nonfiling characters'),(327,'en','Title added entry'),(328,'en','Nonfiling characters'),(329,'en','No added entry. No title added entry is made, either because no title added entry is desired or because the title added entry is not traced the same as the title in field 245'),(330,'en','No nonfiling characters'),(331,'en','Added entry. Desired title added entry is the same as the title in field 245'),(332,'en','Number of nonfiling characters'),(333,'en','Number of nonfiling characters'),(334,'en','Number of nonfiling characters'),(335,'en','Number of nonfiling characters'),(336,'en','Number of nonfiling characters'),(337,'en','Number of nonfiling characters'),(338,'en','Number of nonfiling characters'),(339,'en','Number of nonfiling characters'),(340,'en','Number of nonfiling characters'),(341,'en','Note/added entry controller'),(342,'en','Type of title'),(343,'en','Note, no added entry'),(344,'en','No type specified'),(345,'en','Note, added entry'),(346,'en','Portion of title'),(347,'en','No note, no added entry'),(348,'en','Parallel title'),(349,'en','No note, added entry'),(350,'en','Distintictive title'),(351,'en','Other title'),(352,'en','Cover title'),(353,'en','Added title page title'),(354,'en','Caption title'),(355,'en','Running title'),(356,'en','Spine title'),(357,'en','Title added entry'),(358,'en','Note controller'),(359,'en','No added entry'),(360,'en','Display note'),(361,'en','Added entry'),(362,'en','Do not display note'),(363,'en','Undefined'),(364,'en','Undefined'),(365,'en','Undefined'),(366,'en','Undefined'),(367,'en','Undefined'),(368,'en','Undefined'),(369,'en','Undefined'),(370,'en','Undefined'),(371,'en','Undefined'),(372,'en','Undefined'),(373,'en','Undefined'),(374,'en','Undefined'),(375,'en','Undefined'),(376,'en','Undefined'),(377,'en','Undefined'),(378,'en','Undefined'),(379,'en','Undefined'),(380,'en','Undefined'),(381,'en','Undefined'),(382,'en','Undefined'),(383,'en','Undefined'),(384,'en','Undefined'),(385,'en','Undefined'),(386,'en','Undefined'),(387,'en','Sequence of publishing statements'),(388,'en','Undefined'),(389,'en','Not applicable/ No information provided/ Earliest available publisher'),(390,'en','Undefined'),(391,'en','Intervening publisher'),(392,'en','3- Current/latest publisher'),(393,'en','Undefined'),(394,'en','Undefined'),(395,'en','# -Undefined'),(396,'en','# -Undefined'),(397,'en','Level'),(398,'en','Type of address'),(399,'en','No level specified'),(400,'en','No type specified'),(401,'en','Primary'),(402,'en','Mailing'),(403,'en','Secondary'),(404,'en','Type specified in subfield $i'),(405,'en','Undefined'),(406,'en','Undefined'),(407,'en','# -Undefined'),(408,'en','# -Undefined'),(409,'en','Undefined'),(410,'en','Undefined'),(411,'en','Undefined'),(412,'en','Undefined'),(413,'en','Display constant controller'),(414,'en','Undefined'),(415,'en','Hours'),(416,'en','Undefined'),(417,'en','No display constant generated'),(418,'en','Undefined'),(419,'en','Undefined'),(420,'en','Undefined'),(421,'en','Undefined'),(422,'en','Undefined'),(423,'en','Undefined'),(424,'en','Undefined'),(425,'en','Undefined'),(426,'en','Undefined'),(427,'en','Undefined'),(428,'en','Undefined'),(429,'en','Undefined'),(430,'en','Undefined'),(431,'en','Undefined'),(432,'en','Undefined'),(433,'en','Undefined'),(434,'en','Undefined'),(435,'en','Undefined'),(436,'en','Undefined'),(437,'en','Undefined'),(438,'en','Undefined'),(439,'en','Undefined'),(440,'en','Undefined'),(441,'en','Undefined'),(442,'en','Geospatial reference dimension'),(443,'en','Geospatial reference method'),(444,'en','Horizontal coordinate system'),(445,'en','Geographic'),(446,'en','Vertical coordinate system'),(447,'en','Map projection'),(448,'en','Grid coordinate system'),(449,'en','Local planar'),(450,'en','Local'),(451,'en','Geodentic model'),(452,'en','Altitude'),(453,'en','Method specified in $2'),(454,'en','Depth'),(455,'en','Undefined'),(456,'en','Undefined'),(457,'en','# -Undefined'),(458,'en','# -Undefined'),(459,'en','Undefined'),(460,'en','Undefined'),(461,'en','Undefined'),(462,'en','Undefined'),(463,'en','Undefined'),(464,'en','Undefined'),(465,'en','Undefined'),(466,'en','# -Undefined'),(467,'en','Controlled element'),(468,'en','Undefined'),(469,'en','Document'),(470,'en','Undefined'),(471,'en','Títle'),(472,'en','Abstract'),(473,'en','Contents note'),(474,'en','Author'),(475,'en','Record'),(476,'en','None of the above'),(477,'en','Undefined'),(478,'en','Undefined'),(479,'en','# -Undefined'),(480,'en','Undefined'),(481,'en','Format of date'),(482,'en','Undefined'),(483,'en','Formatted style'),(484,'en','Undefined'),(485,'en','Unformatted note'),(486,'en','Start / End designator'),(487,'en','State of issuance'),(488,'en','No information provided'),(489,'en','Not specified'),(490,'en','Starting information'),(491,'en','Closed. The sequence of the publication has terminated and is no longer being issued'),(492,'en','Ending information'),(493,'en','1 -Open. The sequence of the publication continues to be issued.'),(494,'en','Undefined'),(495,'en','Undefined'),(496,'en','Undefined'),(497,'en','Undefined'),(498,'en','Undefined'),(499,'en','Undefined'),(500,'en','Undefined'),(501,'en','Undefined'),(502,'en','Undefined'),(503,'en','Undefined'),(504,'en','Undefined'),(505,'en','Undefined'),(506,'en','Undefined'),(507,'en','Undefined'),(508,'en','Undefined'),(509,'en','Undefined'),(510,'en','Undefined'),(511,'en','Undefined'),(512,'en','Undefined'),(513,'en','Undefined'),(514,'en','Undefined'),(515,'en','Undefined'),(516,'en','Undefined'),(517,'en','Undefined'),(518,'en','Key type'),(519,'en','Undefined'),(520,'en','Relationship to original unknown'),(521,'en','Undefined'),(522,'en','Original key'),(523,'en','Transposed key'),(524,'en','Series tracing policy'),(525,'en','Undefined'),(526,'en','Series not traced'),(527,'en','Undefined'),(528,'en','Series traced'),(529,'en','Undefined'),(530,'en','Undefined'),(531,'en','Undefined'),(532,'en','Undefined'),(533,'en','Undefined'),(534,'en','Undefined'),(535,'en','Undefined'),(536,'en','Undefined'),(537,'en','Undefined'),(538,'en','Undefined'),(539,'en','Undefined'),(540,'en','Undefined'),(541,'en','Undefined'),(542,'en','Undefined'),(543,'en','Undefined'),(544,'en','Undefined'),(545,'en','Display constant controller'),(546,'en','Level of content designation'),(547,'en','Contents'),(548,'en','Basic'),(549,'en','Incomplete contents'),(550,'en','Enhanced'),(551,'en','Partial contents'),(552,'en','No display constant generated'),(553,'en','Restriction'),(554,'en','Undefined'),(555,'en','No information provided'),(556,'en','Undefined'),(557,'en','No restrictions'),(558,'en','Restrictions apply'),(559,'en','Undefined'),(560,'en','Undefined'),(561,'en','Undefined'),(562,'en','Undefined'),(563,'en','Undefined'),(564,'en','Undefined'),(565,'en','Undefined'),(566,'en','Undefined'),(567,'en','Coverage/location in source'),(568,'en','Undefined'),(569,'en','Coverage unknown'),(570,'en','Undefined'),(571,'en','Coverage complete'),(572,'en','Coverage is selective'),(573,'en','Location in source not given'),(574,'en','Location in source given'),(575,'en','Display constant controller'),(576,'en','Undefined'),(577,'en','No display constant generated'),(578,'en','Undefined'),(579,'en','Cast'),(580,'en','Undefined'),(581,'en','Undefined'),(582,'en','# -Undefined'),(583,'en','Undefined'),(584,'en','Undefined'),(585,'en','Undefined'),(586,'en','Undefined'),(587,'en','Undefined'),(588,'en','Undefined'),(589,'en','Undefined'),(590,'en','Undefined'),(591,'en','Undefined'),(592,'en','Display constant controller'),(593,'en','Undefined'),(594,'en','Type of file'),(595,'en','Undefined'),(596,'en','No display constant generated'),(597,'en','Undefined'),(598,'en','Undefined'),(599,'en','Undefined'),(600,'en','Undefined'),(601,'en','Display constant controller'),(602,'en','Undefined'),(603,'en','Summary'),(604,'en','Undefined'),(605,'en','Subject'),(606,'en','Review'),(607,'en','Scope and content'),(608,'en','Content advice'),(609,'en','Abstract'),(610,'en','No display constant generated'),(611,'en','Display constant controller'),(612,'en','Undefined'),(613,'en','Audience'),(614,'en','Undefined'),(615,'en','Reading grade level'),(616,'en','Interest age level'),(617,'en','Interest grade level'),(618,'en','Special audience characteristics'),(619,'en','Motivation/interest level'),(620,'en','No display constant generated'),(621,'en','Display constant controller'),(622,'en','Undefined'),(623,'en','Geographic coverage'),(624,'en','Undefined'),(625,'en','No display constant generated'),(626,'en','Display constant controller'),(627,'en','Undefined'),(628,'en','Cite as'),(629,'en','Undefined'),(630,'en','No display constant generated'),(631,'en','Undefined'),(632,'en','Undefined'),(633,'en','# -Undefined'),(634,'en','Undefined'),(635,'en','Display constant controller'),(636,'en','Undefined'),(637,'en','Reading program'),(638,'en','Undefined'),(639,'en','No display constant generated'),(640,'en','Undefined'),(641,'en','Undefined'),(642,'en','Undefined'),(643,'en','Undefined'),(644,'en','Undefined'),(645,'en','Undefined'),(646,'en','# -Undefined'),(647,'en','Undefined'),(648,'en','Undefined'),(649,'en','Undefined'),(650,'en','Undefined'),(651,'en','Undefined'),(652,'en','Custodial role'),(653,'en','Undefined'),(654,'en','Holder of originals'),(655,'en','Undefined'),(656,'en','Holder of duplicates'),(657,'en','Undefined'),(658,'en','Undefined'),(659,'en','# -Undefined'),(660,'en','Undefined'),(661,'en','Undefined'),(662,'en','Undefined'),(663,'en','Undefined'),(664,'en','Undefined'),(665,'en','Undefined'),(666,'en','Undefined'),(667,'en','Undefined'),(668,'en','Undefined'),(669,'en','Undefined'),(670,'en','Undefined'),(671,'en','# -Undefined'),(672,'en','Undefined'),(673,'en','Relationship'),(674,'en','Undefined'),(675,'en','No information provided'),(676,'en','Undefined'),(677,'en','Associated materials. Other materials identified in the note  have the same provenance but reside in a different repository'),(678,'en','Related materials. Other materials identified in the note share of activity, reside in the same repository, but have different provenance.'),(679,'en','Type of data'),(680,'en','Undefined'),(681,'en','No information provided'),(682,'en','Undefined'),(683,'en','Biographical sketch'),(684,'en','Administrative history'),(685,'en','Undefined'),(686,'en','Undefined'),(687,'en','Undefined'),(688,'en','Undefined'),(689,'en','Undefined'),(690,'en','Undefined'),(691,'en','Undefined'),(692,'en','Undefined'),(693,'en','Undefined'),(694,'en','Undefined'),(695,'en','Undefined'),(696,'en','Undefined'),(697,'en','Undefined'),(698,'en','Undefined'),(699,'en','Undefined'),(700,'en','Undefined'),(701,'en','Display constant controller'),(702,'en','Undefined'),(703,'en','Undefined'),(704,'en','No display constant generated'),(705,'en','Display constant controller'),(706,'en','Undefined'),(707,'en','Undefined'),(708,'en','No display constant generated'),(709,'en','Undefined'),(710,'en','Undefined'),(711,'en','# -Undefined'),(712,'en','Undefined'),(713,'en','Undefined'),(714,'en','Undefined'),(715,'en','# -Undefined'),(716,'en','Undefined'),(717,'en','Undefined'),(718,'en','Undefined'),(719,'en','Undefined'),(720,'en','Undefined'),(721,'en','Display constant controller'),(722,'en','Undefined'),(723,'en','File size'),(724,'en','Undefined'),(725,'en','Case file characteristics'),(726,'en','No display constant generated'),(727,'en','Display constant controller'),(728,'en','Undefined'),(729,'en','Methodology'),(730,'en','# -Undefined'),(731,'en','No display constant generated'),(732,'en','Undefined'),(733,'en','Undefined'),(734,'en','# -Undefined'),(735,'en','Undefined'),(736,'en','Display constant controller'),(737,'en','Undefined'),(738,'en','Publications'),(739,'en','Undefined'),(740,'en','No display constant generated'),(741,'en','Undefined'),(742,'en','Undefined'),(743,'en','# -Undefined'),(744,'en','Undefined'),(745,'en','Undefined'),(746,'en','Undefined'),(747,'en','Undefined'),(748,'en','Undefined'),(749,'en','Undefined'),(750,'en','Undefined'),(751,'en','Undefined'),(752,'en','# -Undefined'),(753,'en','Display constant controller'),(754,'en','Undefined'),(755,'en','Awards'),(756,'en','Undefined'),(757,'en','No display constant generated'),(758,'en','Undefined'),(759,'en','Undefined'),(760,'en','Undefined'),(761,'en','Undefined'),(762,'en','Type of personal name entry element'),(763,'en','Thesaurus'),(764,'en','Forename'),(765,'en','0 -Library of Congress Subject Headings'),(766,'en','Surname.'),(767,'en','LC subject headings for children''s literature.'),(768,'en','Family Name'),(769,'en','Medical Subject Headings. '),(770,'en','National Agricultural Library subject authority file'),(771,'en','Source not specified'),(772,'en','Canadian Subject Headings'),(773,'en','Répertoire de vedettes-matière'),(774,'en','Source specified in subfield $2'),(775,'en','Type of corporate name entry element'),(776,'en','Thesaurus'),(777,'en','Inverted name'),(778,'en','Library of Congress Subject Headings'),(779,'en','Juridistion name'),(780,'en','LC subject headings for children''s literature.'),(781,'en','Name in direct order'),(782,'en','Medical Subject Headings.'),(783,'en','National Agricultural Library subject authority file'),(784,'en','Source not specified'),(785,'en','Canadian Subject Headings'),(786,'en','Répertoire de vedettes-matière. '),(787,'en','Source specified in subfield $2'),(788,'en','Type of meeting name entry element'),(789,'en','Thesaurus'),(790,'en','Inverted name'),(791,'en','Library of Congress Subject Headings'),(792,'en','Juridistion name'),(793,'en','LC subject headings for children''s literature. '),(794,'en','Name in direct order'),(795,'en','Medical Subject Headings. '),(796,'en','National Agricultural Library subject authority file'),(797,'en','Source not specified'),(798,'en','Canadian Subject Headings'),(799,'en','Répertoire de vedettes-matière'),(800,'en','Source specified in subfield $2'),(801,'en','Nonfiling characters'),(802,'en','Thesaurus'),(803,'en','Number of nonfiling characters'),(804,'en','Library of Congress Subject Headings'),(805,'en','Number of nonfiling characters'),(806,'en','LC subject headings for children''s literature. '),(807,'en','Number of nonfiling characters'),(808,'en','Medical Subject Headings. '),(809,'en','Number of nonfiling characters'),(810,'en','National Agricultural Library subject authority file'),(811,'en','Number of nonfiling characters'),(812,'en','Source not specified'),(813,'en','Number of nonfiling characters'),(814,'en','Canadian Subject Headings'),(815,'en','Number of nonfiling characters'),(816,'en','Répertoire de vedettes-matière'),(817,'en','Number of nonfiling characters'),(818,'en','Source specified in subfield $2'),(819,'en','Number of nonfiling characters'),(820,'en','Number of nonfiling characters'),(821,'en','Undefined'),(822,'en','Thesaurus'),(823,'en','Undefined'),(824,'en','Library of Congress Subject Headings'),(825,'en','LC subject headings for children''s literature. '),(826,'en','Medical Subject Headings. '),(827,'en','National Agricultural Library subject authority file'),(828,'en','Source not specified'),(829,'en','Canadian Subject Headings'),(830,'en','Répertoire de vedettes-matière'),(831,'en','Source specified in subfield $2'),(832,'en','Level of subject'),(833,'en','Thesaurus'),(834,'en','No information provided'),(835,'en','Library of Congress Subject Headings'),(836,'en','No level specified'),(837,'en','LC subject headings for children''s literature. '),(838,'en','Primary'),(839,'en','Medical Subject Headings. '),(840,'en','Secondary'),(841,'en','National Agricultural Library subject authority file'),(842,'en','Source not specified'),(843,'en','Canadian Subject Headings'),(844,'en','Répertoire de vedettes-matière'),(845,'en','Source specified in subfield $2'),(846,'en','Undefined'),(847,'en','Thesaurus'),(848,'en','Undefined'),(849,'en','Library of Congress Subject Headings'),(850,'en','LC subject headings for children''s literature. '),(851,'en','Medical Subject Headings. '),(852,'en','National Agricultural Library subject authority file'),(853,'en','Source not specified'),(854,'en','Canadian Subject Headings'),(855,'en','Répertoire de vedettes-matière'),(856,'en','Source specified in subfield $2'),(857,'en','Level of index term'),(858,'en','Type of term or name'),(859,'en','No information provided'),(860,'en','No information provided'),(861,'en','No level specified'),(862,'en','Topical term'),(863,'en','Primary'),(864,'en','Personal name'),(865,'en','Secondary'),(866,'en','Corporate name'),(867,'en','Meeting name'),(868,'en','Chronological term'),(869,'en','Geographic name'),(870,'en','Genre/form term'),(871,'en','Level of subject'),(872,'en','Undefined'),(873,'en','No information provided'),(874,'en','Undefined'),(875,'en','No level specified'),(876,'en','Primary'),(877,'en','Secondary'),(878,'en','Type of heading'),(879,'en','Thesaurus'),(880,'en','Basic'),(881,'en','Library of Congress Subject Headings'),(882,'en','Faceted'),(883,'en','LC subject headings for children''s literature. '),(884,'en','Medical Subject Headings. '),(885,'en','National Agricultural Library subject authority file'),(886,'en','Source not specified'),(887,'en','Canadian Subject Headings'),(888,'en','Répertoire de vedettes-matière'),(889,'en','Source specified in subfield $2'),(890,'en','Undefined'),(891,'en','Source of term'),(892,'en','Undefined'),(893,'en','Source specified in subfield $2'),(894,'en','Undefined'),(895,'en','Source of term'),(896,'en','Undefined'),(897,'en','Source specified in subfield $2'),(898,'en','Undefined'),(899,'en','Undefined'),(900,'en','Undefined'),(901,'en','Undefined'),(902,'en','Undefined'),(903,'en','Undefined'),(904,'en','Undefined'),(905,'en','Undefined'),(906,'en','Type of personal name entry element'),(907,'en','Type of added entry'),(908,'en','Forename'),(909,'en','No information provided'),(910,'en','Surname.'),(911,'en','Analytical entry'),(912,'en','Family name'),(913,'en','Type or corporate name entry element'),(914,'en','Type of added entry'),(915,'en','Inverted name'),(916,'en','No information provided'),(917,'en','Juridistion name'),(918,'en','Analytical entry'),(919,'en','Name in direct order'),(920,'en','Type of meeting name entry element'),(921,'en','Type of added entry'),(922,'en','Inverted name'),(923,'en','No information provided'),(924,'en','Juridistion name'),(925,'en','Analytical entry'),(926,'en','Name in direct order'),(927,'en','Type of name'),(928,'en','Undefined'),(929,'en','Not specified'),(930,'en','Undefined'),(931,'en','Personal'),(932,'en','Other'),(933,'en','Nonfiling characters'),(934,'en','Type of added entry'),(935,'en','Number of nonfiling characters'),(936,'en','No information provided'),(937,'en','Number of nonfiling characters'),(938,'en','Analytical entry'),(939,'en','Number of nonfiling characters'),(940,'en','Number of nonfiling characters'),(941,'en','Number of nonfiling characters'),(942,'en','Number of nonfiling characters'),(943,'en','Number of nonfiling characters'),(944,'en','Number of nonfiling characters'),(945,'en','Number of nonfiling characters'),(946,'en','Number of nonfiling characters'),(947,'en','Nonfiling characters'),(948,'en','Type of added entry'),(949,'en','No nonfiling characters'),(950,'en','No information provided'),(951,'en','Number of nonfiling characters'),(952,'en','Analytical entry'),(953,'en','Number of nonfiling characters'),(954,'en','Number of nonfiling characters'),(955,'en','Number of nonfiling characters'),(956,'en','Number of nonfiling characters'),(957,'en','Number of nonfiling characters'),(958,'en','Number of nonfiling characters'),(959,'en','Number of nonfiling characters'),(960,'en','Number of nonfiling characters'),(961,'en','Undefined'),(962,'en','Undefined'),(963,'en','Undefined'),(964,'en','Undefined'),(965,'en','Undefined'),(966,'en','Undefined'),(967,'en','Undefined'),(968,'en','Undefined'),(969,'en','Undefined'),(970,'en','Undefined'),(971,'en','Undefined'),(972,'en','Undefined'),(973,'en','Undefined'),(974,'en','Undefined'),(975,'en','Undefined'),(976,'en','Undefined'),(977,'en','Note controller'),(978,'en','Display constant controller'),(979,'en','Display note'),(980,'en','Main series'),(981,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(982,'en','No display constant generated'),(983,'en','Note controller'),(984,'en','Display constant controller'),(985,'en','Display note'),(986,'en','Has subseries'),(987,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(988,'en','No display constant generated'),(989,'en','Note controller'),(990,'en','Display constant controller'),(991,'en','Display note'),(992,'en','Translation of'),(993,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(994,'en','No display constant generated'),(995,'en','Note controller'),(996,'en','Display constant controller'),(997,'en','Display note'),(998,'en','Translated as'),(999,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1000,'en','No display constant generated'),(1001,'en','Note controller'),(1002,'en','Display constant controller'),(1003,'en','Display note'),(1004,'en','Has supplement'),(1005,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1006,'en','No display constant generated'),(1007,'en','Note controller'),(1008,'en','Display constant controller'),(1009,'en','Display note'),(1010,'en','Supplement to'),(1011,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1012,'en','Parent'),(1013,'en','No display constant generated'),(1014,'en','Note controller'),(1015,'en','Display constant controller'),(1016,'en','Display note'),(1017,'en','In'),(1018,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1019,'en','No display constant generated'),(1020,'en','Note controller'),(1021,'en','Display constant controller'),(1022,'en','Display note'),(1023,'en','Constituent unit'),(1024,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1025,'en','No display constant generated'),(1026,'en','Note controller'),(1027,'en','Display constant controller'),(1028,'en','Display note'),(1029,'en','Other edition available'),(1030,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1031,'en','No display constant generated'),(1032,'en','Note controller'),(1033,'en','Display constant controller'),(1034,'en','Display note'),(1035,'en','Available in another form'),(1036,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1037,'en','No display constant generated'),(1038,'en','Note controller'),(1039,'en','Display constant controller'),(1040,'en','Display note'),(1041,'en','Issued with'),(1042,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1043,'en','No display constant generated'),(1044,'en','Note controller'),(1045,'en','Type of relationship'),(1046,'en','Display note'),(1047,'en','Continues'),(1048,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1049,'en','Continues in part'),(1050,'en','Supersedes'),(1051,'en','Supersedes in part'),(1052,'en','4 -Formed by the union of ... and …'),(1053,'en','Absorbed'),(1054,'en','Absorbed in part'),(1055,'en','Separated from'),(1056,'en','Note controller'),(1057,'en','Type of relationship'),(1058,'en','Display note'),(1059,'en','Continued by'),(1060,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1061,'en','Continued in part by'),(1062,'en','Superseded in part by'),(1063,'en','Superseded in part by'),(1064,'en','Absorbed by'),(1065,'en','Absorbed in part by'),(1066,'en','Split into… and …'),(1067,'en','Merged with ... To form...'),(1068,'en','Changed back to'),(1069,'en','Note controller'),(1070,'en','Display constant controller'),(1071,'en','Display note'),(1072,'en','Data source'),(1073,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1074,'en','No display constant generated'),(1075,'en','Note controller'),(1076,'en','Display constant controller'),(1077,'en','Display note'),(1078,'en','Related item'),(1079,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1080,'en','No display constant generated'),(1081,'en','Type of personal name entry element'),(1082,'en','Undefined'),(1083,'en','Forename'),(1084,'en','Undefined'),(1085,'en','Surname.'),(1086,'en','Family Name'),(1087,'en','Type of corporate name entry element'),(1088,'en','Undefined'),(1089,'en','Inverted name'),(1090,'en','Undefined'),(1091,'en','Juridistion name'),(1092,'en','Name in direct order'),(1093,'en','Undefined'),(1094,'en','Inverted name'),(1095,'en','Undefined'),(1096,'en','Juridistion name'),(1097,'en','Name in direct order'),(1098,'en','Undefined'),(1099,'en','Nonfiling characters'),(1100,'en','Undefined'),(1101,'en','No nonfiling characters'),(1102,'en','Number of nonfiling characters'),(1103,'en','Number of nonfiling characters'),(1104,'en','Number of nonfiling characters'),(1105,'en','Number of nonfiling characters'),(1106,'en','Number of nonfiling characters'),(1107,'en','Number of nonfiling characters'),(1108,'en','Number of nonfiling characters'),(1109,'en','Number of nonfiling characters'),(1110,'en','Number of nonfiling characters'),(1111,'en','Undefined'),(1112,'en','Undefined'),(1113,'en','Undefined'),(1114,'en','Undefined'),(1115,'en','Undefined'),(1116,'en','Undefined'),(1117,'en','Undefined'),(1118,'en','# -Undefined'),(1119,'en','Undefined'),(1120,'en','Undefined'),(1121,'en','Undefined'),(1122,'en','Undefined'),(1123,'en','Undefined'),(1124,'en','Undefined'),(1125,'en','Undefined'),(1126,'en','Undefined'),(1127,'en','Undefined'),(1128,'en','Undefined'),(1129,'en','Undefined'),(1130,'en','# -Undefined'),(1131,'en','Undefined'),(1132,'en','Undefined'),(1133,'en','Undefined'),(1134,'en','Undefined'),(1135,'en','Shelving scheme'),(1136,'en','Shelving order'),(1137,'en','No information provided'),(1138,'en','No information provided'),(1139,'en','Library of Congress classification'),(1140,'en','Not enumeration'),(1141,'en','Dewey Decimal classification'),(1142,'en','Primary enumeration'),(1143,'en','National Library of Medicine classification'),(1144,'en','Alternative enumeration'),(1145,'en','Superintendent of Document classification'),(1146,'en','Shelving control number'),(1147,'en','Title'),(1148,'en','Shelved separately'),(1149,'en','Source specified in subfield $2'),(1150,'en','Other scheme'),(1151,'en','Compressibility and expandability'),(1152,'en','Caption evaluation'),(1153,'en','Cannot compress or expand'),(1154,'en','Captions verified; all levels present'),(1155,'en','Can compress but not expand'),(1156,'en','Captions verified; all levels may not be present'),(1157,'en','Can compress or expand'),(1158,'en','Captions unverified; all levels present'),(1159,'en','Unknown'),(1160,'en','Captions unverified; all levels may not be present'),(1161,'en','Compressibility and expandability'),(1162,'en','Caption evaluation'),(1163,'en','Cannot compress or expand'),(1164,'en','Captions verified; all levels present'),(1165,'en','Can compress but not expand'),(1166,'en','Captions verified; all levels may not be present'),(1167,'en','Can compress or expand'),(1168,'en','Captions unverified; all levels present'),(1169,'en','Unknown'),(1170,'en','Captions unverified; all levels may not be present'),(1171,'en','Undefined'),(1172,'en','Undefined'),(1173,'en','Undefined'),(1174,'en','Undefined'),(1175,'en','Access method'),(1176,'en','Relationship'),(1177,'en','No information provided'),(1178,'en','No information provided'),(1179,'en','E-mail'),(1180,'en','Resource'),(1181,'en','FTP'),(1182,'en','Version of resource'),(1183,'en','Remote login (Telnet)'),(1184,'en','Related resource'),(1185,'en','Dial-up'),(1186,'en','No display constant generated'),(1187,'en','HTTP'),(1188,'en','Method specidied in subfield $2.'),(1189,'en','Field encoding level'),(1190,'en','Form of holdings'),(1191,'en','No information provided'),(1192,'en','No information provided'),(1193,'en','Holdings level 3'),(1194,'en','Compressed'),(1195,'en','Holdings level 4'),(1196,'en','Uncompressed'),(1197,'en','Holdings level 4 with piece designation'),(1198,'en','Compressed, use textual display'),(1199,'en','Uncompressed, use textual display'),(1200,'en','Item (s) not published'),(1201,'en','Field encoding level'),(1202,'en','Form of holdings'),(1203,'en','No information provided'),(1204,'en','No information provided'),(1205,'en','Holdings level 3'),(1206,'en','Compressed'),(1207,'en','Holdings level 4'),(1208,'en','Uncompressed'),(1209,'en','Holdings level 4 with piece designation'),(1210,'en','Compressed, use textual display'),(1211,'en','Uncompressed, use textual display'),(1212,'en','Item (s) not published'),(1213,'en','Field encoding level'),(1214,'en','Form of holdings'),(1215,'en','No information provided'),(1216,'en','No information provided'),(1217,'en','Holdings level 4'),(1218,'en','Uncompressed'),(1219,'en','Holdings level 4 with piece designation'),(1220,'en','Uncompressed, use textual display'),(1221,'en','Field encoding level'),(1222,'en','Type of notation'),(1223,'en','No information provided'),(1224,'en','Non-stardard'),(1225,'en','Holdings level 3'),(1226,'en','ANSI/NISO Z39.71 or ISO 10324'),(1227,'en','Holdings level 4'),(1228,'en','ANSI Z39.42'),(1229,'en','Holdings level 4 with piece designation'),(1230,'en','Source specified in subfield $2'),(1231,'en','Field encoding level'),(1232,'en','Type of notation'),(1233,'en','No information provided'),(1234,'en','Non-stardard'),(1235,'en','Holdings level 3'),(1236,'en','ANSI/NISO Z39.71 or ISO 10324'),(1237,'en','Holdings level 4'),(1238,'en','ANSI Z39.42'),(1239,'en','Holdings level 4 with piece designation'),(1240,'en','Source specified in subfield $2'),(1241,'en','Field encoding level'),(1242,'en','Type of notation'),(1243,'en','No information provided'),(1244,'en','Non-stardard'),(1245,'en','Holdings level 3'),(1246,'en','ANSI/NISO Z39.71 or ISO 10324'),(1247,'en','Holdings level 4'),(1248,'en','ANSI Z39.42'),(1249,'en','Holdings level 4 with piece designation'),(1250,'en','Source specified in subfield $2'),(1251,'en','Undefined'),(1252,'en','Undefined'),(1253,'en','Undefined'),(1254,'en','Undefined'),(1255,'en','Undefined'),(1256,'en','Undefined'),(1257,'en','Undefined'),(1258,'en','Undefined'),(1259,'en','Undefined'),(1260,'en','Undefined'),(1261,'en','Undefined'),(1262,'en','Undefined'),(1263,'en','Appropriate indicator as available in associated field'),(1264,'en','Appropriate indicator as available in associated field'),(1265,'en','Undefined'),(1266,'en','Undefined'),(1267,'en','Undefined'),(1268,'en','Undefined'),(1269,'en','Type of field'),(1270,'en','Undefined'),(1271,'en','Leader'),(1272,'en','Undefined'),(1273,'en','Variable control fields (002 -009)'),(1274,'en','Variable data fields (010 - 999)'),(1275,'en','Undefined'),(1276,'en','Undefined'),(1277,'en','Undefined'),(1278,'en','Undefined'),(1279,'en','Undefined'),(1280,'en','Undefined'),(1281,'en','Undefined'),(1282,'en','Undefined'),(1283,'en','Undefined'),(1284,'en','Undefined'),(1285,'en','Undefined'),(1286,'en','Undefined'),(1287,'en','National bibliographic agency'),(1288,'en','Undefined'),(1289,'en','Library and Archives Canada'),(1290,'en','Undefined'),(1291,'en','Source specified in subfield $2 '),(1292,'en','Undefined'),(1293,'en','Undefined'),(1294,'en','Undefined'),(1295,'en','Undefined'),(1296,'en','Undefined'),(1297,'en','Undefined'),(1298,'en','Undefined'),(1299,'en','Undefined'),(1300,'en','Type of standard number or code'),(1301,'en','Undefined'),(1302,'en','Source specified in subfield $2'),(1303,'en','Undefined'),(1304,'en','Unspecified type of standard number or code'),(1305,'en','Undefined'),(1306,'en','Undefined'),(1307,'en','Undefined'),(1308,'en','Undefined'),(1309,'en','Undefined'),(1310,'en','Type of ring'),(1311,'en','Undefined'),(1312,'en','Not applicable '),(1313,'en','Outer ring '),(1314,'en','Exclusion ring '),(1315,'en','Undefined'),(1316,'en','Undefined'),(1317,'en','Undefined'),(1318,'en','Undefined'),(1319,'en','Undefined'),(1320,'en','Undefined'),(1321,'en','Undefined'),(1322,'en','Undefined'),(1323,'en','Undefined'),(1324,'en','Undefined'),(1325,'en','Undefined'),(1326,'en','Undefined'),(1327,'en','Undefined'),(1328,'en','Undefined'),(1329,'en','Undefined'),(1330,'en','Undefined'),(1331,'en','Type of time period in subfield $b or $c'),(1332,'en','Undefined'),(1333,'en','Subfield $b or $c not present'),(1334,'en','Undefined'),(1335,'en','Single date/time'),(1336,'en','Multiple single dates/times'),(1337,'en','Range of dates/times'),(1338,'en','Undefined'),(1339,'en','Undefined'),(1340,'en','Undefined'),(1341,'en','Undefined'),(1342,'en','Undefined'),(1343,'en','Source of call number'),(1344,'en','Undefined'),(1345,'en','Assigned by LC'),(1346,'en','Assigned by agency other than LC'),(1347,'en','Code source'),(1348,'en','Undefined'),(1349,'en','Library of Congress Classification'),(1350,'en','Undefined'),(1351,'en','U.S. Dept. of Defense Classification'),(1352,'en','Source specified in subfield $2'),(1353,'en','Undefined'),(1354,'en','Source of classification number'),(1355,'en','Undefined'),(1356,'en','Assigned by LC'),(1357,'en','Assigned by agency other than LC'),(1358,'en','Undefined'),(1359,'en','Source of call number'),(1360,'en','Undefined'),(1361,'en','Assigned by LAC'),(1362,'en','Assigned by agency other than LAC'),(1363,'en','Undefined'),(1364,'en','Source of call number'),(1365,'en','Undefined'),(1366,'en','Assigned by NLM'),(1367,'en','Assigned by agency other than NLM'),(1368,'en','Undefined'),(1369,'en','Undefined'),(1370,'en','Undefined'),(1371,'en','Undefined'),(1372,'en','Undefined'),(1373,'en','Undefined'),(1374,'en','Undefined'),(1375,'en','Undefined'),(1376,'en','Undefined'),(1377,'en','Undefined'),(1378,'en','Undefined'),(1379,'en','Undefined'),(1380,'en','Undefined'),(1381,'en','Code source'),(1382,'en','Undefined'),(1383,'en','No information provided'),(1384,'en','NAL subject category code list'),(1385,'en','Source specified in subfield $2'),(1386,'en','Undefined'),(1387,'en','Undefined'),(1388,'en','Undefined'),(1389,'en','Undefined'),(1390,'en','Type of edition'),(1391,'en','Undefined'),(1392,'en','No information provided'),(1393,'en','Undefined'),(1394,'en','Full'),(1395,'en','Abridged'),(1396,'en','Type of edition'),(1397,'en','Source of call number'),(1398,'en','Full'),(1399,'en','No information provided'),(1400,'en','Abridged'),(1401,'en','Assigned by LC'),(1402,'en','Assigned by agency other than LC'),(1403,'en','Type of edition'),(1404,'en','Source of classification number'),(1405,'en','Full'),(1406,'en','Assigned by LC'),(1407,'en','Abridged'),(1408,'en','Assigned by agency other than LC'),(1409,'en','Number source'),(1410,'en','Undefined'),(1411,'en','Source specified in subfield $2'),(1412,'en','Undefined'),(1413,'en','Superintendent of Documents Classification System'),(1414,'en','Government of Canada Publications: Outline of Classification'),(1415,'en','Number source'),(1416,'en','Undefined'),(1417,'en','Source specified in subfield $2'),(1418,'en','Undefined'),(1419,'en','Superintendent of Documents Classification System'),(1420,'en','Government of Canada Publications: Outline of Classification'),(1421,'en','Type of personal name entry element'),(1422,'en','Undefined'),(1423,'en','Forename'),(1424,'en','Undefined'),(1425,'en','Surname'),(1426,'en','Family name'),(1427,'en','Type of corporate name entry element'),(1428,'en','Undefined'),(1429,'en','Inverted name'),(1430,'en','Undefined'),(1431,'en','Jurisdiction name'),(1432,'en','Name in direct order'),(1433,'en','Type of meeting name entry element'),(1434,'en','Undefined'),(1435,'en','Inverted name'),(1436,'en','Undefined'),(1437,'en','Jurisdiction name'),(1438,'en','Name in direct order'),(1439,'en','Undefined'),(1440,'en','Nonfiling characters'),(1441,'en','Undefined'),(1442,'en','0-9 - Number of nonfiling characters'),(1443,'en','Undefined'),(1444,'en','Undefined'),(1445,'en','Undefined'),(1446,'en','Undefined'),(1447,'en','Undefined'),(1448,'en','Undefined'),(1449,'en','Undefined'),(1450,'en','Undefined'),(1451,'en','Undefined'),(1452,'en','Undefined'),(1453,'en','Undefined'),(1454,'en','Undefined'),(1455,'en','Undefined'),(1456,'en','Undefined'),(1457,'en','Undefined'),(1458,'en','Undefined'),(1459,'en','Undefined'),(1460,'en','Undefined'),(1461,'en','Undefined'),(1462,'en','Undefined'),(1463,'en','Undefined'),(1464,'en','Undefined'),(1465,'en','Undefined'),(1466,'en','Undefined'),(1467,'en','Undefined'),(1468,'en','Undefined'),(1469,'en','Undefined'),(1470,'en','Undefined'),(1471,'en','Undefined'),(1472,'en','Undefined'),(1473,'en','Undefined'),(1474,'en','Undefined'),(1475,'en','Undefined'),(1476,'en','Undefined'),(1477,'en','Undefined'),(1478,'en','Undefined'),(1479,'en','Undefined'),(1480,'en','Undefined'),(1481,'en','Undefined'),(1482,'en','Undefined'),(1483,'en','Undefined'),(1484,'en','Undefined'),(1485,'en','Undefined'),(1486,'en','Undefined'),(1487,'en','Undefined'),(1488,'en','Undefined'),(1489,'en','Undefined'),(1490,'en','Undefined'),(1491,'en','Undefined'),(1492,'en','Undefined'),(1493,'en','Undefined'),(1494,'en','Undefined'),(1495,'en','Undefined'),(1496,'en','Undefined'),(1497,'en','Undefined'),(1498,'en','Undefined'),(1499,'en','Undefined'),(1500,'en','Undefined'),(1501,'en','Undefined'),(1502,'en','Undefined'),(1503,'en','Undefined'),(1504,'en','Undefined'),(1505,'en','Undefined'),(1506,'en','Undefined'),(1507,'en','Undefined'),(1508,'en','Undefined'),(1509,'en','Undefined'),(1510,'en','Undefined'),(1511,'en','Undefined'),(1512,'en','Undefined'),(1513,'en','Undefined'),(1514,'en','Undefined'),(1515,'en','Undefined'),(1516,'en','Source of code'),(1517,'en','Undefined'),(1518,'en','MARC language code'),(1519,'en','Source specified in $2'),(1520,'en','Undefined'),(1521,'en','Undefined'),(1522,'en','Undefined'),(1523,'en','Undefined'),(1524,'en','Undefined'),(1525,'en','Undefined'),(1526,'en','Undefined'),(1527,'en','Undefined'),(1528,'en','Undefined'),(1529,'en','Undefined'),(1530,'en','Undefined'),(1531,'en','Undefined'),(1532,'en','Undefined'),(1533,'en','Undefined'),(1534,'en','Undefined'),(1535,'en','Undefined'),(1536,'en','Key type'),(1537,'en','Undefined'),(1538,'en','Relationship to original unknown '),(1539,'en','Undefined'),(1540,'en','Original key '),(1541,'en','Transposed key '),(1542,'en','Type of personal name element'),(1543,'en','Undefined'),(1544,'en','Forename'),(1545,'en','Undefined'),(1546,'en','Surname'),(1547,'en','Family name'),(1548,'en','Type of corporate name entry element'),(1549,'en','Undefined'),(1550,'en','Inverted name'),(1551,'en','Undefined'),(1552,'en','Jurisdiction name'),(1553,'en','Name in direct order'),(1554,'en','Type of meeting name entry element'),(1555,'en','Undefined'),(1556,'en','Inverted name'),(1557,'en','Undefined'),(1558,'en','Jurisdiction name'),(1559,'en','Name in direct order'),(1560,'en','Undefined'),(1561,'en','Nonfiling characters'),(1562,'en','Undefined'),(1563,'en','0-9 - Number of nonfiling characters'),(1564,'en','Undefined'),(1565,'en','Undefined'),(1566,'en','Undefined'),(1567,'en','Undefined'),(1568,'en','Undefined'),(1569,'en','Undefined'),(1570,'en','Undefined'),(1571,'en','Undefined'),(1572,'en','Undefined'),(1573,'en','Undefined'),(1574,'en','Undefined'),(1575,'en','Undefined'),(1576,'en','Undefined'),(1577,'en','Undefined'),(1578,'en','Undefined'),(1579,'en','Undefined'),(1580,'en','Undefined'),(1581,'en','Undefined'),(1582,'en','Undefined'),(1583,'en','Undefined'),(1584,'en','Undefined'),(1585,'en','Undefined'),(1586,'en','Undefined'),(1587,'en','Undefined'),(1588,'en','Undefined'),(1589,'en','Undefined'),(1590,'en','Undefined'),(1591,'en','Undefined'),(1592,'en','Undefined'),(1593,'en','Undefined'),(1594,'en','Undefined'),(1595,'en','Undefined'),(1596,'en','Type of personal name entry element'),(1597,'en','Undefined'),(1598,'en','Forename'),(1599,'en','Undefined'),(1600,'en','Surname'),(1601,'en','Family name'),(1602,'en','Type of corporate name entry element'),(1603,'en','Undefined'),(1604,'en','Inverted name'),(1605,'en','Undefined'),(1606,'en','Jurisdiction name'),(1607,'en','Name in direct order'),(1608,'en','Type of meeting name entry element'),(1609,'en','Undefined'),(1610,'en','Inverted name'),(1611,'en','Undefined'),(1612,'en','Jurisdiction name'),(1613,'en','Name in direct order'),(1614,'en','Undefined'),(1615,'en','Nonfiling characters'),(1616,'en','Undefined'),(1617,'en','0-9 - Number of nonfiling characters'),(1618,'en','Undefined'),(1619,'en','Undefined'),(1620,'en','Undefined'),(1621,'en','Undefined'),(1622,'en','Undefined'),(1623,'en','Undefined'),(1624,'en','Undefined'),(1625,'en','Undefined'),(1626,'en','Undefined'),(1627,'en','Undefined'),(1628,'en','Undefined'),(1629,'en','Undefined'),(1630,'en','Undefined'),(1631,'en','Undefined'),(1632,'en','Undefined'),(1633,'en','Undefined'),(1634,'en','Undefined'),(1635,'en','Undefined'),(1636,'en','Undefined'),(1637,'en','Undefined'),(1638,'en','Undefined'),(1639,'en','Undefined'),(1640,'en','Undefined'),(1641,'en','Undefined'),(1642,'en','Undefined'),(1643,'en','Undefined'),(1644,'en','Undefined'),(1645,'en','Undefined'),(1646,'en','Undefined'),(1647,'en','Undefined'),(1648,'en','Undefined'),(1649,'en','Undefined'),(1650,'en','Note format style'),(1651,'en','Undefined'),(1652,'en','Formatted style'),(1653,'en','Undefined'),(1654,'en','Unformatted style'),(1655,'en','Undefined'),(1656,'en','Undefined'),(1657,'en','Undefined'),(1658,'en','Undefined'),(1659,'en','Undefined'),(1660,'en','Undefined'),(1661,'en','Undefined'),(1662,'en','Undefined'),(1663,'en','Undefined'),(1664,'en','Undefined'),(1665,'en','Undefined'),(1666,'en','Undefined'),(1667,'en','Undefined'),(1668,'en','Undefined'),(1669,'en','Undefined'),(1670,'en','Undefined'),(1671,'en','Undefined'),(1672,'en','Undefined'),(1673,'en','Undefined'),(1674,'en','Undefined'),(1675,'en','Undefined'),(1676,'en','Undefined'),(1677,'en','Undefined'),(1678,'en','Undefined'),(1679,'en','Undefined'),(1680,'en','Undefined'),(1681,'en','Undefined'),(1682,'en','Undefined'),(1683,'en','Undefined'),(1684,'en','Undefined'),(1685,'en','Undefined'),(1686,'en','Undefined'),(1687,'en','Undefined'),(1688,'en','Undefined'),(1689,'en','Undefined'),(1690,'en','Undefined'),(1691,'en','Undefined'),(1692,'en','Undefined'),(1693,'en','Undefined'),(1694,'en','Undefined'),(1695,'en','Undefined'),(1696,'en','Undefined'),(1697,'en','Undefined'),(1698,'en','Undefined'),(1699,'en','Undefined'),(1700,'en','Undefined'),(1701,'en','Undefined'),(1702,'en','Undefined'),(1703,'en','Undefined'),(1704,'en','Undefined'),(1705,'en','Undefined'),(1706,'en','Undefined'),(1707,'en','Type of data'),(1708,'en','Undefined'),(1709,'en','No information provided'),(1710,'en','Undefined'),(1711,'en','Biographical sketch'),(1712,'en','Administrative history'),(1713,'en','Undefined'),(1714,'en','Undefined'),(1715,'en','Undefined'),(1716,'en','Undefined'),(1717,'en','Undefined'),(1718,'en','Undefined'),(1719,'en','Undefined'),(1720,'en','Undefined'),(1721,'en','Undefined'),(1722,'en','Undefined'),(1723,'en','Undefined'),(1724,'en','Undefined'),(1725,'en','Undefined'),(1726,'en','Undefined'),(1727,'en','Undefined'),(1728,'en','Undefined'),(1729,'en','Type of personal name entry element'),(1730,'en','Thesaurus'),(1731,'en','Forename'),(1732,'en','Library of Congress Subject Headings'),(1733,'en','Surname'),(1734,'en','LC subject headings for children''s literature'),(1735,'en','Family name'),(1736,'en','Medical Subject Headings'),(1737,'en','National Agricultural Library subject authority file'),(1738,'en','Source not specified'),(1739,'en','Canadian Subject Headings'),(1740,'en','Répertoire de vedettes-matière'),(1741,'en','Source specified in subfield $2'),(1742,'en','Type of corporate name entry element'),(1743,'en','Thesaurus'),(1744,'en','Inverted name'),(1745,'en','Library of Congress Subject Headings'),(1746,'en','Jurisdiction name'),(1747,'en','LC subject headings for children''s literature'),(1748,'en','Name in direct order'),(1749,'en','Medical Subject Headings'),(1750,'en','National Agricultural Library subject authority file'),(1751,'en','Source not specified'),(1752,'en','Canadian Subject Headings'),(1753,'en','Répertoire de vedettes-matière'),(1754,'en','Source specified in subfield $2'),(1755,'en','Type of meeting name entry element'),(1756,'en','Thesaurus'),(1757,'en','Inverted name'),(1758,'en','Library of Congress Subject Headings'),(1759,'en','Jurisdiction name'),(1760,'en','LC subject headings for children''s literature'),(1761,'en','Name in direct order'),(1762,'en','Medical Subject Headings'),(1763,'en','National Agricultural Library subject authority file'),(1764,'en','Source not specified'),(1765,'en','Canadian Subject Headings'),(1766,'en','Répertoire de vedettes-matière'),(1767,'en','Source specified in subfield $2'),(1768,'en','Undefined'),(1769,'en','Thesaurus'),(1770,'en','Undefined'),(1771,'en','Library of Congress Subject Headings'),(1772,'en','LC subject headings for children''s literature'),(1773,'en','Medical Subject Headings'),(1774,'en','National Agricultural Library subject authority file'),(1775,'en','Source not specified'),(1776,'en','Canadian Subject Headings'),(1777,'en','Répertoire de vedettes-matière'),(1778,'en','Source specified in subfield $2'),(1779,'en','Undefined'),(1780,'en','Thesaurus'),(1781,'en','Undefined'),(1782,'en','Library of Congress Subject Headings'),(1783,'en','LC subject headings for children''s literature'),(1784,'en','Medical Subject Headings'),(1785,'en','National Agricultural Library subject authority file'),(1786,'en','Source not specified'),(1787,'en','Canadian Subject Headings'),(1788,'en','Répertoire de vedettes-matière'),(1789,'en','Source specified in subfield $2'),(1790,'en','Undefined'),(1791,'en','Thesaurus'),(1792,'en','Undefined'),(1793,'en','Library of Congress Subject Headings'),(1794,'en','LC subject headings for children''s literature'),(1795,'en','Medical Subject Headings'),(1796,'en','National Agricultural Library subject authority file'),(1797,'en','Source not specified'),(1798,'en','Canadian Subject Headings'),(1799,'en','Répertoire de vedettes-matière'),(1800,'en','Source specified in subfield $2'),(1801,'en','Undefined'),(1802,'en','Thesaurus'),(1803,'en','Undefined'),(1804,'en','Library of Congress Subject Headings'),(1805,'en','LC subject headings for children''s literature'),(1806,'en','Medical Subject Headings'),(1807,'en','National Agricultural Library subject authority file'),(1808,'en','Source not specified'),(1809,'en','Canadian Subject Headings'),(1810,'en','Répertoire de vedettes-matière'),(1811,'en','Source specified in subfield $2'),(1812,'en','Undefined'),(1813,'en','Thesaurus'),(1814,'en','Undefined'),(1815,'en','Library of Congress Subject Headings'),(1816,'en','LC subject headings for children''s literature'),(1817,'en','Medical Subject Headings'),(1818,'en','National Agricultural Library subject authority file'),(1819,'en','Source not specified'),(1820,'en','Canadian Subject Headings'),(1821,'en','Répertoire de vedettes-matière'),(1822,'en','Source specified in subfield $2'),(1823,'en','Undefined'),(1824,'en','Thesaurus'),(1825,'en','Undefined'),(1826,'en','Library of Congress Subject Headings'),(1827,'en','LC subject headings for children''s literature'),(1828,'en','Medical Subject Headings'),(1829,'en','National Agricultural Library subject authority file'),(1830,'en','Source not specified'),(1831,'en','Canadian Subject Headings'),(1832,'en','Répertoire de vedettes-matière'),(1833,'en','Source specified in subfield $2'),(1834,'en','Undefined'),(1835,'en','Thesaurus'),(1836,'en','Undefined'),(1837,'en','Library of Congress Subject Headings'),(1838,'en','LC subject headings for children''s literature'),(1839,'en','Medical Subject Headings'),(1840,'en','National Agricultural Library subject authority file'),(1841,'en','Source not specified'),(1842,'en','Canadian Subject Headings'),(1843,'en','Répertoire de vedettes-matière'),(1844,'en','Source specified in subfield $2'),(1845,'en','Undefined'),(1846,'en','Thesaurus'),(1847,'en','Undefined'),(1848,'en','Library of Congress Subject Headings'),(1849,'en','LC subject headings for children''s literature'),(1850,'en','Medical Subject Headings'),(1851,'en','National Agricultural Library subject authority file'),(1852,'en','Source not specified'),(1853,'en','Canadian Subject Headings'),(1854,'en','Répertoire de vedettes-matière'),(1855,'en','Source specified in subfield $2'),(1856,'en','Thesaurus'),(1857,'en','Library of Congress Subject Headings'),(1858,'en','LC subject headings for children''s literature'),(1859,'en','Medical Subject Headings'),(1860,'en','National Agricultural Library subject authority file'),(1861,'en','Source not specified'),(1862,'en','Canadian Subject Headings'),(1863,'en','Répertoire de vedettes-matière'),(1864,'en','Source specified in subfield $2'),(1865,'en','Undefined'),(1866,'en','Thesaurus'),(1867,'en','Undefined'),(1868,'en','Library of Congress Subject Headings'),(1869,'en','LC subject headings for children''s literature'),(1870,'en','Medical Subject Headings'),(1871,'en','National Agricultural Library subject authority file'),(1872,'en','Source not specified'),(1873,'en','Canadian Subject Headings'),(1874,'en','Répertoire de vedettes-matière'),(1875,'en','Source specified in subfield $2'),(1876,'en','Access method'),(1877,'en','Relationship'),(1878,'en','No information provided'),(1879,'en','No information provided'),(1880,'en','Email'),(1881,'en','Resource'),(1882,'en','FTP'),(1883,'en','Version of resource'),(1884,'en','Remote login (Telnet)'),(1885,'en','Related resource'),(1886,'en','Dial-up'),(1887,'en','No display constant generated'),(1888,'en','HTTP'),(1889,'en','Method specified in subfield $2'),(1890,'en','Undefined'),(1891,'en','Undefined'),(1892,'en','Undefined'),(1893,'en','Undefined');
84
85
ALTER TABLE marc_indicators ADD CONSTRAINT marc_indicators_frameworkcode_fkey FOREIGN KEY (frameworkcode) REFERENCES biblio_framework (frameworkcode) ON DELETE CASCADE;
(-)a/installer/data/Pg/en/marcflavour/marc21/mandatory/marc21_indicators.txt (+1 lines)
Line 0 Link Here
1
Default MARC 21 indicators values.
(-)a/installer/data/Pg/kohastructure.sql (+59 lines)
Lines 1670-1673 PRIMARY KEY (limitId) Link Here
1670
);
1670
);
1671
1671
1672
1672
1673
--
1674
-- Table structure for table marc_indicators
1675
--
1676
1677
1678
DROP TABLE IF EXISTS marc_indicators CASCADE;
1679
CREATE TABLE marc_indicators (
1680
  id_indicator SERIAL PRIMARY KEY,
1681
  frameworkcode varchar(4) default NULL REFERENCES biblio_framework (frameworkcode) ON DELETE CASCADE,
1682
  tagfield varchar(3) NOT NULL default '',
1683
  authtypecode varchar(10) default NULL REFERENCES auth_types (authtypecode) ON DELETE CASCADE
1684
);
1685
CREATE UNIQUE INDEX marc_indicators_framework_auth_code ON marc_indicators (frameworkcode,authtypecode,tagfield);
1686
1687
1688
--
1689
-- Table structure for table marc_indicators_values
1690
--
1691
1692
DROP TABLE IF EXISTS marc_indicators_values CASCADE;
1693
CREATE TABLE marc_indicators_values (
1694
  ind_value char(1) NOT NULL default '' PRIMARY KEY
1695
);
1696
1697
INSERT INTO marc_indicators_values VALUES (''),('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7'),('8'),('9'),('a'),('b'),('c'),('d'),('e'),('f'),('g'),('h'),('i'),('j'),('k'),('l'),('m'),('n'),('o'),('p'),('q'),('r'),('s'),('t'),('u'),('v'),('w'),('x'),('y'),('z');
1698
1699
1700
--
1701
-- Table structure for table marc_indicators_value
1702
--
1703
1704
DROP TABLE IF EXISTS marc_indicators_value CASCADE;
1705
CREATE TABLE marc_indicators_value (
1706
  id_indicator_value SERIAL PRIMARY KEY,
1707
  id_indicator integer NOT NULL REFERENCES marc_indicators (id_indicator) ON DELETE CASCADE,
1708
  ind varchar(1) NOT NULL,
1709
  ind_value char(1) NOT NULL REFERENCES marc_indicators_values (ind_value) ON DELETE CASCADE,
1710
  CHECK ( ind IN ('1', '2'))
1711
);
1712
CREATE INDEX marc_indicators_value_id_indicator ON marc_indicators_value (id_indicator);
1713
CREATE INDEX marc_indicators_value_ind_value ON marc_indicators_value (ind_value);
1714
1715
1716
--
1717
-- Table structure for table marc_indicators_desc
1718
--
1719
1720
DROP TABLE IF EXISTS marc_indicators_desc CASCADE;
1721
CREATE TABLE marc_indicators_desc (
1722
  id_indicator_value integer NOT NULL REFERENCES marc_indicators_value (id_indicator_value) ON DELETE CASCADE,
1723
  lang varchar(25) NOT NULL default 'en',
1724
  ind_desc text,
1725
  PRIMARY KEY  (id_indicator_value,lang)
1726
);
1727
CREATE INDEX marc_indicators_desc_lang ON marc_indicators_desc (lang);
1728
1729
1730
1731
1673
--commit;
1732
--commit;
(-)a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_indicators.sql (+108 lines)
Line 0 Link Here
1
SET FOREIGN_KEY_CHECKS = 0;
2
3
--
4
-- Table structure for table `marc_indicators`
5
--
6
7
CREATE TABLE IF NOT EXISTS `marc_indicators` (
8
  `id_indicator` int(11) unsigned NOT NULL auto_increment,
9
  `frameworkcode` varchar(4) default NULL,
10
  `tagfield` varchar(3) NOT NULL default '',
11
  `authtypecode` varchar(10) default NULL,
12
  PRIMARY KEY  (`id_indicator`),
13
  UNIQUE KEY `framework_auth_code` (`frameworkcode`,`authtypecode`,`tagfield`),
14
  CONSTRAINT `marc_indicators_ibfk_1` FOREIGN KEY (`frameworkcode`) REFERENCES `biblio_framework` (`frameworkcode`) ON DELETE CASCADE,
15
  CONSTRAINT `marc_indicators_ibfk_2` FOREIGN KEY (`authtypecode`) REFERENCES `auth_types` (`authtypecode`) ON DELETE CASCADE
16
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
17
18
19
--
20
-- Table structure for table `marc_indicators_values`
21
--
22
23
CREATE TABLE IF NOT EXISTS `marc_indicators_values` (
24
  `ind_value` char(1) NOT NULL default '',
25
  PRIMARY KEY  (`ind_value`)
26
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
27
28
29
TRUNCATE `marc_indicators_values`;
30
31
INSERT IGNORE INTO `marc_indicators_values` VALUES (''),('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7'),('8'),('9'),('a'),('b'),('c'),('d'),('e'),('f'),('g'),('h'),('i'),('j'),('k'),('l'),('m'),('n'),('o'),('p'),('q'),('r'),('s'),('t'),('u'),('v'),('w'),('x'),('y'),('z');
32
33
34
--
35
-- Table structure for table `marc_indicators_value`
36
--
37
38
CREATE TABLE IF NOT EXISTS `marc_indicators_value` (
39
  `id_indicator_value` int(11) unsigned NOT NULL auto_increment,
40
  `id_indicator` int(11) unsigned NOT NULL,
41
  `ind` enum('1','2') NOT NULL,
42
  `ind_value` char(1) NOT NULL,
43
  PRIMARY KEY  (`id_indicator_value`),
44
  KEY `id_indicator` (`id_indicator`),
45
  KEY `ind_value` (`ind_value`),
46
  CONSTRAINT `marc_indicators_value_ibfk_2` FOREIGN KEY (`ind_value`) REFERENCES `marc_indicators_values` (`ind_value`) ON DELETE CASCADE,
47
  CONSTRAINT `marc_indicators_value_ibfk_1` FOREIGN KEY (`id_indicator`) REFERENCES `marc_indicators` (`id_indicator`) ON DELETE CASCADE
48
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
49
50
51
--
52
-- Table structure for table `marc_indicators_desc`
53
--
54
55
CREATE TABLE IF NOT EXISTS `marc_indicators_desc` (
56
  `id_indicator_value` int(11) unsigned NOT NULL,
57
  `lang` varchar(25) NOT NULL default 'en',
58
  `ind_desc` mediumtext,
59
  PRIMARY KEY  (`id_indicator_value`,`lang`),
60
  KEY `lang` (`lang`),
61
  CONSTRAINT `marc_indicators_desc_ibfk_2` FOREIGN KEY (`lang`) REFERENCES `language_descriptions` (`lang`) ON DELETE CASCADE,
62
  CONSTRAINT `marc_indicators_desc_ibfk_1` FOREIGN KEY (`id_indicator_value`) REFERENCES `marc_indicators_value` (`id_indicator_value`) ON DELETE CASCADE
63
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
64
65
66
-- ******************************************
67
-- Values for Indicators for Default Framework
68
-- ******************************************
69
70
TRUNCATE `marc_indicators_desc`;
71
TRUNCATE `marc_indicators_value`;
72
TRUNCATE `marc_indicators`;
73
74
75
--
76
-- Dumping data for table marc_indicators
77
--
78
79
LOCK TABLES marc_indicators WRITE;
80
/*!40000 ALTER TABLE marc_indicators DISABLE KEYS */;
81
INSERT INTO marc_indicators VALUES (1,'','010',NULL),(2,'','013',NULL),(3,'','015',NULL),(4,'','016',NULL),(5,'','017',NULL),(6,'','018',NULL),(7,'','020',NULL),(8,'','022',NULL),(9,'','024',NULL),(10,'','025',NULL),(11,'','026',NULL),(12,'','027',NULL),(13,'','028',NULL),(14,'','030',NULL),(15,'','031',NULL),(16,'','032',NULL),(17,'','033',NULL),(18,'','034',NULL),(19,'','035',NULL),(20,'','036',NULL),(21,'','037',NULL),(22,'','038',NULL),(23,'','040',NULL),(24,'','041',NULL),(25,'','042',NULL),(26,'','043',NULL),(27,'','044',NULL),(28,'','045',NULL),(29,'','046',NULL),(30,'','047',NULL),(31,'','048',NULL),(32,'','050',NULL),(33,'','051',NULL),(34,'','052',NULL),(35,'','055',NULL),(36,'','060',NULL),(37,'','061',NULL),(38,'','066',NULL),(39,'','070',NULL),(40,'','071',NULL),(41,'','072',NULL),(42,'','074',NULL),(43,'','080',NULL),(44,'','082',NULL),(45,'','084',NULL),(46,'','086',NULL),(47,'','088',NULL),(48,'','100',NULL),(49,'','110',NULL),(50,'','111',NULL),(51,'','130',NULL),(52,'','210',NULL),(53,'','222',NULL),(54,'','240',NULL),(55,'','242',NULL),(56,'','245',NULL),(57,'','246',NULL),(58,'','247',NULL),(59,'','250',NULL),(60,'','254',NULL),(61,'','255',NULL),(62,'','256',NULL),(63,'','257',NULL),(64,'','258',NULL),(65,'','260',NULL),(66,'','263',NULL),(67,'','270',NULL),(68,'','300',NULL),(69,'','306',NULL),(70,'','307',NULL),(71,'','310',NULL),(72,'','321',NULL),(73,'','336',NULL),(74,'','337',NULL),(75,'','338',NULL),(76,'','340',NULL),(77,'','342',NULL),(78,'','343',NULL),(79,'','351',NULL),(80,'','352',NULL),(81,'','355',NULL),(82,'','357',NULL),(83,'','362',NULL),(84,'','363',NULL),(85,'','365',NULL),(86,'','366',NULL),(87,'','380',NULL),(88,'','381',NULL),(89,'','382',NULL),(90,'','383',NULL),(91,'','384',NULL),(92,'','490',NULL),(93,'','500',NULL),(94,'','501',NULL),(95,'','502',NULL),(96,'','504',NULL),(97,'','505',NULL),(98,'','506',NULL),(99,'','507',NULL),(100,'','508',NULL),(101,'','510',NULL),(102,'','511',NULL),(103,'','513',NULL),(104,'','514',NULL),(105,'','515',NULL),(106,'','516',NULL),(107,'','518',NULL),(108,'','520',NULL),(109,'','521',NULL),(110,'','522',NULL),(111,'','524',NULL),(112,'','525',NULL),(113,'','526',NULL),(114,'','530',NULL),(115,'','533',NULL),(116,'','534',NULL),(117,'','535',NULL),(118,'','536',NULL),(119,'','538',NULL),(120,'','540',NULL),(121,'','541',NULL),(122,'','544',NULL),(123,'','545',NULL),(124,'','546',NULL),(125,'','547',NULL),(126,'','550',NULL),(127,'','552',NULL),(128,'','555',NULL),(129,'','556',NULL),(130,'','561',NULL),(131,'','562',NULL),(132,'','563',NULL),(133,'','565',NULL),(134,'','567',NULL),(135,'','580',NULL),(136,'','581',NULL),(137,'','583',NULL),(138,'','584',NULL),(139,'','585',NULL),(140,'','586',NULL),(141,'','588',NULL),(142,'','600',NULL),(143,'','610',NULL),(144,'','611',NULL),(145,'','630',NULL),(146,'','648',NULL),(147,'','650',NULL),(148,'','651',NULL),(149,'','653',NULL),(150,'','654',NULL),(151,'','655',NULL),(152,'','656',NULL),(153,'','657',NULL),(154,'','658',NULL),(155,'','662',NULL),(156,'','700',NULL),(157,'','710',NULL),(158,'','711',NULL),(159,'','720',NULL),(160,'','730',NULL),(161,'','740',NULL),(162,'','751',NULL),(163,'','752',NULL),(164,'','753',NULL),(165,'','754',NULL),(166,'','760',NULL),(167,'','762',NULL),(168,'','765',NULL),(169,'','767',NULL),(170,'','770',NULL),(171,'','772',NULL),(172,'','773',NULL),(173,'','774',NULL),(174,'','775',NULL),(175,'','776',NULL),(176,'','777',NULL),(177,'','780',NULL),(178,'','785',NULL),(179,'','786',NULL),(180,'','787',NULL),(181,'','800',NULL),(182,'','810',NULL),(183,'','811',NULL),(184,'','830',NULL),(185,'','841',NULL),(186,'','842',NULL),(187,'','843',NULL),(188,'','844',NULL),(189,'','845',NULL),(190,'','850',NULL),(191,'','852',NULL),(192,'','853',NULL),(193,'','854',NULL),(194,'','855',NULL),(195,'','856',NULL),(196,'','863',NULL),(197,'','864',NULL),(198,'','865',NULL),(199,'','866',NULL),(200,'','867',NULL),(201,'','868',NULL),(202,'','876',NULL),(203,'','877',NULL),(204,'','878',NULL),(205,'','880',NULL),(206,'','882',NULL),(207,'','886',NULL),(208,'','887',NULL),(209,NULL,'010',''),(210,NULL,'014',''),(211,NULL,'016',''),(212,NULL,'020',''),(213,NULL,'022',''),(214,NULL,'024',''),(215,NULL,'031',''),(216,NULL,'034',''),(217,NULL,'035',''),(218,NULL,'040',''),(219,NULL,'042',''),(220,NULL,'043',''),(221,NULL,'045',''),(222,NULL,'046',''),(223,NULL,'050',''),(224,NULL,'052',''),(225,NULL,'053',''),(226,NULL,'055',''),(227,NULL,'060',''),(228,NULL,'065',''),(229,NULL,'066',''),(230,NULL,'070',''),(231,NULL,'072',''),(232,NULL,'073',''),(233,NULL,'080',''),(234,NULL,'082',''),(235,NULL,'083',''),(236,NULL,'086',''),(237,NULL,'087',''),(238,NULL,'100',''),(239,NULL,'110',''),(240,NULL,'111',''),(241,NULL,'130',''),(242,NULL,'148',''),(243,NULL,'150',''),(244,NULL,'151',''),(245,NULL,'155',''),(246,NULL,'180',''),(247,NULL,'181',''),(248,NULL,'182',''),(249,NULL,'185',''),(250,NULL,'260',''),(251,NULL,'336',''),(252,NULL,'360',''),(253,NULL,'370',''),(254,NULL,'371',''),(255,NULL,'372',''),(256,NULL,'373',''),(257,NULL,'374',''),(258,NULL,'375',''),(259,NULL,'376',''),(260,NULL,'377',''),(261,NULL,'380',''),(262,NULL,'381',''),(263,NULL,'382',''),(264,NULL,'383',''),(265,NULL,'384',''),(266,NULL,'400',''),(267,NULL,'410',''),(268,NULL,'411',''),(269,NULL,'430',''),(270,NULL,'448',''),(272,NULL,'450',''),(273,NULL,'451',''),(274,NULL,'455',''),(275,NULL,'480',''),(276,NULL,'481',''),(277,NULL,'482',''),(278,NULL,'485',''),(271,NULL,'488',''),(279,NULL,'500',''),(280,NULL,'510',''),(281,NULL,'511',''),(282,NULL,'530',''),(283,NULL,'548',''),(284,NULL,'550',''),(285,NULL,'551',''),(286,NULL,'555',''),(287,NULL,'580',''),(288,NULL,'581',''),(289,NULL,'582',''),(290,NULL,'585',''),(291,NULL,'640',''),(292,NULL,'641',''),(293,NULL,'642',''),(294,NULL,'643',''),(295,NULL,'644',''),(296,NULL,'645',''),(297,NULL,'646',''),(298,NULL,'663',''),(299,NULL,'664',''),(300,NULL,'665',''),(301,NULL,'666',''),(302,NULL,'667',''),(303,NULL,'670',''),(304,NULL,'675',''),(305,NULL,'678',''),(306,NULL,'680',''),(307,NULL,'681',''),(308,NULL,'682',''),(309,NULL,'688',''),(310,NULL,'700',''),(311,NULL,'710',''),(312,NULL,'711',''),(313,NULL,'730',''),(314,NULL,'748',''),(315,NULL,'750',''),(316,NULL,'751',''),(317,NULL,'755',''),(318,NULL,'780',''),(319,NULL,'781',''),(320,NULL,'782',''),(321,NULL,'785',''),(322,NULL,'788',''),(323,NULL,'856',''),(324,NULL,'880','');
82
/*!40000 ALTER TABLE marc_indicators ENABLE KEYS */;
83
UNLOCK TABLES;
84
85
86
--
87
-- Dumping data for table marc_indicators_value
88
--
89
90
91
LOCK TABLES marc_indicators_value WRITE;
92
/*!40000 ALTER TABLE marc_indicators_value DISABLE KEYS */;
93
INSERT INTO marc_indicators_value VALUES (1,1,'1',''),(2,1,'2',''),(3,1,'1',''),(4,1,'2',''),(5,2,'1',''),(6,2,'2',''),(7,2,'1',''),(8,2,'2',''),(9,3,'1',''),(10,3,'2',''),(11,3,'1',''),(12,3,'2',''),(13,4,'1',''),(14,4,'2',''),(15,4,'1',''),(16,4,'2',''),(17,4,'1','7'),(18,5,'1',''),(19,5,'2',''),(20,5,'1',''),(21,5,'2',''),(22,6,'1',''),(23,6,'2',''),(24,6,'1',''),(25,6,'2',''),(26,7,'1',''),(27,7,'2',''),(28,7,'1',''),(29,7,'2',''),(30,8,'1',''),(31,8,'2',''),(32,8,'1',''),(33,8,'2',''),(34,8,'1','0'),(35,8,'1','1'),(36,9,'1',''),(37,9,'2',''),(38,9,'1','0'),(39,9,'2',''),(40,9,'1','1'),(41,9,'2','0'),(42,9,'1','2'),(43,9,'2','1'),(44,9,'1','3'),(45,9,'1','4'),(46,9,'1','7'),(47,9,'1','8'),(48,10,'1',''),(49,10,'2',''),(50,10,'1',''),(51,10,'2',''),(52,11,'1',''),(53,11,'2',''),(54,11,'1',''),(55,11,'2',''),(56,12,'1',''),(57,12,'2',''),(58,12,'1',''),(59,12,'2',''),(60,13,'1',''),(61,13,'2',''),(62,13,'1','0'),(63,13,'2','0'),(64,13,'1','1'),(65,13,'2','1'),(66,13,'1','2'),(67,13,'2','2'),(68,13,'1','3'),(69,13,'2','3'),(70,13,'1','4'),(71,13,'1','5'),(72,14,'1',''),(73,14,'2',''),(74,14,'1',''),(75,14,'2',''),(76,15,'1',''),(77,15,'2',''),(78,15,'1',''),(79,15,'2',''),(80,16,'1',''),(81,16,'2',''),(82,16,'1',''),(83,16,'2',''),(84,17,'1',''),(85,17,'2',''),(86,17,'1',''),(87,17,'2',''),(88,17,'1','0'),(89,17,'2','0'),(90,17,'1','1'),(91,17,'2','1'),(92,17,'1','2'),(93,17,'2','2'),(94,18,'1',''),(95,18,'2',''),(96,18,'1','0'),(97,18,'2',''),(98,18,'1','1'),(99,18,'2','0'),(100,18,'1','3'),(101,18,'2','1'),(102,19,'1',''),(103,19,'2',''),(104,19,'1',''),(105,19,'2',''),(106,20,'1',''),(107,20,'2',''),(108,20,'1',''),(109,20,'2',''),(110,21,'1',''),(111,21,'2',''),(112,21,'1',''),(113,21,'2',''),(114,22,'1',''),(115,22,'2',''),(116,22,'1',''),(117,22,'2',''),(118,23,'1',''),(119,23,'2',''),(120,23,'1',''),(121,23,'2',''),(122,24,'1',''),(123,24,'2',''),(124,24,'1','0'),(125,24,'2',''),(126,24,'1','1'),(127,24,'2','7'),(128,25,'1',''),(129,25,'2',''),(130,25,'1',''),(131,25,'2',''),(132,26,'1',''),(133,26,'2',''),(134,26,'1',''),(135,26,'2',''),(136,27,'1',''),(137,27,'2',''),(138,27,'1',''),(139,27,'2',''),(140,28,'1',''),(141,28,'2',''),(142,28,'1',''),(143,28,'2',''),(144,28,'1','0'),(145,28,'1','1'),(146,28,'1','2'),(147,29,'1',''),(148,29,'2',''),(149,29,'1',''),(150,29,'2',''),(151,30,'1',''),(152,30,'2',''),(153,30,'1',''),(154,30,'2',''),(155,31,'1',''),(156,31,'2',''),(157,31,'1',''),(158,31,'2',''),(159,32,'1',''),(160,32,'2',''),(161,32,'1',''),(162,32,'2','0'),(163,32,'1','0'),(164,32,'2','4'),(165,32,'1','1'),(166,33,'1',''),(167,33,'2',''),(168,33,'1',''),(169,33,'2',''),(170,34,'1',''),(171,34,'2',''),(172,34,'1',''),(173,34,'2',''),(174,34,'1','1'),(175,34,'1','7'),(176,35,'1',''),(177,35,'2',''),(178,35,'1',''),(179,35,'2','0'),(180,35,'1','0'),(181,35,'2','1'),(182,35,'1','1'),(183,35,'2','2'),(184,35,'2','3'),(185,35,'2',''),(186,35,'2','5'),(187,35,'2','6'),(188,35,'2','7'),(189,35,'2','8'),(190,35,'2','9'),(191,36,'1',''),(192,36,'2',''),(193,36,'1',''),(194,36,'2','0'),(195,36,'1','0'),(196,36,'2','4'),(197,36,'1','1'),(198,37,'1',''),(199,37,'2',''),(200,37,'1',''),(201,37,'2',''),(202,38,'1',''),(203,38,'2',''),(204,38,'1',''),(205,38,'2',''),(206,39,'1',''),(207,39,'2',''),(208,39,'1','0'),(209,39,'2',''),(210,39,'1','1'),(211,40,'1',''),(212,40,'2',''),(213,40,'1',''),(214,40,'2',''),(215,41,'1',''),(216,41,'2',''),(217,41,'1',''),(218,41,'2',''),(219,41,'2','7'),(220,42,'1',''),(221,42,'2',''),(222,42,'1',''),(223,42,'2',''),(224,43,'1',''),(225,43,'2',''),(226,43,'1',''),(227,43,'2',''),(228,44,'1',''),(229,44,'2',''),(230,44,'1','0'),(231,44,'2',''),(232,44,'1','1'),(233,44,'2','0'),(234,44,'2','4'),(235,45,'1',''),(236,45,'2',''),(237,45,'1',''),(238,45,'2',''),(239,46,'1',''),(240,46,'2',''),(241,46,'1',''),(242,46,'2',''),(243,46,'1','0'),(244,46,'1','1'),(245,47,'1',''),(246,47,'2',''),(247,47,'1',''),(248,47,'2',''),(249,48,'1',''),(250,48,'2',''),(251,48,'1','0'),(252,48,'2',''),(253,48,'1','1'),(254,48,'1','3'),(255,49,'1',''),(256,49,'2',''),(257,49,'1','0'),(258,49,'2',''),(259,49,'1',''),(260,49,'1','2'),(261,50,'1',''),(262,50,'2',''),(263,50,'1','0'),(264,50,'2',''),(265,50,'1',''),(266,50,'1','2'),(267,51,'1',''),(268,51,'2',''),(269,51,'1','0'),(270,51,'2',''),(271,51,'1','1'),(272,51,'1','2'),(273,51,'1','3'),(274,51,'1','4'),(275,51,'1','5'),(276,51,'1','6'),(277,51,'1','7'),(278,51,'1','8'),(279,51,'1','9'),(280,52,'1',''),(281,52,'2',''),(282,52,'1','0'),(283,52,'2',''),(284,52,'1','1'),(285,52,'2','0'),(286,53,'1',''),(287,53,'2',''),(288,53,'1',''),(289,53,'2','0'),(290,53,'2','1'),(291,53,'2','2'),(292,53,'2','3'),(293,53,'2','4'),(294,53,'2','5'),(295,53,'2','6'),(296,53,'2','7'),(297,53,'2','8'),(298,53,'2','9'),(299,54,'1',''),(300,54,'2',''),(301,54,'1','0'),(302,54,'2','0'),(303,54,'1','1'),(304,54,'2','1'),(305,54,'2','2'),(306,54,'2','3'),(307,54,'2','4'),(308,54,'2','5'),(309,54,'2','6'),(310,54,'2','7'),(311,54,'2','8'),(312,54,'2','9'),(313,55,'1',''),(314,55,'2',''),(315,55,'1','0'),(316,55,'2','0'),(317,55,'1','1'),(318,55,'2','1'),(319,55,'2','2'),(320,55,'2','3'),(321,55,'2','4'),(322,55,'2','5'),(323,55,'2','6'),(324,55,'2','7'),(325,55,'2','8'),(326,55,'2','9'),(327,56,'1',''),(328,56,'2',''),(329,56,'1','0'),(330,56,'2','0'),(331,56,'1','1'),(332,56,'2','1'),(333,56,'2','2'),(334,56,'2','3'),(335,56,'2','4'),(336,56,'2','5'),(337,56,'2','6'),(338,56,'2','7'),(339,56,'2','8'),(340,56,'2','9'),(341,57,'1',''),(342,57,'2',''),(343,57,'1','0'),(344,57,'2',''),(345,57,'1','1'),(346,57,'2','0'),(347,57,'1','2'),(348,57,'2','1'),(349,57,'1','3'),(350,57,'2','2'),(351,57,'2','3'),(352,57,'2','4'),(353,57,'2','5'),(354,57,'2','6'),(355,57,'2','7'),(356,57,'2','8'),(357,58,'1',''),(358,58,'2',''),(359,58,'1','0'),(360,58,'2','0'),(361,58,'1','1'),(362,58,'2','1'),(363,59,'1',''),(364,59,'2',''),(365,59,'1',''),(366,59,'2',''),(367,60,'1',''),(368,60,'2',''),(369,60,'1',''),(370,60,'2',''),(371,61,'1',''),(372,61,'2',''),(373,61,'1',''),(374,61,'2',''),(375,62,'1',''),(376,62,'2',''),(377,62,'1',''),(378,62,'2',''),(379,63,'1',''),(380,63,'2',''),(381,63,'1',''),(382,63,'2',''),(383,64,'1',''),(384,64,'2',''),(385,64,'1',''),(386,64,'2',''),(387,65,'1',''),(388,65,'2',''),(389,65,'1',''),(390,65,'2',''),(391,65,'1','2'),(392,65,'1',''),(393,66,'1',''),(394,66,'2',''),(395,66,'1',''),(396,66,'2',''),(397,67,'1',''),(398,67,'2',''),(399,67,'1',''),(400,67,'2',''),(401,67,'1','1'),(402,67,'2','0'),(403,67,'1','2'),(404,67,'2','7'),(405,68,'1',''),(406,68,'2',''),(407,68,'1',''),(408,68,'2',''),(409,69,'1',''),(410,69,'2',''),(411,69,'1',''),(412,69,'2',''),(413,70,'1',''),(414,70,'2',''),(415,70,'1',''),(416,70,'2',''),(417,70,'1','8'),(418,71,'1',''),(419,71,'2',''),(420,71,'1',''),(421,71,'2',''),(422,72,'1',''),(423,72,'2',''),(424,72,'1',''),(425,72,'2',''),(426,73,'1',''),(427,73,'2',''),(428,73,'1',''),(429,73,'2',''),(430,74,'1',''),(431,74,'2',''),(432,74,'1',''),(433,74,'2',''),(434,75,'1',''),(435,75,'2',''),(436,75,'1',''),(437,75,'2',''),(438,76,'1',''),(439,76,'2',''),(440,76,'1',''),(441,76,'2',''),(442,77,'1',''),(443,77,'2',''),(444,77,'1','0'),(445,77,'2','0'),(446,77,'1','1'),(447,77,'2','1'),(448,77,'2','2'),(449,77,'2','3'),(450,77,'2','4'),(451,77,'2','5'),(452,77,'2','6'),(453,77,'2','7'),(454,77,'2','8'),(455,78,'1',''),(456,78,'2',''),(457,78,'1',''),(458,78,'2',''),(459,79,'1',''),(460,79,'2',''),(461,79,'1',''),(462,79,'2',''),(463,80,'1',''),(464,80,'2',''),(465,80,'1',''),(466,80,'2',''),(467,81,'1',''),(468,81,'2',''),(469,81,'1','0'),(470,81,'2',''),(471,81,'1','1'),(472,81,'1','2'),(473,81,'1','3'),(474,81,'1','4'),(475,81,'1','5'),(476,81,'1','8'),(477,82,'1',''),(478,82,'2',''),(479,82,'1',''),(480,82,'2',''),(481,83,'1',''),(482,83,'2',''),(483,83,'1','0'),(484,83,'2',''),(485,83,'1','1'),(486,84,'1',''),(487,84,'2',''),(488,84,'1',''),(489,84,'2',''),(490,84,'1','0'),(491,84,'2','0'),(492,84,'1','1'),(493,84,'2',''),(494,85,'1',''),(495,85,'2',''),(496,85,'1',''),(497,85,'2',''),(498,86,'1',''),(499,86,'2',''),(500,86,'1',''),(501,86,'2',''),(502,87,'1',''),(503,87,'2',''),(504,87,'1',''),(505,87,'2',''),(506,88,'1',''),(507,88,'2',''),(508,88,'1',''),(509,88,'2',''),(510,89,'1',''),(511,89,'2',''),(512,89,'1',''),(513,89,'2',''),(514,90,'1',''),(515,90,'2',''),(516,90,'1',''),(517,90,'2',''),(518,91,'1',''),(519,91,'2',''),(520,91,'1',''),(521,91,'2',''),(522,91,'1','0'),(523,91,'1','1'),(524,92,'1',''),(525,92,'2',''),(526,92,'1','0'),(527,92,'2',''),(528,92,'1','1'),(529,93,'1',''),(530,93,'2',''),(531,93,'1',''),(532,93,'2',''),(533,94,'1',''),(534,94,'2',''),(535,94,'1',''),(536,94,'2',''),(537,95,'1',''),(538,95,'2',''),(539,95,'1',''),(540,95,'2',''),(541,96,'1',''),(542,96,'2',''),(543,96,'1',''),(544,96,'2',''),(545,97,'1',''),(546,97,'2',''),(547,97,'1','0'),(548,97,'2',''),(549,97,'1','1'),(550,97,'2','0'),(551,97,'1','2'),(552,97,'1','8'),(553,98,'1',''),(554,98,'2',''),(555,98,'1',''),(556,98,'2',''),(557,98,'1','0'),(558,98,'1','1'),(559,99,'1',''),(560,99,'2',''),(561,99,'1',''),(562,99,'2',''),(563,100,'1',''),(564,100,'2',''),(565,100,'1',''),(566,100,'2',''),(567,101,'1',''),(568,101,'2',''),(569,101,'1','0'),(570,101,'2',''),(571,101,'1','1'),(572,101,'1','2'),(573,101,'1','3'),(574,101,'1','4'),(575,102,'1',''),(576,102,'2',''),(577,102,'1','0'),(578,102,'2',''),(579,102,'1','1'),(580,103,'1',''),(581,103,'2',''),(582,103,'1',''),(583,103,'2',''),(584,104,'1',''),(585,104,'2',''),(586,104,'1',''),(587,104,'2',''),(588,105,'1',''),(589,105,'2',''),(590,105,'1',''),(591,105,'2',''),(592,106,'1',''),(593,106,'2',''),(594,106,'1',''),(595,106,'2',''),(596,106,'1','8'),(597,107,'1',''),(598,107,'2',''),(599,107,'1',''),(600,107,'2',''),(601,108,'1',''),(602,108,'2',''),(603,108,'1',''),(604,108,'2',''),(605,108,'1','0'),(606,108,'1','1'),(607,108,'1','2'),(608,108,'1','4'),(609,108,'1','3'),(610,108,'1','8'),(611,109,'1',''),(612,109,'2',''),(613,109,'1',''),(614,109,'2',''),(615,109,'1','0'),(616,109,'1','1'),(617,109,'1','2'),(618,109,'1','3'),(619,109,'1','4'),(620,109,'1','8'),(621,110,'1',''),(622,110,'2',''),(623,110,'1',''),(624,110,'2',''),(625,110,'1','8'),(626,111,'1',''),(627,111,'2',''),(628,111,'1',''),(629,111,'2',''),(630,111,'1','8'),(631,112,'1',''),(632,112,'2',''),(633,112,'1',''),(634,112,'2',''),(635,113,'1',''),(636,113,'2',''),(637,113,'1','0'),(638,113,'2',''),(639,113,'1','8'),(640,114,'1',''),(641,114,'2',''),(642,114,'1',''),(643,114,'2',''),(644,115,'1',''),(645,115,'2',''),(646,115,'1',''),(647,115,'2',''),(648,116,'1',''),(649,116,'2',''),(650,116,'1',''),(651,116,'2',''),(652,117,'1',''),(653,117,'2',''),(654,117,'1','1'),(655,117,'2',''),(656,117,'1','2'),(657,118,'1',''),(658,118,'2',''),(659,118,'1',''),(660,118,'2',''),(661,119,'1',''),(662,119,'2',''),(663,119,'1',''),(664,119,'2',''),(665,120,'1',''),(666,120,'2',''),(667,120,'1',''),(668,120,'2',''),(669,121,'1',''),(670,121,'2',''),(671,121,'1',''),(672,121,'2',''),(673,122,'1',''),(674,122,'2',''),(675,122,'1',''),(676,122,'2',''),(677,122,'1','0'),(678,122,'1','1'),(679,123,'1',''),(680,123,'2',''),(681,123,'1',''),(682,123,'2',''),(683,123,'1','0'),(684,123,'1','1'),(685,124,'1',''),(686,124,'2',''),(687,124,'1',''),(688,124,'2',''),(689,125,'1',''),(690,125,'2',''),(691,125,'1',''),(692,125,'2',''),(693,126,'1',''),(694,126,'2',''),(695,126,'1',''),(696,126,'2',''),(697,127,'1',''),(698,127,'2',''),(699,127,'1',''),(700,127,'2',''),(701,128,'1',''),(702,128,'2',''),(703,128,'2',''),(704,128,'1','8'),(705,129,'1',''),(706,129,'2',''),(707,129,'2',''),(708,129,'1','8'),(709,130,'1',''),(710,130,'2',''),(711,130,'1',''),(712,130,'2',''),(713,131,'1',''),(714,131,'2',''),(715,131,'1',''),(716,131,'2',''),(717,132,'1',''),(718,132,'2',''),(719,132,'1',''),(720,132,'2',''),(721,133,'1',''),(722,133,'2',''),(723,133,'1',''),(724,133,'2',''),(725,133,'1','0'),(726,133,'1','8'),(727,134,'1',''),(728,134,'2',''),(729,134,'1',''),(730,134,'2',''),(731,134,'1','8'),(732,135,'1',''),(733,135,'2',''),(734,135,'1',''),(735,135,'2',''),(736,136,'1',''),(737,136,'2',''),(738,136,'1',''),(739,136,'2',''),(740,136,'1','8'),(741,137,'1',''),(742,137,'2',''),(743,137,'1',''),(744,137,'2',''),(745,138,'1',''),(746,138,'2',''),(747,138,'1',''),(748,138,'2',''),(749,139,'1',''),(750,139,'2',''),(751,139,'1',''),(752,139,'2',''),(753,140,'1',''),(754,140,'2',''),(755,140,'1',''),(756,140,'2',''),(757,140,'1','8'),(758,141,'1',''),(759,141,'2',''),(760,141,'1',''),(761,141,'2',''),(762,142,'1',''),(763,142,'2',''),(764,142,'1','0'),(765,142,'2',''),(766,142,'1','1'),(767,142,'2','1'),(768,142,'1','2'),(769,142,'2','2'),(770,142,'2','3'),(771,142,'2','4'),(772,142,'2','5'),(773,142,'2','6'),(774,142,'2','7'),(775,143,'1',''),(776,143,'2',''),(777,143,'1','0'),(778,143,'2','0'),(779,143,'1','1'),(780,143,'2','1'),(781,143,'1','2'),(782,143,'2','2'),(783,143,'2','3'),(784,143,'2','4'),(785,143,'2','5'),(786,143,'2','6'),(787,143,'2','7'),(788,144,'1',''),(789,144,'2',''),(790,144,'1','0'),(791,144,'2','0'),(792,144,'1','1'),(793,144,'2','1'),(794,144,'1','2'),(795,144,'2','2'),(796,144,'2','3'),(797,144,'2','4'),(798,144,'2','5'),(799,144,'2','6'),(800,144,'2','7'),(801,145,'1',''),(802,145,'2',''),(803,145,'1','0'),(804,145,'2','0'),(805,145,'1','1'),(806,145,'2','1'),(807,145,'1','2'),(808,145,'2','2'),(809,145,'1','3'),(810,145,'2','3'),(811,145,'1','4'),(812,145,'2','4'),(813,145,'1','5'),(814,145,'2','5'),(815,145,'1','6'),(816,145,'2','6'),(817,145,'1','7'),(818,145,'2','7'),(819,145,'1','8'),(820,145,'1','9'),(821,146,'1',''),(822,146,'2',''),(823,146,'1',''),(824,146,'2','0'),(825,146,'2','1'),(826,146,'2','2'),(827,146,'2','3'),(828,146,'2','4'),(829,146,'2','5'),(830,146,'2','6'),(831,146,'2','7'),(832,147,'1',''),(833,147,'2',''),(834,147,'1',''),(835,147,'2','0'),(836,147,'1','0'),(837,147,'2','1'),(838,147,'1','1'),(839,147,'2','2'),(840,147,'1','2'),(841,147,'2','3'),(842,147,'2','4'),(843,147,'2','5'),(844,147,'2','6'),(845,147,'2','7'),(846,148,'1',''),(847,148,'2',''),(848,148,'1',''),(849,148,'2','0'),(850,148,'2','1'),(851,148,'2','2'),(852,148,'2','3'),(853,148,'2','4'),(854,148,'2','5'),(855,148,'2','6'),(856,148,'2','7'),(857,149,'1',''),(858,149,'2',''),(859,149,'1',''),(860,149,'2',''),(861,149,'1','0'),(862,149,'2','0'),(863,149,'1','1'),(864,149,'2','1'),(865,149,'1','2'),(866,149,'2','2'),(867,149,'2','3'),(868,149,'2','4'),(869,149,'2','5'),(870,149,'2','6'),(871,150,'1',''),(872,150,'2',''),(873,150,'1',''),(874,150,'2',''),(875,150,'1','0'),(876,150,'1','1'),(877,150,'1','2'),(878,151,'1',''),(879,151,'2',''),(880,151,'1',''),(881,151,'2','0'),(882,151,'1','0'),(883,151,'2','1'),(884,151,'2','2'),(885,151,'2','3'),(886,151,'2','4'),(887,151,'2','5'),(888,151,'2','6'),(889,151,'2','7'),(890,152,'1',''),(891,152,'2',''),(892,152,'1',''),(893,152,'2','7'),(894,153,'1',''),(895,153,'2',''),(896,153,'1',''),(897,153,'2','7'),(898,154,'1',''),(899,154,'2',''),(900,154,'1',''),(901,154,'2',''),(902,155,'1',''),(903,155,'2',''),(904,155,'1',''),(905,155,'2',''),(906,156,'1',''),(907,156,'2',''),(908,156,'1','0'),(909,156,'2',''),(910,156,'1','1'),(911,156,'2','2'),(912,156,'1','3'),(913,157,'1',''),(914,157,'2',''),(915,157,'1','0'),(916,157,'2',''),(917,157,'1','1'),(918,157,'2','2'),(919,157,'1','2'),(920,158,'1',''),(921,158,'2',''),(922,158,'1','0'),(923,158,'2',''),(924,158,'1','1'),(925,158,'2','2'),(926,158,'1','2'),(927,159,'1',''),(928,159,'2',''),(929,159,'1',''),(930,159,'2',''),(931,159,'1','1'),(932,159,'1','2'),(933,160,'1',''),(934,160,'2',''),(935,160,'1','0'),(936,160,'2',''),(937,160,'1','1'),(938,160,'2','2'),(939,160,'1','2'),(940,160,'1','3'),(941,160,'1','4'),(942,160,'1','5'),(943,160,'1','6'),(944,160,'1','7'),(945,160,'1','8'),(946,160,'1','9'),(947,161,'1',''),(948,161,'2',''),(949,161,'1','0'),(950,161,'2',''),(951,161,'1','1'),(952,161,'2','2'),(953,161,'1','2'),(954,161,'1','3'),(955,161,'1','4'),(956,161,'1','5'),(957,161,'1','6'),(958,161,'1','7'),(959,161,'1','8'),(960,161,'1','9'),(961,162,'1',''),(962,162,'2',''),(963,162,'1',''),(964,162,'2',''),(965,163,'1',''),(966,163,'2',''),(967,163,'1',''),(968,163,'2',''),(969,164,'1',''),(970,164,'2',''),(971,164,'1',''),(972,164,'2',''),(973,165,'1',''),(974,165,'2',''),(975,165,'1',''),(976,165,'2',''),(977,166,'1',''),(978,166,'2',''),(979,166,'1','0'),(980,166,'2',''),(981,166,'1','1'),(982,166,'2','8'),(983,167,'1',''),(984,167,'2',''),(985,167,'1','0'),(986,167,'2',''),(987,167,'1','1'),(988,167,'2','8'),(989,168,'1',''),(990,168,'2',''),(991,168,'1','0'),(992,168,'2',''),(993,168,'1','1'),(994,168,'2','8'),(995,169,'1',''),(996,169,'2',''),(997,169,'1','0'),(998,169,'2',''),(999,169,'1','1'),(1000,169,'2','8'),(1001,170,'1',''),(1002,170,'2',''),(1003,170,'1','0'),(1004,170,'2',''),(1005,170,'1','1'),(1006,170,'2','8'),(1007,171,'1',''),(1008,171,'2',''),(1009,171,'1','0'),(1010,171,'2',''),(1011,171,'1','1'),(1012,171,'2','0'),(1013,171,'2','8'),(1014,172,'1',''),(1015,172,'2',''),(1016,172,'1','0'),(1017,172,'2',''),(1018,172,'1','1'),(1019,172,'2','8'),(1020,173,'1',''),(1021,173,'2',''),(1022,173,'1','0'),(1023,173,'2',''),(1024,173,'1','1'),(1025,173,'2','8'),(1026,174,'1',''),(1027,174,'2',''),(1028,174,'1','0'),(1029,174,'2',''),(1030,174,'1','1'),(1031,174,'2','8'),(1032,175,'1',''),(1033,175,'2',''),(1034,175,'1','0'),(1035,175,'2',''),(1036,175,'1','1'),(1037,175,'2','8'),(1038,176,'1',''),(1039,176,'2',''),(1040,176,'1','0'),(1041,176,'2',''),(1042,176,'1','1'),(1043,176,'2','8'),(1044,177,'1',''),(1045,177,'2',''),(1046,177,'1','0'),(1047,177,'2','0'),(1048,177,'1','1'),(1049,177,'2','1'),(1050,177,'2','2'),(1051,177,'2','3'),(1052,177,'2',''),(1053,177,'2','5'),(1054,177,'2','6'),(1055,177,'2','7'),(1056,178,'1',''),(1057,178,'2',''),(1058,178,'1','0'),(1059,178,'2','0'),(1060,178,'1','1'),(1061,178,'2','1'),(1062,178,'2','2'),(1063,178,'2','3'),(1064,178,'2','4'),(1065,178,'2','5'),(1066,178,'2','6'),(1067,178,'2','7'),(1068,178,'2','8'),(1069,179,'1',''),(1070,179,'2',''),(1071,179,'1','0'),(1072,179,'2',''),(1073,179,'1','1'),(1074,179,'2','8'),(1075,180,'1',''),(1076,180,'2',''),(1077,180,'1','0'),(1078,180,'2',''),(1079,180,'1','1'),(1080,180,'2','8'),(1081,181,'1',''),(1082,181,'2',''),(1083,181,'1','0'),(1084,181,'2',''),(1085,181,'1','1'),(1086,181,'1','2'),(1087,182,'1',''),(1088,182,'2',''),(1089,182,'1','0'),(1090,182,'2',''),(1091,182,'1','1'),(1092,182,'1','2'),(1093,183,'2',''),(1094,183,'1','0'),(1095,183,'2',''),(1096,183,'1','1'),(1097,183,'1','2'),(1098,184,'1',''),(1099,184,'2',''),(1100,184,'1',''),(1101,184,'2','0'),(1102,184,'2','1'),(1103,184,'2','2'),(1104,184,'2','3'),(1105,184,'2','4'),(1106,184,'2','5'),(1107,184,'2','6'),(1108,184,'2','7'),(1109,184,'2','8'),(1110,184,'2','9'),(1111,185,'1',''),(1112,185,'2',''),(1113,185,'1',''),(1114,185,'2',''),(1115,186,'1',''),(1116,186,'2',''),(1117,186,'1',''),(1118,186,'2',''),(1119,187,'1',''),(1120,187,'2',''),(1121,187,'1',''),(1122,187,'2',''),(1123,188,'1',''),(1124,188,'2',''),(1125,188,'1',''),(1126,188,'2',''),(1127,189,'1',''),(1128,189,'2',''),(1129,189,'1',''),(1130,189,'2',''),(1131,190,'1',''),(1132,190,'2',''),(1133,190,'1',''),(1134,190,'2',''),(1135,191,'1',''),(1136,191,'2',''),(1137,191,'1',''),(1138,191,'2',''),(1139,191,'1','0'),(1140,191,'2','0'),(1141,191,'1','1'),(1142,191,'2','1'),(1143,191,'1','2'),(1144,191,'2','2'),(1145,191,'1','3'),(1146,191,'1','4'),(1147,191,'1','5'),(1148,191,'1','6'),(1149,191,'1','7'),(1150,191,'1','8'),(1151,192,'1',''),(1152,192,'2',''),(1153,192,'1','0'),(1154,192,'2','0'),(1155,192,'1','1'),(1156,192,'2','1'),(1157,192,'1','2'),(1158,192,'2','2'),(1159,192,'1','3'),(1160,192,'2','3'),(1161,193,'1',''),(1162,193,'2',''),(1163,193,'1','0'),(1164,193,'2','0'),(1165,193,'1','1'),(1166,193,'2','1'),(1167,193,'1','2'),(1168,193,'2','2'),(1169,193,'1','3'),(1170,193,'2','3'),(1171,194,'1',''),(1172,194,'2',''),(1173,194,'1',''),(1174,194,'2',''),(1175,195,'1',''),(1176,195,'2',''),(1177,195,'1',''),(1178,195,'2',''),(1179,195,'1','0'),(1180,195,'2','0'),(1181,195,'1','1'),(1182,195,'2','1'),(1183,195,'1','2'),(1184,195,'2','2'),(1185,195,'1','3'),(1186,195,'2','8'),(1187,195,'1','4'),(1188,195,'1','7'),(1189,196,'1',''),(1190,196,'2',''),(1191,196,'1',''),(1192,196,'2',''),(1193,196,'1','3'),(1194,196,'2','0'),(1195,196,'1','4'),(1196,196,'2','1'),(1197,196,'1','5'),(1198,196,'2','2'),(1199,196,'2','3'),(1200,196,'2','4'),(1201,197,'1',''),(1202,197,'2',''),(1203,197,'1',''),(1204,197,'2',''),(1205,197,'1','3'),(1206,197,'2','0'),(1207,197,'1','4'),(1208,197,'2','1'),(1209,197,'1','5'),(1210,197,'2','2'),(1211,197,'2','3'),(1212,197,'2','4'),(1213,198,'1',''),(1214,198,'2',''),(1215,198,'1',''),(1216,198,'2',''),(1217,198,'1','4'),(1218,198,'2','1'),(1219,198,'1','5'),(1220,198,'2','3'),(1221,199,'1',''),(1222,199,'2',''),(1223,199,'1',''),(1224,199,'2','0'),(1225,199,'1','3'),(1226,199,'2','1'),(1227,199,'1','4'),(1228,199,'2','2'),(1229,199,'1','5'),(1230,199,'2','7'),(1231,200,'1',''),(1232,200,'2',''),(1233,200,'1',''),(1234,200,'2','0'),(1235,200,'1','3'),(1236,200,'2','1'),(1237,200,'1','4'),(1238,200,'2','2'),(1239,200,'1','5'),(1240,200,'2','7'),(1241,201,'1',''),(1242,201,'2',''),(1243,201,'1',''),(1244,201,'2','0'),(1245,201,'1','3'),(1246,201,'2','1'),(1247,201,'1','4'),(1248,201,'2','2'),(1249,201,'1','5'),(1250,201,'2','7'),(1251,202,'1',''),(1252,202,'2',''),(1253,202,'1',''),(1254,202,'2',''),(1255,203,'1',''),(1256,203,'2',''),(1257,203,'1',''),(1258,203,'2',''),(1259,204,'1',''),(1260,204,'2',''),(1261,204,'1',''),(1262,204,'2',''),(1263,205,'1',''),(1264,205,'2',''),(1265,206,'1',''),(1266,206,'2',''),(1267,206,'1',''),(1268,206,'2',''),(1269,207,'1',''),(1270,207,'2',''),(1271,207,'1','0'),(1272,207,'2',''),(1273,207,'1','1'),(1274,207,'1','2'),(1275,208,'1',''),(1276,208,'2',''),(1277,208,'1',''),(1278,208,'2',''),(1279,209,'1',''),(1280,209,'2',''),(1281,209,'1',''),(1282,209,'2',''),(1283,210,'1',''),(1284,210,'2',''),(1285,210,'1',''),(1286,210,'2',''),(1287,211,'1',''),(1288,211,'2',''),(1289,211,'1',''),(1290,211,'2',''),(1291,211,'1','7'),(1292,212,'1',''),(1293,212,'2',''),(1294,212,'1',''),(1295,212,'2',''),(1296,213,'1',''),(1297,213,'2',''),(1298,213,'1',''),(1299,213,'2',''),(1300,214,'1',''),(1301,214,'2',''),(1302,214,'1','7'),(1303,214,'2',''),(1304,214,'1','8'),(1305,215,'1',''),(1306,215,'2',''),(1307,215,'1',''),(1308,215,'2',''),(1309,216,'1',''),(1310,216,'2',''),(1311,216,'1',''),(1312,216,'2',''),(1313,216,'2','0'),(1314,216,'2','1'),(1315,217,'1',''),(1316,217,'2',''),(1317,217,'1',''),(1318,217,'2',''),(1319,218,'1',''),(1320,218,'2',''),(1321,218,'1',''),(1322,218,'2',''),(1323,219,'1',''),(1324,219,'2',''),(1325,219,'1',''),(1326,219,'2',''),(1327,220,'1',''),(1328,220,'2',''),(1329,220,'1',''),(1330,220,'2',''),(1331,221,'1',''),(1332,221,'2',''),(1333,221,'1',''),(1334,221,'2',''),(1335,221,'1','0'),(1336,221,'1','1'),(1337,221,'1','2'),(1338,222,'1',''),(1339,222,'2',''),(1340,222,'1',''),(1341,222,'2',''),(1342,223,'1',''),(1343,223,'2',''),(1344,223,'1',''),(1345,223,'2','0'),(1346,223,'2','4'),(1347,224,'1',''),(1348,224,'2',''),(1349,224,'1',''),(1350,224,'2',''),(1351,224,'1','1'),(1352,224,'1','7'),(1353,225,'1',''),(1354,225,'2',''),(1355,225,'1',''),(1356,225,'2','0'),(1357,225,'2','4'),(1358,226,'1',''),(1359,226,'2',''),(1360,226,'1',''),(1361,226,'2','0'),(1362,226,'2','4'),(1363,227,'1',''),(1364,227,'2',''),(1365,227,'1',''),(1366,227,'2','0'),(1367,227,'2','4'),(1368,228,'1',''),(1369,228,'2',''),(1370,228,'1',''),(1371,228,'2',''),(1372,229,'1',''),(1373,229,'2',''),(1374,229,'1',''),(1375,229,'2',''),(1376,230,'1',''),(1377,230,'2',''),(1378,230,'1',''),(1379,230,'2',''),(1380,231,'1',''),(1381,231,'2',''),(1382,231,'1',''),(1383,231,'2',''),(1384,231,'2','0'),(1385,231,'2','7'),(1386,232,'1',''),(1387,232,'2',''),(1388,232,'1',''),(1389,232,'2',''),(1390,233,'1',''),(1391,233,'2',''),(1392,233,'1',''),(1393,233,'2',''),(1394,233,'1','0'),(1395,233,'1','1'),(1396,234,'1',''),(1397,234,'2',''),(1398,234,'1','0'),(1399,234,'2',''),(1400,234,'1','1'),(1401,234,'2','0'),(1402,234,'2','4'),(1403,235,'1',''),(1404,235,'2',''),(1405,235,'1','0'),(1406,235,'2','0'),(1407,235,'1','1'),(1408,235,'2','4'),(1409,236,'1',''),(1410,236,'2',''),(1411,236,'1',''),(1412,236,'2',''),(1413,236,'1','0'),(1414,236,'1','1'),(1415,237,'1',''),(1416,237,'2',''),(1417,237,'1',''),(1418,237,'2',''),(1419,237,'1','0'),(1420,237,'1','1'),(1421,238,'1',''),(1422,238,'2',''),(1423,238,'1','0'),(1424,238,'2',''),(1425,238,'1','1'),(1426,238,'1','3'),(1427,239,'1',''),(1428,239,'2',''),(1429,239,'1','0'),(1430,239,'2',''),(1431,239,'1','1'),(1432,239,'1','2'),(1433,240,'1',''),(1434,240,'2',''),(1435,240,'1','0'),(1436,240,'2',''),(1437,240,'1','1'),(1438,240,'1','2'),(1439,241,'1',''),(1440,241,'2',''),(1441,241,'1',''),(1442,241,'2',''),(1443,242,'1',''),(1444,242,'2',''),(1445,242,'1',''),(1446,242,'2',''),(1447,243,'1',''),(1448,243,'2',''),(1449,243,'1',''),(1450,243,'2',''),(1451,244,'1',''),(1452,244,'2',''),(1453,244,'1',''),(1454,244,'2',''),(1455,245,'1',''),(1456,245,'2',''),(1457,245,'1',''),(1458,245,'2',''),(1459,246,'1',''),(1460,246,'2',''),(1461,246,'1',''),(1462,246,'2',''),(1463,247,'1',''),(1464,247,'2',''),(1465,247,'1',''),(1466,247,'2',''),(1467,248,'1',''),(1468,248,'2',''),(1469,248,'1',''),(1470,248,'2',''),(1471,249,'1',''),(1472,249,'2',''),(1473,249,'1',''),(1474,249,'2',''),(1475,250,'1',''),(1476,250,'2',''),(1477,250,'1',''),(1478,250,'2',''),(1479,251,'1',''),(1480,251,'2',''),(1481,251,'1',''),(1482,251,'2',''),(1483,252,'1',''),(1484,252,'2',''),(1485,252,'1',''),(1486,252,'2',''),(1487,253,'1',''),(1488,253,'2',''),(1489,253,'1',''),(1490,253,'2',''),(1491,254,'1',''),(1492,254,'2',''),(1493,254,'1',''),(1494,254,'2',''),(1495,255,'1',''),(1496,255,'2',''),(1497,255,'1',''),(1498,255,'2',''),(1499,256,'1',''),(1500,256,'2',''),(1501,256,'1',''),(1502,256,'2',''),(1503,257,'1',''),(1504,257,'2',''),(1505,257,'1',''),(1506,257,'2',''),(1507,258,'1',''),(1508,258,'2',''),(1509,258,'1',''),(1510,258,'2',''),(1511,259,'1',''),(1512,259,'2',''),(1513,259,'1',''),(1514,259,'2',''),(1515,260,'1',''),(1516,260,'2',''),(1517,260,'1',''),(1518,260,'2',''),(1519,260,'2','7'),(1520,261,'1',''),(1521,261,'2',''),(1522,261,'1',''),(1523,261,'2',''),(1524,262,'1',''),(1525,262,'2',''),(1526,262,'1',''),(1527,262,'2',''),(1528,263,'1',''),(1529,263,'2',''),(1530,263,'1',''),(1531,263,'2',''),(1532,264,'1',''),(1533,264,'2',''),(1534,264,'1',''),(1535,264,'2',''),(1536,265,'1',''),(1537,265,'2',''),(1538,265,'1',''),(1539,265,'2',''),(1540,265,'1','0'),(1541,265,'1','1'),(1542,266,'1',''),(1543,266,'2',''),(1544,266,'1','0'),(1545,266,'2',''),(1546,266,'1','1'),(1547,266,'1','3'),(1548,267,'1',''),(1549,267,'2',''),(1550,267,'1','0'),(1551,267,'2',''),(1552,267,'1','1'),(1553,267,'1','2'),(1554,268,'1',''),(1555,268,'2',''),(1556,268,'1','0'),(1557,268,'2',''),(1558,268,'1','1'),(1559,268,'1','2'),(1560,269,'1',''),(1561,269,'2',''),(1562,269,'1',''),(1563,269,'2',''),(1564,270,'1',''),(1565,270,'2',''),(1566,271,'1',''),(1567,271,'2',''),(1568,272,'1',''),(1569,272,'2',''),(1570,272,'1',''),(1571,272,'2',''),(1572,273,'1',''),(1573,273,'2',''),(1574,273,'1',''),(1575,273,'2',''),(1576,274,'1',''),(1577,274,'2',''),(1578,274,'1',''),(1579,274,'2',''),(1580,275,'1',''),(1581,275,'2',''),(1582,275,'1',''),(1583,275,'2',''),(1584,276,'1',''),(1585,276,'2',''),(1586,276,'1',''),(1587,276,'2',''),(1588,277,'1',''),(1589,277,'2',''),(1590,277,'1',''),(1591,277,'2',''),(1592,278,'1',''),(1593,278,'2',''),(1594,278,'1',''),(1595,278,'2',''),(1596,279,'1',''),(1597,279,'2',''),(1598,279,'1','0'),(1599,279,'2',''),(1600,279,'1','1'),(1601,279,'1','3'),(1602,280,'1',''),(1603,280,'2',''),(1604,280,'1','0'),(1605,280,'2',''),(1606,280,'1','1'),(1607,280,'1','2'),(1608,281,'1',''),(1609,281,'2',''),(1610,281,'1','0'),(1611,281,'2',''),(1612,281,'1','1'),(1613,281,'1','2'),(1614,282,'1',''),(1615,282,'2',''),(1616,282,'1',''),(1617,282,'2',''),(1618,283,'1',''),(1619,283,'2',''),(1620,283,'1',''),(1621,283,'2',''),(1622,284,'1',''),(1623,284,'2',''),(1624,284,'1',''),(1625,284,'2',''),(1626,285,'1',''),(1627,285,'2',''),(1628,285,'1',''),(1629,285,'2',''),(1630,286,'1',''),(1631,286,'2',''),(1632,286,'1',''),(1633,286,'2',''),(1634,287,'1',''),(1635,287,'2',''),(1636,287,'1',''),(1637,287,'2',''),(1638,288,'1',''),(1639,288,'2',''),(1640,288,'1',''),(1641,288,'2',''),(1642,289,'1',''),(1643,289,'2',''),(1644,289,'1',''),(1645,289,'2',''),(1646,290,'1',''),(1647,290,'2',''),(1648,290,'1',''),(1649,290,'2',''),(1650,291,'1',''),(1651,291,'2',''),(1652,291,'1','0'),(1653,291,'2',''),(1654,291,'1','1'),(1655,292,'1',''),(1656,292,'2',''),(1657,292,'1',''),(1658,292,'2',''),(1659,293,'1',''),(1660,293,'2',''),(1661,293,'1',''),(1662,293,'2',''),(1663,294,'1',''),(1664,294,'2',''),(1665,294,'1',''),(1666,294,'2',''),(1667,295,'1',''),(1668,295,'2',''),(1669,295,'1',''),(1670,295,'2',''),(1671,296,'1',''),(1672,296,'2',''),(1673,296,'1',''),(1674,296,'2',''),(1675,297,'1',''),(1676,297,'2',''),(1677,297,'1',''),(1678,297,'2',''),(1679,298,'1',''),(1680,298,'2',''),(1681,298,'1',''),(1682,298,'2',''),(1683,299,'1',''),(1684,299,'2',''),(1685,299,'1',''),(1686,299,'2',''),(1687,300,'1',''),(1688,300,'2',''),(1689,300,'1',''),(1690,300,'2',''),(1691,301,'1',''),(1692,301,'2',''),(1693,301,'1',''),(1694,301,'2',''),(1695,302,'1',''),(1696,302,'2',''),(1697,302,'1',''),(1698,302,'2',''),(1699,303,'1',''),(1700,303,'2',''),(1701,303,'1',''),(1702,303,'2',''),(1703,304,'1',''),(1704,304,'2',''),(1705,304,'1',''),(1706,304,'2',''),(1707,305,'1',''),(1708,305,'2',''),(1709,305,'1',''),(1710,305,'2',''),(1711,305,'1','0'),(1712,305,'1','1'),(1713,306,'1',''),(1714,306,'2',''),(1715,306,'1',''),(1716,306,'2',''),(1717,307,'1',''),(1718,307,'2',''),(1719,307,'1',''),(1720,307,'2',''),(1721,308,'1',''),(1722,308,'2',''),(1723,308,'1',''),(1724,308,'2',''),(1725,309,'1',''),(1726,309,'2',''),(1727,309,'1',''),(1728,309,'2',''),(1729,310,'1',''),(1730,310,'2',''),(1731,310,'1','0'),(1732,310,'2','0'),(1733,310,'1','1'),(1734,310,'2','1'),(1735,310,'1','3'),(1736,310,'2','2'),(1737,310,'2','3'),(1738,310,'2','4'),(1739,310,'2','5'),(1740,310,'2','6'),(1741,310,'2','7'),(1742,311,'1',''),(1743,311,'2',''),(1744,311,'1','0'),(1745,311,'2','0'),(1746,311,'1','1'),(1747,311,'2','1'),(1748,311,'1','2'),(1749,311,'2','2'),(1750,311,'2','3'),(1751,311,'2','4'),(1752,311,'2','5'),(1753,311,'2','6'),(1754,311,'2','7'),(1755,312,'1',''),(1756,312,'2',''),(1757,312,'1','0'),(1758,312,'2','0'),(1759,312,'1','1'),(1760,312,'2','1'),(1761,312,'1','2'),(1762,312,'2','2'),(1763,312,'2','3'),(1764,312,'2','4'),(1765,312,'2','5'),(1766,312,'2','6'),(1767,312,'2','7'),(1768,313,'1',''),(1769,313,'2',''),(1770,313,'1',''),(1771,313,'2','0'),(1772,313,'2','1'),(1773,313,'2','2'),(1774,313,'2','3'),(1775,313,'2','4'),(1776,313,'2','5'),(1777,313,'2','6'),(1778,313,'2','7'),(1779,314,'1',''),(1780,314,'2',''),(1781,314,'1',''),(1782,314,'2','0'),(1783,314,'2','1'),(1784,314,'2','2'),(1785,314,'2','3'),(1786,314,'2','4'),(1787,314,'2','5'),(1788,314,'2','6'),(1789,314,'2','7'),(1790,315,'1',''),(1791,315,'2',''),(1792,315,'1',''),(1793,315,'2','0'),(1794,315,'2','1'),(1795,315,'2','2'),(1796,315,'2','3'),(1797,315,'2','4'),(1798,315,'2','5'),(1799,315,'2','6'),(1800,315,'2','7'),(1801,316,'1',''),(1802,316,'2',''),(1803,316,'1',''),(1804,316,'2','0'),(1805,316,'2','1'),(1806,316,'2','2'),(1807,316,'2','3'),(1808,316,'2','4'),(1809,316,'2','5'),(1810,316,'2','6'),(1811,316,'2','7'),(1812,317,'1',''),(1813,317,'2',''),(1814,317,'1',''),(1815,317,'2','0'),(1816,317,'2','1'),(1817,317,'2','2'),(1818,317,'2','3'),(1819,317,'2','4'),(1820,317,'2','5'),(1821,317,'2','6'),(1822,317,'2','7'),(1823,318,'1',''),(1824,318,'2',''),(1825,318,'1',''),(1826,318,'2','0'),(1827,318,'2','1'),(1828,318,'2','2'),(1829,318,'2','3'),(1830,318,'2','4'),(1831,318,'2','5'),(1832,318,'2','6'),(1833,318,'2','7'),(1834,319,'1',''),(1835,319,'2',''),(1836,319,'1',''),(1837,319,'2','0'),(1838,319,'2','1'),(1839,319,'2','2'),(1840,319,'2','3'),(1841,319,'2','4'),(1842,319,'2','5'),(1843,319,'2','6'),(1844,319,'2','7'),(1845,320,'1',''),(1846,320,'2',''),(1847,320,'1',''),(1848,320,'2','0'),(1849,320,'2','1'),(1850,320,'2','2'),(1851,320,'2','3'),(1852,320,'2','4'),(1853,320,'2','5'),(1854,320,'2','6'),(1855,320,'2','7'),(1856,321,'2',''),(1857,321,'2','0'),(1858,321,'2','1'),(1859,321,'2','2'),(1860,321,'2','3'),(1861,321,'2','4'),(1862,321,'2','5'),(1863,321,'2','6'),(1864,321,'2','7'),(1865,322,'1',''),(1866,322,'2',''),(1867,322,'1',''),(1868,322,'2','0'),(1869,322,'2','1'),(1870,322,'2','2'),(1871,322,'2','3'),(1872,322,'2','4'),(1873,322,'2','5'),(1874,322,'2','6'),(1875,322,'2','7'),(1876,323,'1',''),(1877,323,'2',''),(1878,323,'1',''),(1879,323,'2',''),(1880,323,'1','0'),(1881,323,'2','0'),(1882,323,'1','1'),(1883,323,'2','1'),(1884,323,'1','2'),(1885,323,'2','2'),(1886,323,'1','3'),(1887,323,'2','8'),(1888,323,'1','4'),(1889,323,'1','7'),(1890,324,'1',''),(1891,324,'2',''),(1892,324,'1',''),(1893,324,'2','');
94
/*!40000 ALTER TABLE marc_indicators_value ENABLE KEYS */;
95
UNLOCK TABLES;
96
97
98
--
99
-- Dumping data for table marc_indicators_desc
100
--
101
102
LOCK TABLES marc_indicators_desc WRITE;
103
/*!40000 ALTER TABLE marc_indicators_desc DISABLE KEYS */;
104
INSERT INTO marc_indicators_desc VALUES (1,'en','Undefined'),(2,'en','Undefined'),(3,'en','Undefined'),(4,'en','Undefined'),(5,'en','Undefined'),(6,'en','Undefined'),(7,'en','Undefined'),(8,'en','Undefined'),(9,'en','Undefined'),(10,'en','Undefined'),(11,'en','Undefined'),(12,'en','Undefined'),(13,'en','National bibliographic agency'),(14,'en','Undefined'),(15,'en','Library and Archives Canada'),(16,'en','Undefined'),(17,'en','Source specified in subfield $2. Used when the source of the control number is indicated by a code in subfield $2. Codes from : MARC Code List for Organizations'),(18,'en','Undefined'),(19,'en','Undefined'),(20,'en','Undefined'),(21,'en','Undefined'),(22,'en','Undefined'),(23,'en','Undefined'),(24,'en','Undefined'),(25,'en','Undefined'),(26,'en','Undefined'),(27,'en','Undefined'),(28,'en','Undefined'),(29,'en','Undefined'),(30,'en','Level of international interest'),(31,'en','Undefined'),(32,'en','No level specified'),(33,'en','Undefined'),(34,'en','Continuing resource of international interest'),(35,'en','Continuing resource not of international interest'),(36,'en','Type of standard number or code'),(37,'en','Difference indicator'),(38,'en','International Standard Recording Code'),(39,'en','No information provided'),(40,'en','Universal Product Code'),(41,'en','No difference'),(42,'en','International Standard Music Number'),(43,'en','Difference'),(44,'en','International Article Number'),(45,'en','Serial Item and Contribution Identifier'),(46,'en','Source specified in sufield $2'),(47,'en','Unspecified type of starndard number or code'),(48,'en','Undefined'),(49,'en','Undefined'),(50,'en','Undefined'),(51,'en','Undefined'),(52,'en','Undefined'),(53,'en','Undefined'),(54,'en','Undefined'),(55,'en','Undefined'),(56,'en','Undefined'),(57,'en','Undefined'),(58,'en','Undefined'),(59,'en','Undefined'),(60,'en','Type of publisher number'),(61,'en','Note/added entry controller'),(62,'en','Issue number. Number used to indentify the issue designation, or serial identifiation, assigned by a publisher to a specific sound recording, side of a sound recording, or performance on a sound recording or to a group of sound recording issued as a set.'),(63,'en','No note, no added entry'),(64,'en','Matrix number. Master from witch the specific recording was pressed.'),(65,'en','Note, added entry'),(66,'en','Plate number. Assigned by a publisher to a specific music publication.'),(67,'en','Note, no added entry'),(68,'en','Other music number'),(69,'en','No note, added entry'),(70,'en','Videorecording number'),(71,'en','Other publisher number'),(72,'en','Undefined'),(73,'en','Undefined'),(74,'en','Undefined'),(75,'en','Undefined'),(76,'en','Undefined'),(77,'en','Undefined'),(78,'en','Undefined'),(79,'en','#- Undefined'),(80,'en','Undefined'),(81,'en','Undefined'),(82,'en','# -Undefined'),(83,'en','Undefined'),(84,'en','Type of date in subfield $a'),(85,'en','Type of event'),(86,'en','No date information'),(87,'en','No information provided'),(88,'en','Single date'),(89,'en','Capture. Pertains to the recording of sound, the filming of visual images, the making or producing of a item, or other form of creation of an item'),(90,'en','Multiple single dates'),(91,'en','Broadcast. Pertains to the broadcasting (i.e., transmission) or re-boardcasting of sound or visual images.'),(92,'en','Range of dates'),(93,'en','Finding. Pertains to the finding of a naturally ocurring object.'),(94,'en','Type of scale Specifies the type of scale information given'),(95,'en','Type of ring'),(96,'en','Scale indeterminable/No scale recorded. Used when no representative fraction is given in field 255.'),(97,'en','Not applicable'),(98,'en','Single scale'),(99,'en','Outer ring'),(100,'en','Range of scales'),(101,'en','Exclusion ring'),(102,'en','Undefined'),(103,'en','Undefined'),(104,'en','Undefined'),(105,'en','Undefined'),(106,'en','Undefined'),(107,'en','Undefined'),(108,'en','Undefined'),(109,'en','Undefined'),(110,'en','Undefined'),(111,'en','Undefined'),(112,'en','# -Undefined'),(113,'en','Undefined'),(114,'en','Undefined'),(115,'en','Undefined'),(116,'en','# -Undefined'),(117,'en','Undefined'),(118,'en','Undefined'),(119,'en','Undefined'),(120,'en','Undefined'),(121,'en','Undefined'),(122,'en','Translation indication'),(123,'en','Source of code'),(124,'en','Item not a translation/ does not include a translation'),(125,'en','MARC language code'),(126,'en','Item is or includes a translation'),(127,'en','Source specified in subfield $2'),(128,'en','Undefined'),(129,'en','Undefined'),(130,'en','Undefined'),(131,'en','Undefined'),(132,'en','Undefined'),(133,'en','Undefined'),(134,'en','Undefined'),(135,'en','Undefined'),(136,'en','Undefined'),(137,'en','Undefined'),(138,'en','Undefined'),(139,'en','Undefined'),(140,'en','Type of time period in subfield $b or $c'),(141,'en','Undefined'),(142,'en','Subfield $b or $c not present'),(143,'en','Undefined'),(144,'en','Single date/time'),(145,'en','Multiple sigle dates/times. Multiple $b and/or $c subfields are present, each containing a date/time.'),(146,'en','Range of dates/times. Two $b and/or $c subfields are present and contain a range of dates/times'),(147,'en','Undefined'),(148,'en','Undefined'),(149,'en','Undefined'),(150,'en','Undefined'),(151,'en','Undefined'),(152,'en','Undefined'),(153,'en','# -Undefined'),(154,'en','Undefined'),(155,'en','Undefined'),(156,'en','Undefined'),(157,'en','Undefined'),(158,'en','Undefined'),(159,'en','Existence in LC collection'),(160,'en','Source of call number'),(161,'en','No information provided. Used for all call numbers assigned by agencies other than the Library of Congress'),(162,'en','Assigned by LC. Used when an institution is transcribing from lC cataloging copy.'),(163,'en','Item is in LC. Other agencies should use this value when transcribing from LC cataloging copy on which the call number is neither enclosed within brackets nor preceded by a Maltese cross'),(164,'en','Assigned by agency other than LC.'),(165,'en','Item is not in LC. Used by other agencies when transcribing from LC copy on the call number appears in brackets or is preceded by a Maltese cross. Brackets that customarily surround call numbers for items not in LC are not carried in the MARC record; they may be generated for display.'),(166,'en','Undefined'),(167,'en','Undefined'),(168,'en','Undefined'),(169,'en','Undefined'),(170,'en','Code source'),(171,'en','Undefined'),(172,'en','Library of Congress Classification'),(173,'en','Undefined'),(174,'en','U.S. Dept. of Defense Classification'),(175,'en','Source specified in subfield $2'),(176,'en','Existence in LAC collection'),(177,'en','Type, completeness, source of class/call number'),(178,'en','Information not provided. Used in any record input by an institution other than LAC.'),(179,'en','LC - based call number assigned by LAC'),(180,'en','Work held by LAC'),(181,'en','Complete LC class number assigned by LAC'),(182,'en','Work not held by LAC'),(183,'en','Incomplete LC class number asigned by LAC'),(184,'en','LC- based call number assigned by the contibuting library'),(185,'en','4 -Complete LC class number assigned by the contributing library'),(186,'en','Incomplete LC class number assigned by de contributing library'),(187,'en','Other call number assigned by LAC'),(188,'en','Other class number assigned by LAC'),(189,'en','Other call number assigned by the contributing library'),(190,'en','Other class number assigned by the contributing library'),(191,'en','Existence in NLM collection'),(192,'en','Source of call number'),(193,'en','# -No information provided. Used for call numbers assigned by an organization other than NLM'),(194,'en','Assigned by NLM'),(195,'en','Item is in NLM'),(196,'en','Assigned by agency other than NLM'),(197,'en','Item is not in NLM'),(198,'en','Undefined'),(199,'en','Undefined'),(200,'en','Undefined'),(201,'en','Undefined'),(202,'en','Undefined'),(203,'en','Undefined'),(204,'en','# -Undefined'),(205,'en','Undefined'),(206,'en','Existence in NAL collection'),(207,'en','Undefined'),(208,'en','Item is in NAL'),(209,'en','Undefined'),(210,'en','Item is not in NAL'),(211,'en','Undefined'),(212,'en','Undefined'),(213,'en','Undefined'),(214,'en','# -Undefined'),(215,'en','Undefined'),(216,'en','Code source'),(217,'en','Undefined'),(218,'en','0 -NAL subject category code list'),(219,'en','Source specified in subfield $2'),(220,'en','Undefined'),(221,'en','Undefined'),(222,'en','Undefined'),(223,'en','# -Undefined'),(224,'en','Undefined'),(225,'en','Undefined'),(226,'en','Undefined'),(227,'en','Undefined'),(228,'en','Type of edition'),(229,'en','Source of classification number'),(230,'en','Full edition'),(231,'en','No information provided'),(232,'en','Abridged edition'),(233,'en','Assigned by LC. May be used by organizations transcribing from LC copy'),(234,'en','Assigned by agency other than LC'),(235,'en','Undefined'),(236,'en','Undefined'),(237,'en','Undefined'),(238,'en','Undefined'),(239,'en','Number source'),(240,'en','Undefined'),(241,'en','Source specified in subfield $2. Classification number other than the U.S. or Canadian scheme'),(242,'en','Undefined'),(243,'en','Superintendent of Documents Classification System. Assigned by the U.S. Government Printing Office. Supt.of Docs.no.: may be generated for display'),(244,'en','Government of Canada Publications: Outline of Classification'),(245,'en','Undefined'),(246,'en','Undefined'),(247,'en','Undefined'),(248,'en','# -Undefined'),(249,'en','Type of personal name entry element'),(250,'en','Undefined'),(251,'en','Forename. Forename or a name consisting of words, initials, letters,etc., that are formatted in direc order'),(252,'en','Undefined'),(253,'en','Surname. Single or multiple surname formatted in inverted order or a single name without forenames that is known to be a surname.'),(254,'en','Family name. Name represents a family, clan, dynasty, house, or other such group and may be formatted in direct or inverted order.'),(255,'en','Type of corporate name entry element'),(256,'en','Undefined'),(257,'en','Inverted name. Corporate name begins with a personal name in inverted order.'),(258,'en','Undefined'),(259,'en','1- Jurisdiction name. Name of a jurisdiction that is also an ecclesiastical entity or is a jurisdiction name under which a corporate name or a title of a work is entered.'),(260,'en','Name in direct order.'),(261,'en','Type of meeting name entry element'),(262,'en','Undefined'),(263,'en','Inverted name. Meeting name begins with a personal name in inverted order.'),(264,'en','Undefined'),(265,'en','1 -Jurisdiction name. Jurisdiction name under which a meeting name is entered'),(266,'en','Name in direct order'),(267,'en','Nonfiling characters'),(268,'en','Undefined'),(269,'en','Number of nonfiling characters'),(270,'en','Undefined'),(271,'en','Number of nonfiling characters'),(272,'en','Number of nonfiling characters'),(273,'en','Number of nonfiling characters'),(274,'en','Number of nonfiling characters'),(275,'en','Number of nonfiling characters'),(276,'en','Number of nonfiling characters'),(277,'en','Number of nonfiling characters'),(278,'en','Number of nonfiling characters'),(279,'en','Number of nonfiling characters'),(280,'en','Title added entry'),(281,'en','Type'),(282,'en','No added entry'),(283,'en','Abbreviated key title'),(284,'en','Added entry'),(285,'en','Other abbreviated title'),(286,'en','Undefined'),(287,'en','Nonfiling characters'),(288,'en','Undefined'),(289,'en','No nonfiling characters'),(290,'en','Number of nonfiling characters'),(291,'en','Number of nonfiling characters'),(292,'en','Number of nonfiling characters'),(293,'en','Number of nonfiling characters'),(294,'en','Number of nonfiling characters'),(295,'en','Number of nonfiling characters'),(296,'en','Number of nonfiling characters'),(297,'en','Number of nonfiling characters'),(298,'en','Number of nonfiling characters'),(299,'en','Uniform title printed or displayed'),(300,'en','Nonfiling characters'),(301,'en','Not printed or displayed'),(302,'en','Number of nonfiling characters'),(303,'en','Printed or displayed'),(304,'en','Number of nonfiling characters'),(305,'en','Number of nonfiling characters'),(306,'en','Number of nonfiling characters'),(307,'en','Number of nonfiling characters'),(308,'en','Number of nonfiling characters'),(309,'en','Number of nonfiling characters'),(310,'en','Number of nonfiling characters'),(311,'en','Number of nonfiling characters'),(312,'en','Number of nonfiling characters'),(313,'en','Title added entry'),(314,'en','Nonfiling characters'),(315,'en','No added entry'),(316,'en','No nonfiling characters'),(317,'en','Added entry'),(318,'en','Number of nonfiling characters'),(319,'en','Number of nonfiling characters'),(320,'en','Number of nonfiling characters'),(321,'en','Number of nonfiling characters'),(322,'en','Number of nonfiling characters'),(323,'en','Number of nonfiling characters'),(324,'en','Number of nonfiling characters'),(325,'en','Number of nonfiling characters'),(326,'en','Number of nonfiling characters'),(327,'en','Title added entry'),(328,'en','Nonfiling characters'),(329,'en','No added entry. No title added entry is made, either because no title added entry is desired or because the title added entry is not traced the same as the title in field 245'),(330,'en','No nonfiling characters'),(331,'en','Added entry. Desired title added entry is the same as the title in field 245'),(332,'en','Number of nonfiling characters'),(333,'en','Number of nonfiling characters'),(334,'en','Number of nonfiling characters'),(335,'en','Number of nonfiling characters'),(336,'en','Number of nonfiling characters'),(337,'en','Number of nonfiling characters'),(338,'en','Number of nonfiling characters'),(339,'en','Number of nonfiling characters'),(340,'en','Number of nonfiling characters'),(341,'en','Note/added entry controller'),(342,'en','Type of title'),(343,'en','Note, no added entry'),(344,'en','No type specified'),(345,'en','Note, added entry'),(346,'en','Portion of title'),(347,'en','No note, no added entry'),(348,'en','Parallel title'),(349,'en','No note, added entry'),(350,'en','Distintictive title'),(351,'en','Other title'),(352,'en','Cover title'),(353,'en','Added title page title'),(354,'en','Caption title'),(355,'en','Running title'),(356,'en','Spine title'),(357,'en','Title added entry'),(358,'en','Note controller'),(359,'en','No added entry'),(360,'en','Display note'),(361,'en','Added entry'),(362,'en','Do not display note'),(363,'en','Undefined'),(364,'en','Undefined'),(365,'en','Undefined'),(366,'en','Undefined'),(367,'en','Undefined'),(368,'en','Undefined'),(369,'en','Undefined'),(370,'en','Undefined'),(371,'en','Undefined'),(372,'en','Undefined'),(373,'en','Undefined'),(374,'en','Undefined'),(375,'en','Undefined'),(376,'en','Undefined'),(377,'en','Undefined'),(378,'en','Undefined'),(379,'en','Undefined'),(380,'en','Undefined'),(381,'en','Undefined'),(382,'en','Undefined'),(383,'en','Undefined'),(384,'en','Undefined'),(385,'en','Undefined'),(386,'en','Undefined'),(387,'en','Sequence of publishing statements'),(388,'en','Undefined'),(389,'en','Not applicable/ No information provided/ Earliest available publisher'),(390,'en','Undefined'),(391,'en','Intervening publisher'),(392,'en','3- Current/latest publisher'),(393,'en','Undefined'),(394,'en','Undefined'),(395,'en','# -Undefined'),(396,'en','# -Undefined'),(397,'en','Level'),(398,'en','Type of address'),(399,'en','No level specified'),(400,'en','No type specified'),(401,'en','Primary'),(402,'en','Mailing'),(403,'en','Secondary'),(404,'en','Type specified in subfield $i'),(405,'en','Undefined'),(406,'en','Undefined'),(407,'en','# -Undefined'),(408,'en','# -Undefined'),(409,'en','Undefined'),(410,'en','Undefined'),(411,'en','Undefined'),(412,'en','Undefined'),(413,'en','Display constant controller'),(414,'en','Undefined'),(415,'en','Hours'),(416,'en','Undefined'),(417,'en','No display constant generated'),(418,'en','Undefined'),(419,'en','Undefined'),(420,'en','Undefined'),(421,'en','Undefined'),(422,'en','Undefined'),(423,'en','Undefined'),(424,'en','Undefined'),(425,'en','Undefined'),(426,'en','Undefined'),(427,'en','Undefined'),(428,'en','Undefined'),(429,'en','Undefined'),(430,'en','Undefined'),(431,'en','Undefined'),(432,'en','Undefined'),(433,'en','Undefined'),(434,'en','Undefined'),(435,'en','Undefined'),(436,'en','Undefined'),(437,'en','Undefined'),(438,'en','Undefined'),(439,'en','Undefined'),(440,'en','Undefined'),(441,'en','Undefined'),(442,'en','Geospatial reference dimension'),(443,'en','Geospatial reference method'),(444,'en','Horizontal coordinate system'),(445,'en','Geographic'),(446,'en','Vertical coordinate system'),(447,'en','Map projection'),(448,'en','Grid coordinate system'),(449,'en','Local planar'),(450,'en','Local'),(451,'en','Geodentic model'),(452,'en','Altitude'),(453,'en','Method specified in $2'),(454,'en','Depth'),(455,'en','Undefined'),(456,'en','Undefined'),(457,'en','# -Undefined'),(458,'en','# -Undefined'),(459,'en','Undefined'),(460,'en','Undefined'),(461,'en','Undefined'),(462,'en','Undefined'),(463,'en','Undefined'),(464,'en','Undefined'),(465,'en','Undefined'),(466,'en','# -Undefined'),(467,'en','Controlled element'),(468,'en','Undefined'),(469,'en','Document'),(470,'en','Undefined'),(471,'en','Títle'),(472,'en','Abstract'),(473,'en','Contents note'),(474,'en','Author'),(475,'en','Record'),(476,'en','None of the above'),(477,'en','Undefined'),(478,'en','Undefined'),(479,'en','# -Undefined'),(480,'en','Undefined'),(481,'en','Format of date'),(482,'en','Undefined'),(483,'en','Formatted style'),(484,'en','Undefined'),(485,'en','Unformatted note'),(486,'en','Start / End designator'),(487,'en','State of issuance'),(488,'en','No information provided'),(489,'en','Not specified'),(490,'en','Starting information'),(491,'en','Closed. The sequence of the publication has terminated and is no longer being issued'),(492,'en','Ending information'),(493,'en','1 -Open. The sequence of the publication continues to be issued.'),(494,'en','Undefined'),(495,'en','Undefined'),(496,'en','Undefined'),(497,'en','Undefined'),(498,'en','Undefined'),(499,'en','Undefined'),(500,'en','Undefined'),(501,'en','Undefined'),(502,'en','Undefined'),(503,'en','Undefined'),(504,'en','Undefined'),(505,'en','Undefined'),(506,'en','Undefined'),(507,'en','Undefined'),(508,'en','Undefined'),(509,'en','Undefined'),(510,'en','Undefined'),(511,'en','Undefined'),(512,'en','Undefined'),(513,'en','Undefined'),(514,'en','Undefined'),(515,'en','Undefined'),(516,'en','Undefined'),(517,'en','Undefined'),(518,'en','Key type'),(519,'en','Undefined'),(520,'en','Relationship to original unknown'),(521,'en','Undefined'),(522,'en','Original key'),(523,'en','Transposed key'),(524,'en','Series tracing policy'),(525,'en','Undefined'),(526,'en','Series not traced'),(527,'en','Undefined'),(528,'en','Series traced'),(529,'en','Undefined'),(530,'en','Undefined'),(531,'en','Undefined'),(532,'en','Undefined'),(533,'en','Undefined'),(534,'en','Undefined'),(535,'en','Undefined'),(536,'en','Undefined'),(537,'en','Undefined'),(538,'en','Undefined'),(539,'en','Undefined'),(540,'en','Undefined'),(541,'en','Undefined'),(542,'en','Undefined'),(543,'en','Undefined'),(544,'en','Undefined'),(545,'en','Display constant controller'),(546,'en','Level of content designation'),(547,'en','Contents'),(548,'en','Basic'),(549,'en','Incomplete contents'),(550,'en','Enhanced'),(551,'en','Partial contents'),(552,'en','No display constant generated'),(553,'en','Restriction'),(554,'en','Undefined'),(555,'en','No information provided'),(556,'en','Undefined'),(557,'en','No restrictions'),(558,'en','Restrictions apply'),(559,'en','Undefined'),(560,'en','Undefined'),(561,'en','Undefined'),(562,'en','Undefined'),(563,'en','Undefined'),(564,'en','Undefined'),(565,'en','Undefined'),(566,'en','Undefined'),(567,'en','Coverage/location in source'),(568,'en','Undefined'),(569,'en','Coverage unknown'),(570,'en','Undefined'),(571,'en','Coverage complete'),(572,'en','Coverage is selective'),(573,'en','Location in source not given'),(574,'en','Location in source given'),(575,'en','Display constant controller'),(576,'en','Undefined'),(577,'en','No display constant generated'),(578,'en','Undefined'),(579,'en','Cast'),(580,'en','Undefined'),(581,'en','Undefined'),(582,'en','# -Undefined'),(583,'en','Undefined'),(584,'en','Undefined'),(585,'en','Undefined'),(586,'en','Undefined'),(587,'en','Undefined'),(588,'en','Undefined'),(589,'en','Undefined'),(590,'en','Undefined'),(591,'en','Undefined'),(592,'en','Display constant controller'),(593,'en','Undefined'),(594,'en','Type of file'),(595,'en','Undefined'),(596,'en','No display constant generated'),(597,'en','Undefined'),(598,'en','Undefined'),(599,'en','Undefined'),(600,'en','Undefined'),(601,'en','Display constant controller'),(602,'en','Undefined'),(603,'en','Summary'),(604,'en','Undefined'),(605,'en','Subject'),(606,'en','Review'),(607,'en','Scope and content'),(608,'en','Content advice'),(609,'en','Abstract'),(610,'en','No display constant generated'),(611,'en','Display constant controller'),(612,'en','Undefined'),(613,'en','Audience'),(614,'en','Undefined'),(615,'en','Reading grade level'),(616,'en','Interest age level'),(617,'en','Interest grade level'),(618,'en','Special audience characteristics'),(619,'en','Motivation/interest level'),(620,'en','No display constant generated'),(621,'en','Display constant controller'),(622,'en','Undefined'),(623,'en','Geographic coverage'),(624,'en','Undefined'),(625,'en','No display constant generated'),(626,'en','Display constant controller'),(627,'en','Undefined'),(628,'en','Cite as'),(629,'en','Undefined'),(630,'en','No display constant generated'),(631,'en','Undefined'),(632,'en','Undefined'),(633,'en','# -Undefined'),(634,'en','Undefined'),(635,'en','Display constant controller'),(636,'en','Undefined'),(637,'en','Reading program'),(638,'en','Undefined'),(639,'en','No display constant generated'),(640,'en','Undefined'),(641,'en','Undefined'),(642,'en','Undefined'),(643,'en','Undefined'),(644,'en','Undefined'),(645,'en','Undefined'),(646,'en','# -Undefined'),(647,'en','Undefined'),(648,'en','Undefined'),(649,'en','Undefined'),(650,'en','Undefined'),(651,'en','Undefined'),(652,'en','Custodial role'),(653,'en','Undefined'),(654,'en','Holder of originals'),(655,'en','Undefined'),(656,'en','Holder of duplicates'),(657,'en','Undefined'),(658,'en','Undefined'),(659,'en','# -Undefined'),(660,'en','Undefined'),(661,'en','Undefined'),(662,'en','Undefined'),(663,'en','Undefined'),(664,'en','Undefined'),(665,'en','Undefined'),(666,'en','Undefined'),(667,'en','Undefined'),(668,'en','Undefined'),(669,'en','Undefined'),(670,'en','Undefined'),(671,'en','# -Undefined'),(672,'en','Undefined'),(673,'en','Relationship'),(674,'en','Undefined'),(675,'en','No information provided'),(676,'en','Undefined'),(677,'en','Associated materials. Other materials identified in the note  have the same provenance but reside in a different repository'),(678,'en','Related materials. Other materials identified in the note share of activity, reside in the same repository, but have different provenance.'),(679,'en','Type of data'),(680,'en','Undefined'),(681,'en','No information provided'),(682,'en','Undefined'),(683,'en','Biographical sketch'),(684,'en','Administrative history'),(685,'en','Undefined'),(686,'en','Undefined'),(687,'en','Undefined'),(688,'en','Undefined'),(689,'en','Undefined'),(690,'en','Undefined'),(691,'en','Undefined'),(692,'en','Undefined'),(693,'en','Undefined'),(694,'en','Undefined'),(695,'en','Undefined'),(696,'en','Undefined'),(697,'en','Undefined'),(698,'en','Undefined'),(699,'en','Undefined'),(700,'en','Undefined'),(701,'en','Display constant controller'),(702,'en','Undefined'),(703,'en','Undefined'),(704,'en','No display constant generated'),(705,'en','Display constant controller'),(706,'en','Undefined'),(707,'en','Undefined'),(708,'en','No display constant generated'),(709,'en','Undefined'),(710,'en','Undefined'),(711,'en','# -Undefined'),(712,'en','Undefined'),(713,'en','Undefined'),(714,'en','Undefined'),(715,'en','# -Undefined'),(716,'en','Undefined'),(717,'en','Undefined'),(718,'en','Undefined'),(719,'en','Undefined'),(720,'en','Undefined'),(721,'en','Display constant controller'),(722,'en','Undefined'),(723,'en','File size'),(724,'en','Undefined'),(725,'en','Case file characteristics'),(726,'en','No display constant generated'),(727,'en','Display constant controller'),(728,'en','Undefined'),(729,'en','Methodology'),(730,'en','# -Undefined'),(731,'en','No display constant generated'),(732,'en','Undefined'),(733,'en','Undefined'),(734,'en','# -Undefined'),(735,'en','Undefined'),(736,'en','Display constant controller'),(737,'en','Undefined'),(738,'en','Publications'),(739,'en','Undefined'),(740,'en','No display constant generated'),(741,'en','Undefined'),(742,'en','Undefined'),(743,'en','# -Undefined'),(744,'en','Undefined'),(745,'en','Undefined'),(746,'en','Undefined'),(747,'en','Undefined'),(748,'en','Undefined'),(749,'en','Undefined'),(750,'en','Undefined'),(751,'en','Undefined'),(752,'en','# -Undefined'),(753,'en','Display constant controller'),(754,'en','Undefined'),(755,'en','Awards'),(756,'en','Undefined'),(757,'en','No display constant generated'),(758,'en','Undefined'),(759,'en','Undefined'),(760,'en','Undefined'),(761,'en','Undefined'),(762,'en','Type of personal name entry element'),(763,'en','Thesaurus'),(764,'en','Forename'),(765,'en','0 -Library of Congress Subject Headings'),(766,'en','Surname.'),(767,'en','LC subject headings for children\'s literature.'),(768,'en','Family Name'),(769,'en','Medical Subject Headings. '),(770,'en','National Agricultural Library subject authority file'),(771,'en','Source not specified'),(772,'en','Canadian Subject Headings'),(773,'en','Répertoire de vedettes-matière'),(774,'en','Source specified in subfield $2'),(775,'en','Type of corporate name entry element'),(776,'en','Thesaurus'),(777,'en','Inverted name'),(778,'en','Library of Congress Subject Headings'),(779,'en','Juridistion name'),(780,'en','LC subject headings for children\'s literature.'),(781,'en','Name in direct order'),(782,'en','Medical Subject Headings.'),(783,'en','National Agricultural Library subject authority file'),(784,'en','Source not specified'),(785,'en','Canadian Subject Headings'),(786,'en','Répertoire de vedettes-matière. '),(787,'en','Source specified in subfield $2'),(788,'en','Type of meeting name entry element'),(789,'en','Thesaurus'),(790,'en','Inverted name'),(791,'en','Library of Congress Subject Headings'),(792,'en','Juridistion name'),(793,'en','LC subject headings for children\'s literature. '),(794,'en','Name in direct order'),(795,'en','Medical Subject Headings. '),(796,'en','National Agricultural Library subject authority file'),(797,'en','Source not specified'),(798,'en','Canadian Subject Headings'),(799,'en','Répertoire de vedettes-matière'),(800,'en','Source specified in subfield $2'),(801,'en','Nonfiling characters'),(802,'en','Thesaurus'),(803,'en','Number of nonfiling characters'),(804,'en','Library of Congress Subject Headings'),(805,'en','Number of nonfiling characters'),(806,'en','LC subject headings for children\'s literature. '),(807,'en','Number of nonfiling characters'),(808,'en','Medical Subject Headings. '),(809,'en','Number of nonfiling characters'),(810,'en','National Agricultural Library subject authority file'),(811,'en','Number of nonfiling characters'),(812,'en','Source not specified'),(813,'en','Number of nonfiling characters'),(814,'en','Canadian Subject Headings'),(815,'en','Number of nonfiling characters'),(816,'en','Répertoire de vedettes-matière'),(817,'en','Number of nonfiling characters'),(818,'en','Source specified in subfield $2'),(819,'en','Number of nonfiling characters'),(820,'en','Number of nonfiling characters'),(821,'en','Undefined'),(822,'en','Thesaurus'),(823,'en','Undefined'),(824,'en','Library of Congress Subject Headings'),(825,'en','LC subject headings for children\'s literature. '),(826,'en','Medical Subject Headings. '),(827,'en','National Agricultural Library subject authority file'),(828,'en','Source not specified'),(829,'en','Canadian Subject Headings'),(830,'en','Répertoire de vedettes-matière'),(831,'en','Source specified in subfield $2'),(832,'en','Level of subject'),(833,'en','Thesaurus'),(834,'en','No information provided'),(835,'en','Library of Congress Subject Headings'),(836,'en','No level specified'),(837,'en','LC subject headings for children\'s literature. '),(838,'en','Primary'),(839,'en','Medical Subject Headings. '),(840,'en','Secondary'),(841,'en','National Agricultural Library subject authority file'),(842,'en','Source not specified'),(843,'en','Canadian Subject Headings'),(844,'en','Répertoire de vedettes-matière'),(845,'en','Source specified in subfield $2'),(846,'en','Undefined'),(847,'en','Thesaurus'),(848,'en','Undefined'),(849,'en','Library of Congress Subject Headings'),(850,'en','LC subject headings for children\'s literature. '),(851,'en','Medical Subject Headings. '),(852,'en','National Agricultural Library subject authority file'),(853,'en','Source not specified'),(854,'en','Canadian Subject Headings'),(855,'en','Répertoire de vedettes-matière'),(856,'en','Source specified in subfield $2'),(857,'en','Level of index term'),(858,'en','Type of term or name'),(859,'en','No information provided'),(860,'en','No information provided'),(861,'en','No level specified'),(862,'en','Topical term'),(863,'en','Primary'),(864,'en','Personal name'),(865,'en','Secondary'),(866,'en','Corporate name'),(867,'en','Meeting name'),(868,'en','Chronological term'),(869,'en','Geographic name'),(870,'en','Genre/form term'),(871,'en','Level of subject'),(872,'en','Undefined'),(873,'en','No information provided'),(874,'en','Undefined'),(875,'en','No level specified'),(876,'en','Primary'),(877,'en','Secondary'),(878,'en','Type of heading'),(879,'en','Thesaurus'),(880,'en','Basic'),(881,'en','Library of Congress Subject Headings'),(882,'en','Faceted'),(883,'en','LC subject headings for children\'s literature. '),(884,'en','Medical Subject Headings. '),(885,'en','National Agricultural Library subject authority file'),(886,'en','Source not specified'),(887,'en','Canadian Subject Headings'),(888,'en','Répertoire de vedettes-matière'),(889,'en','Source specified in subfield $2'),(890,'en','Undefined'),(891,'en','Source of term'),(892,'en','Undefined'),(893,'en','Source specified in subfield $2'),(894,'en','Undefined'),(895,'en','Source of term'),(896,'en','Undefined'),(897,'en','Source specified in subfield $2'),(898,'en','Undefined'),(899,'en','Undefined'),(900,'en','Undefined'),(901,'en','Undefined'),(902,'en','Undefined'),(903,'en','Undefined'),(904,'en','Undefined'),(905,'en','Undefined'),(906,'en','Type of personal name entry element'),(907,'en','Type of added entry'),(908,'en','Forename'),(909,'en','No information provided'),(910,'en','Surname.'),(911,'en','Analytical entry'),(912,'en','Family name'),(913,'en','Type or corporate name entry element'),(914,'en','Type of added entry'),(915,'en','Inverted name'),(916,'en','No information provided'),(917,'en','Juridistion name'),(918,'en','Analytical entry'),(919,'en','Name in direct order'),(920,'en','Type of meeting name entry element'),(921,'en','Type of added entry'),(922,'en','Inverted name'),(923,'en','No information provided'),(924,'en','Juridistion name'),(925,'en','Analytical entry'),(926,'en','Name in direct order'),(927,'en','Type of name'),(928,'en','Undefined'),(929,'en','Not specified'),(930,'en','Undefined'),(931,'en','Personal'),(932,'en','Other'),(933,'en','Nonfiling characters'),(934,'en','Type of added entry'),(935,'en','Number of nonfiling characters'),(936,'en','No information provided'),(937,'en','Number of nonfiling characters'),(938,'en','Analytical entry'),(939,'en','Number of nonfiling characters'),(940,'en','Number of nonfiling characters'),(941,'en','Number of nonfiling characters'),(942,'en','Number of nonfiling characters'),(943,'en','Number of nonfiling characters'),(944,'en','Number of nonfiling characters'),(945,'en','Number of nonfiling characters'),(946,'en','Number of nonfiling characters'),(947,'en','Nonfiling characters'),(948,'en','Type of added entry'),(949,'en','No nonfiling characters'),(950,'en','No information provided'),(951,'en','Number of nonfiling characters'),(952,'en','Analytical entry'),(953,'en','Number of nonfiling characters'),(954,'en','Number of nonfiling characters'),(955,'en','Number of nonfiling characters'),(956,'en','Number of nonfiling characters'),(957,'en','Number of nonfiling characters'),(958,'en','Number of nonfiling characters'),(959,'en','Number of nonfiling characters'),(960,'en','Number of nonfiling characters'),(961,'en','Undefined'),(962,'en','Undefined'),(963,'en','Undefined'),(964,'en','Undefined'),(965,'en','Undefined'),(966,'en','Undefined'),(967,'en','Undefined'),(968,'en','Undefined'),(969,'en','Undefined'),(970,'en','Undefined'),(971,'en','Undefined'),(972,'en','Undefined'),(973,'en','Undefined'),(974,'en','Undefined'),(975,'en','Undefined'),(976,'en','Undefined'),(977,'en','Note controller'),(978,'en','Display constant controller'),(979,'en','Display note'),(980,'en','Main series'),(981,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(982,'en','No display constant generated'),(983,'en','Note controller'),(984,'en','Display constant controller'),(985,'en','Display note'),(986,'en','Has subseries'),(987,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(988,'en','No display constant generated'),(989,'en','Note controller'),(990,'en','Display constant controller'),(991,'en','Display note'),(992,'en','Translation of'),(993,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(994,'en','No display constant generated'),(995,'en','Note controller'),(996,'en','Display constant controller'),(997,'en','Display note'),(998,'en','Translated as'),(999,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1000,'en','No display constant generated'),(1001,'en','Note controller'),(1002,'en','Display constant controller'),(1003,'en','Display note'),(1004,'en','Has supplement'),(1005,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1006,'en','No display constant generated'),(1007,'en','Note controller'),(1008,'en','Display constant controller'),(1009,'en','Display note'),(1010,'en','Supplement to'),(1011,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1012,'en','Parent'),(1013,'en','No display constant generated'),(1014,'en','Note controller'),(1015,'en','Display constant controller'),(1016,'en','Display note'),(1017,'en','In'),(1018,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1019,'en','No display constant generated'),(1020,'en','Note controller'),(1021,'en','Display constant controller'),(1022,'en','Display note'),(1023,'en','Constituent unit'),(1024,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1025,'en','No display constant generated'),(1026,'en','Note controller'),(1027,'en','Display constant controller'),(1028,'en','Display note'),(1029,'en','Other edition available'),(1030,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1031,'en','No display constant generated'),(1032,'en','Note controller'),(1033,'en','Display constant controller'),(1034,'en','Display note'),(1035,'en','Available in another form'),(1036,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1037,'en','No display constant generated'),(1038,'en','Note controller'),(1039,'en','Display constant controller'),(1040,'en','Display note'),(1041,'en','Issued with'),(1042,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1043,'en','No display constant generated'),(1044,'en','Note controller'),(1045,'en','Type of relationship'),(1046,'en','Display note'),(1047,'en','Continues'),(1048,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1049,'en','Continues in part'),(1050,'en','Supersedes'),(1051,'en','Supersedes in part'),(1052,'en','4 -Formed by the union of ... and …'),(1053,'en','Absorbed'),(1054,'en','Absorbed in part'),(1055,'en','Separated from'),(1056,'en','Note controller'),(1057,'en','Type of relationship'),(1058,'en','Display note'),(1059,'en','Continued by'),(1060,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1061,'en','Continued in part by'),(1062,'en','Superseded in part by'),(1063,'en','Superseded in part by'),(1064,'en','Absorbed by'),(1065,'en','Absorbed in part by'),(1066,'en','Split into… and …'),(1067,'en','Merged with ... To form...'),(1068,'en','Changed back to'),(1069,'en','Note controller'),(1070,'en','Display constant controller'),(1071,'en','Display note'),(1072,'en','Data source'),(1073,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1074,'en','No display constant generated'),(1075,'en','Note controller'),(1076,'en','Display constant controller'),(1077,'en','Display note'),(1078,'en','Related item'),(1079,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(1080,'en','No display constant generated'),(1081,'en','Type of personal name entry element'),(1082,'en','Undefined'),(1083,'en','Forename'),(1084,'en','Undefined'),(1085,'en','Surname.'),(1086,'en','Family Name'),(1087,'en','Type of corporate name entry element'),(1088,'en','Undefined'),(1089,'en','Inverted name'),(1090,'en','Undefined'),(1091,'en','Juridistion name'),(1092,'en','Name in direct order'),(1093,'en','Undefined'),(1094,'en','Inverted name'),(1095,'en','Undefined'),(1096,'en','Juridistion name'),(1097,'en','Name in direct order'),(1098,'en','Undefined'),(1099,'en','Nonfiling characters'),(1100,'en','Undefined'),(1101,'en','No nonfiling characters'),(1102,'en','Number of nonfiling characters'),(1103,'en','Number of nonfiling characters'),(1104,'en','Number of nonfiling characters'),(1105,'en','Number of nonfiling characters'),(1106,'en','Number of nonfiling characters'),(1107,'en','Number of nonfiling characters'),(1108,'en','Number of nonfiling characters'),(1109,'en','Number of nonfiling characters'),(1110,'en','Number of nonfiling characters'),(1111,'en','Undefined'),(1112,'en','Undefined'),(1113,'en','Undefined'),(1114,'en','Undefined'),(1115,'en','Undefined'),(1116,'en','Undefined'),(1117,'en','Undefined'),(1118,'en','# -Undefined'),(1119,'en','Undefined'),(1120,'en','Undefined'),(1121,'en','Undefined'),(1122,'en','Undefined'),(1123,'en','Undefined'),(1124,'en','Undefined'),(1125,'en','Undefined'),(1126,'en','Undefined'),(1127,'en','Undefined'),(1128,'en','Undefined'),(1129,'en','Undefined'),(1130,'en','# -Undefined'),(1131,'en','Undefined'),(1132,'en','Undefined'),(1133,'en','Undefined'),(1134,'en','Undefined'),(1135,'en','Shelving scheme'),(1136,'en','Shelving order'),(1137,'en','No information provided'),(1138,'en','No information provided'),(1139,'en','Library of Congress classification'),(1140,'en','Not enumeration'),(1141,'en','Dewey Decimal classification'),(1142,'en','Primary enumeration'),(1143,'en','National Library of Medicine classification'),(1144,'en','Alternative enumeration'),(1145,'en','Superintendent of Document classification'),(1146,'en','Shelving control number'),(1147,'en','Title'),(1148,'en','Shelved separately'),(1149,'en','Source specified in subfield $2'),(1150,'en','Other scheme'),(1151,'en','Compressibility and expandability'),(1152,'en','Caption evaluation'),(1153,'en','Cannot compress or expand'),(1154,'en','Captions verified; all levels present'),(1155,'en','Can compress but not expand'),(1156,'en','Captions verified; all levels may not be present'),(1157,'en','Can compress or expand'),(1158,'en','Captions unverified; all levels present'),(1159,'en','Unknown'),(1160,'en','Captions unverified; all levels may not be present'),(1161,'en','Compressibility and expandability'),(1162,'en','Caption evaluation'),(1163,'en','Cannot compress or expand'),(1164,'en','Captions verified; all levels present'),(1165,'en','Can compress but not expand'),(1166,'en','Captions verified; all levels may not be present'),(1167,'en','Can compress or expand'),(1168,'en','Captions unverified; all levels present'),(1169,'en','Unknown'),(1170,'en','Captions unverified; all levels may not be present'),(1171,'en','Undefined'),(1172,'en','Undefined'),(1173,'en','Undefined'),(1174,'en','Undefined'),(1175,'en','Access method'),(1176,'en','Relationship'),(1177,'en','No information provided'),(1178,'en','No information provided'),(1179,'en','E-mail'),(1180,'en','Resource'),(1181,'en','FTP'),(1182,'en','Version of resource'),(1183,'en','Remote login (Telnet)'),(1184,'en','Related resource'),(1185,'en','Dial-up'),(1186,'en','No display constant generated'),(1187,'en','HTTP'),(1188,'en','Method specidied in subfield $2.'),(1189,'en','Field encoding level'),(1190,'en','Form of holdings'),(1191,'en','No information provided'),(1192,'en','No information provided'),(1193,'en','Holdings level 3'),(1194,'en','Compressed'),(1195,'en','Holdings level 4'),(1196,'en','Uncompressed'),(1197,'en','Holdings level 4 with piece designation'),(1198,'en','Compressed, use textual display'),(1199,'en','Uncompressed, use textual display'),(1200,'en','Item (s) not published'),(1201,'en','Field encoding level'),(1202,'en','Form of holdings'),(1203,'en','No information provided'),(1204,'en','No information provided'),(1205,'en','Holdings level 3'),(1206,'en','Compressed'),(1207,'en','Holdings level 4'),(1208,'en','Uncompressed'),(1209,'en','Holdings level 4 with piece designation'),(1210,'en','Compressed, use textual display'),(1211,'en','Uncompressed, use textual display'),(1212,'en','Item (s) not published'),(1213,'en','Field encoding level'),(1214,'en','Form of holdings'),(1215,'en','No information provided'),(1216,'en','No information provided'),(1217,'en','Holdings level 4'),(1218,'en','Uncompressed'),(1219,'en','Holdings level 4 with piece designation'),(1220,'en','Uncompressed, use textual display'),(1221,'en','Field encoding level'),(1222,'en','Type of notation'),(1223,'en','No information provided'),(1224,'en','Non-stardard'),(1225,'en','Holdings level 3'),(1226,'en','ANSI/NISO Z39.71 or ISO 10324'),(1227,'en','Holdings level 4'),(1228,'en','ANSI Z39.42'),(1229,'en','Holdings level 4 with piece designation'),(1230,'en','Source specified in subfield $2'),(1231,'en','Field encoding level'),(1232,'en','Type of notation'),(1233,'en','No information provided'),(1234,'en','Non-stardard'),(1235,'en','Holdings level 3'),(1236,'en','ANSI/NISO Z39.71 or ISO 10324'),(1237,'en','Holdings level 4'),(1238,'en','ANSI Z39.42'),(1239,'en','Holdings level 4 with piece designation'),(1240,'en','Source specified in subfield $2'),(1241,'en','Field encoding level'),(1242,'en','Type of notation'),(1243,'en','No information provided'),(1244,'en','Non-stardard'),(1245,'en','Holdings level 3'),(1246,'en','ANSI/NISO Z39.71 or ISO 10324'),(1247,'en','Holdings level 4'),(1248,'en','ANSI Z39.42'),(1249,'en','Holdings level 4 with piece designation'),(1250,'en','Source specified in subfield $2'),(1251,'en','Undefined'),(1252,'en','Undefined'),(1253,'en','Undefined'),(1254,'en','Undefined'),(1255,'en','Undefined'),(1256,'en','Undefined'),(1257,'en','Undefined'),(1258,'en','Undefined'),(1259,'en','Undefined'),(1260,'en','Undefined'),(1261,'en','Undefined'),(1262,'en','Undefined'),(1263,'en','Appropriate indicator as available in associated field'),(1264,'en','Appropriate indicator as available in associated field'),(1265,'en','Undefined'),(1266,'en','Undefined'),(1267,'en','Undefined'),(1268,'en','Undefined'),(1269,'en','Type of field'),(1270,'en','Undefined'),(1271,'en','Leader'),(1272,'en','Undefined'),(1273,'en','Variable control fields (002 -009)'),(1274,'en','Variable data fields (010 - 999)'),(1275,'en','Undefined'),(1276,'en','Undefined'),(1277,'en','Undefined'),(1278,'en','Undefined'),(1279,'en','Undefined'),(1280,'en','Undefined'),(1281,'en','Undefined'),(1282,'en','Undefined'),(1283,'en','Undefined'),(1284,'en','Undefined'),(1285,'en','Undefined'),(1286,'en','Undefined'),(1287,'en','National bibliographic agency'),(1288,'en','Undefined'),(1289,'en','Library and Archives Canada'),(1290,'en','Undefined'),(1291,'en','Source specified in subfield $2 '),(1292,'en','Undefined'),(1293,'en','Undefined'),(1294,'en','Undefined'),(1295,'en','Undefined'),(1296,'en','Undefined'),(1297,'en','Undefined'),(1298,'en','Undefined'),(1299,'en','Undefined'),(1300,'en','Type of standard number or code'),(1301,'en','Undefined'),(1302,'en','Source specified in subfield $2'),(1303,'en','Undefined'),(1304,'en','Unspecified type of standard number or code'),(1305,'en','Undefined'),(1306,'en','Undefined'),(1307,'en','Undefined'),(1308,'en','Undefined'),(1309,'en','Undefined'),(1310,'en','Type of ring'),(1311,'en','Undefined'),(1312,'en','Not applicable '),(1313,'en','Outer ring '),(1314,'en','Exclusion ring '),(1315,'en','Undefined'),(1316,'en','Undefined'),(1317,'en','Undefined'),(1318,'en','Undefined'),(1319,'en','Undefined'),(1320,'en','Undefined'),(1321,'en','Undefined'),(1322,'en','Undefined'),(1323,'en','Undefined'),(1324,'en','Undefined'),(1325,'en','Undefined'),(1326,'en','Undefined'),(1327,'en','Undefined'),(1328,'en','Undefined'),(1329,'en','Undefined'),(1330,'en','Undefined'),(1331,'en','Type of time period in subfield $b or $c'),(1332,'en','Undefined'),(1333,'en','Subfield $b or $c not present'),(1334,'en','Undefined'),(1335,'en','Single date/time'),(1336,'en','Multiple single dates/times'),(1337,'en','Range of dates/times'),(1338,'en','Undefined'),(1339,'en','Undefined'),(1340,'en','Undefined'),(1341,'en','Undefined'),(1342,'en','Undefined'),(1343,'en','Source of call number'),(1344,'en','Undefined'),(1345,'en','Assigned by LC'),(1346,'en','Assigned by agency other than LC'),(1347,'en','Code source'),(1348,'en','Undefined'),(1349,'en','Library of Congress Classification'),(1350,'en','Undefined'),(1351,'en','U.S. Dept. of Defense Classification'),(1352,'en','Source specified in subfield $2'),(1353,'en','Undefined'),(1354,'en','Source of classification number'),(1355,'en','Undefined'),(1356,'en','Assigned by LC'),(1357,'en','Assigned by agency other than LC'),(1358,'en','Undefined'),(1359,'en','Source of call number'),(1360,'en','Undefined'),(1361,'en','Assigned by LAC'),(1362,'en','Assigned by agency other than LAC'),(1363,'en','Undefined'),(1364,'en','Source of call number'),(1365,'en','Undefined'),(1366,'en','Assigned by NLM'),(1367,'en','Assigned by agency other than NLM'),(1368,'en','Undefined'),(1369,'en','Undefined'),(1370,'en','Undefined'),(1371,'en','Undefined'),(1372,'en','Undefined'),(1373,'en','Undefined'),(1374,'en','Undefined'),(1375,'en','Undefined'),(1376,'en','Undefined'),(1377,'en','Undefined'),(1378,'en','Undefined'),(1379,'en','Undefined'),(1380,'en','Undefined'),(1381,'en','Code source'),(1382,'en','Undefined'),(1383,'en','No information provided'),(1384,'en','NAL subject category code list'),(1385,'en','Source specified in subfield $2'),(1386,'en','Undefined'),(1387,'en','Undefined'),(1388,'en','Undefined'),(1389,'en','Undefined'),(1390,'en','Type of edition'),(1391,'en','Undefined'),(1392,'en','No information provided'),(1393,'en','Undefined'),(1394,'en','Full'),(1395,'en','Abridged'),(1396,'en','Type of edition'),(1397,'en','Source of call number'),(1398,'en','Full'),(1399,'en','No information provided'),(1400,'en','Abridged'),(1401,'en','Assigned by LC'),(1402,'en','Assigned by agency other than LC'),(1403,'en','Type of edition'),(1404,'en','Source of classification number'),(1405,'en','Full'),(1406,'en','Assigned by LC'),(1407,'en','Abridged'),(1408,'en','Assigned by agency other than LC'),(1409,'en','Number source'),(1410,'en','Undefined'),(1411,'en','Source specified in subfield $2'),(1412,'en','Undefined'),(1413,'en','Superintendent of Documents Classification System'),(1414,'en','Government of Canada Publications: Outline of Classification'),(1415,'en','Number source'),(1416,'en','Undefined'),(1417,'en','Source specified in subfield $2'),(1418,'en','Undefined'),(1419,'en','Superintendent of Documents Classification System'),(1420,'en','Government of Canada Publications: Outline of Classification'),(1421,'en','Type of personal name entry element'),(1422,'en','Undefined'),(1423,'en','Forename'),(1424,'en','Undefined'),(1425,'en','Surname'),(1426,'en','Family name'),(1427,'en','Type of corporate name entry element'),(1428,'en','Undefined'),(1429,'en','Inverted name'),(1430,'en','Undefined'),(1431,'en','Jurisdiction name'),(1432,'en','Name in direct order'),(1433,'en','Type of meeting name entry element'),(1434,'en','Undefined'),(1435,'en','Inverted name'),(1436,'en','Undefined'),(1437,'en','Jurisdiction name'),(1438,'en','Name in direct order'),(1439,'en','Undefined'),(1440,'en','Nonfiling characters'),(1441,'en','Undefined'),(1442,'en','0-9 - Number of nonfiling characters'),(1443,'en','Undefined'),(1444,'en','Undefined'),(1445,'en','Undefined'),(1446,'en','Undefined'),(1447,'en','Undefined'),(1448,'en','Undefined'),(1449,'en','Undefined'),(1450,'en','Undefined'),(1451,'en','Undefined'),(1452,'en','Undefined'),(1453,'en','Undefined'),(1454,'en','Undefined'),(1455,'en','Undefined'),(1456,'en','Undefined'),(1457,'en','Undefined'),(1458,'en','Undefined'),(1459,'en','Undefined'),(1460,'en','Undefined'),(1461,'en','Undefined'),(1462,'en','Undefined'),(1463,'en','Undefined'),(1464,'en','Undefined'),(1465,'en','Undefined'),(1466,'en','Undefined'),(1467,'en','Undefined'),(1468,'en','Undefined'),(1469,'en','Undefined'),(1470,'en','Undefined'),(1471,'en','Undefined'),(1472,'en','Undefined'),(1473,'en','Undefined'),(1474,'en','Undefined'),(1475,'en','Undefined'),(1476,'en','Undefined'),(1477,'en','Undefined'),(1478,'en','Undefined'),(1479,'en','Undefined'),(1480,'en','Undefined'),(1481,'en','Undefined'),(1482,'en','Undefined'),(1483,'en','Undefined'),(1484,'en','Undefined'),(1485,'en','Undefined'),(1486,'en','Undefined'),(1487,'en','Undefined'),(1488,'en','Undefined'),(1489,'en','Undefined'),(1490,'en','Undefined'),(1491,'en','Undefined'),(1492,'en','Undefined'),(1493,'en','Undefined'),(1494,'en','Undefined'),(1495,'en','Undefined'),(1496,'en','Undefined'),(1497,'en','Undefined'),(1498,'en','Undefined'),(1499,'en','Undefined'),(1500,'en','Undefined'),(1501,'en','Undefined'),(1502,'en','Undefined'),(1503,'en','Undefined'),(1504,'en','Undefined'),(1505,'en','Undefined'),(1506,'en','Undefined'),(1507,'en','Undefined'),(1508,'en','Undefined'),(1509,'en','Undefined'),(1510,'en','Undefined'),(1511,'en','Undefined'),(1512,'en','Undefined'),(1513,'en','Undefined'),(1514,'en','Undefined'),(1515,'en','Undefined'),(1516,'en','Source of code'),(1517,'en','Undefined'),(1518,'en','MARC language code'),(1519,'en','Source specified in $2'),(1520,'en','Undefined'),(1521,'en','Undefined'),(1522,'en','Undefined'),(1523,'en','Undefined'),(1524,'en','Undefined'),(1525,'en','Undefined'),(1526,'en','Undefined'),(1527,'en','Undefined'),(1528,'en','Undefined'),(1529,'en','Undefined'),(1530,'en','Undefined'),(1531,'en','Undefined'),(1532,'en','Undefined'),(1533,'en','Undefined'),(1534,'en','Undefined'),(1535,'en','Undefined'),(1536,'en','Key type'),(1537,'en','Undefined'),(1538,'en','Relationship to original unknown '),(1539,'en','Undefined'),(1540,'en','Original key '),(1541,'en','Transposed key '),(1542,'en','Type of personal name element'),(1543,'en','Undefined'),(1544,'en','Forename'),(1545,'en','Undefined'),(1546,'en','Surname'),(1547,'en','Family name'),(1548,'en','Type of corporate name entry element'),(1549,'en','Undefined'),(1550,'en','Inverted name'),(1551,'en','Undefined'),(1552,'en','Jurisdiction name'),(1553,'en','Name in direct order'),(1554,'en','Type of meeting name entry element'),(1555,'en','Undefined'),(1556,'en','Inverted name'),(1557,'en','Undefined'),(1558,'en','Jurisdiction name'),(1559,'en','Name in direct order'),(1560,'en','Undefined'),(1561,'en','Nonfiling characters'),(1562,'en','Undefined'),(1563,'en','0-9 - Number of nonfiling characters'),(1564,'en','Undefined'),(1565,'en','Undefined'),(1566,'en','Undefined'),(1567,'en','Undefined'),(1568,'en','Undefined'),(1569,'en','Undefined'),(1570,'en','Undefined'),(1571,'en','Undefined'),(1572,'en','Undefined'),(1573,'en','Undefined'),(1574,'en','Undefined'),(1575,'en','Undefined'),(1576,'en','Undefined'),(1577,'en','Undefined'),(1578,'en','Undefined'),(1579,'en','Undefined'),(1580,'en','Undefined'),(1581,'en','Undefined'),(1582,'en','Undefined'),(1583,'en','Undefined'),(1584,'en','Undefined'),(1585,'en','Undefined'),(1586,'en','Undefined'),(1587,'en','Undefined'),(1588,'en','Undefined'),(1589,'en','Undefined'),(1590,'en','Undefined'),(1591,'en','Undefined'),(1592,'en','Undefined'),(1593,'en','Undefined'),(1594,'en','Undefined'),(1595,'en','Undefined'),(1596,'en','Type of personal name entry element'),(1597,'en','Undefined'),(1598,'en','Forename'),(1599,'en','Undefined'),(1600,'en','Surname'),(1601,'en','Family name'),(1602,'en','Type of corporate name entry element'),(1603,'en','Undefined'),(1604,'en','Inverted name'),(1605,'en','Undefined'),(1606,'en','Jurisdiction name'),(1607,'en','Name in direct order'),(1608,'en','Type of meeting name entry element'),(1609,'en','Undefined'),(1610,'en','Inverted name'),(1611,'en','Undefined'),(1612,'en','Jurisdiction name'),(1613,'en','Name in direct order'),(1614,'en','Undefined'),(1615,'en','Nonfiling characters'),(1616,'en','Undefined'),(1617,'en','0-9 - Number of nonfiling characters'),(1618,'en','Undefined'),(1619,'en','Undefined'),(1620,'en','Undefined'),(1621,'en','Undefined'),(1622,'en','Undefined'),(1623,'en','Undefined'),(1624,'en','Undefined'),(1625,'en','Undefined'),(1626,'en','Undefined'),(1627,'en','Undefined'),(1628,'en','Undefined'),(1629,'en','Undefined'),(1630,'en','Undefined'),(1631,'en','Undefined'),(1632,'en','Undefined'),(1633,'en','Undefined'),(1634,'en','Undefined'),(1635,'en','Undefined'),(1636,'en','Undefined'),(1637,'en','Undefined'),(1638,'en','Undefined'),(1639,'en','Undefined'),(1640,'en','Undefined'),(1641,'en','Undefined'),(1642,'en','Undefined'),(1643,'en','Undefined'),(1644,'en','Undefined'),(1645,'en','Undefined'),(1646,'en','Undefined'),(1647,'en','Undefined'),(1648,'en','Undefined'),(1649,'en','Undefined'),(1650,'en','Note format style'),(1651,'en','Undefined'),(1652,'en','Formatted style'),(1653,'en','Undefined'),(1654,'en','Unformatted style'),(1655,'en','Undefined'),(1656,'en','Undefined'),(1657,'en','Undefined'),(1658,'en','Undefined'),(1659,'en','Undefined'),(1660,'en','Undefined'),(1661,'en','Undefined'),(1662,'en','Undefined'),(1663,'en','Undefined'),(1664,'en','Undefined'),(1665,'en','Undefined'),(1666,'en','Undefined'),(1667,'en','Undefined'),(1668,'en','Undefined'),(1669,'en','Undefined'),(1670,'en','Undefined'),(1671,'en','Undefined'),(1672,'en','Undefined'),(1673,'en','Undefined'),(1674,'en','Undefined'),(1675,'en','Undefined'),(1676,'en','Undefined'),(1677,'en','Undefined'),(1678,'en','Undefined'),(1679,'en','Undefined'),(1680,'en','Undefined'),(1681,'en','Undefined'),(1682,'en','Undefined'),(1683,'en','Undefined'),(1684,'en','Undefined'),(1685,'en','Undefined'),(1686,'en','Undefined'),(1687,'en','Undefined'),(1688,'en','Undefined'),(1689,'en','Undefined'),(1690,'en','Undefined'),(1691,'en','Undefined'),(1692,'en','Undefined'),(1693,'en','Undefined'),(1694,'en','Undefined'),(1695,'en','Undefined'),(1696,'en','Undefined'),(1697,'en','Undefined'),(1698,'en','Undefined'),(1699,'en','Undefined'),(1700,'en','Undefined'),(1701,'en','Undefined'),(1702,'en','Undefined'),(1703,'en','Undefined'),(1704,'en','Undefined'),(1705,'en','Undefined'),(1706,'en','Undefined'),(1707,'en','Type of data'),(1708,'en','Undefined'),(1709,'en','No information provided'),(1710,'en','Undefined'),(1711,'en','Biographical sketch'),(1712,'en','Administrative history'),(1713,'en','Undefined'),(1714,'en','Undefined'),(1715,'en','Undefined'),(1716,'en','Undefined'),(1717,'en','Undefined'),(1718,'en','Undefined'),(1719,'en','Undefined'),(1720,'en','Undefined'),(1721,'en','Undefined'),(1722,'en','Undefined'),(1723,'en','Undefined'),(1724,'en','Undefined'),(1725,'en','Undefined'),(1726,'en','Undefined'),(1727,'en','Undefined'),(1728,'en','Undefined'),(1729,'en','Type of personal name entry element'),(1730,'en','Thesaurus'),(1731,'en','Forename'),(1732,'en','Library of Congress Subject Headings'),(1733,'en','Surname'),(1734,'en','LC subject headings for children\'s literature'),(1735,'en','Family name'),(1736,'en','Medical Subject Headings'),(1737,'en','National Agricultural Library subject authority file'),(1738,'en','Source not specified'),(1739,'en','Canadian Subject Headings'),(1740,'en','Répertoire de vedettes-matière'),(1741,'en','Source specified in subfield $2'),(1742,'en','Type of corporate name entry element'),(1743,'en','Thesaurus'),(1744,'en','Inverted name'),(1745,'en','Library of Congress Subject Headings'),(1746,'en','Jurisdiction name'),(1747,'en','LC subject headings for children\'s literature'),(1748,'en','Name in direct order'),(1749,'en','Medical Subject Headings'),(1750,'en','National Agricultural Library subject authority file'),(1751,'en','Source not specified'),(1752,'en','Canadian Subject Headings'),(1753,'en','Répertoire de vedettes-matière'),(1754,'en','Source specified in subfield $2'),(1755,'en','Type of meeting name entry element'),(1756,'en','Thesaurus'),(1757,'en','Inverted name'),(1758,'en','Library of Congress Subject Headings'),(1759,'en','Jurisdiction name'),(1760,'en','LC subject headings for children\'s literature'),(1761,'en','Name in direct order'),(1762,'en','Medical Subject Headings'),(1763,'en','National Agricultural Library subject authority file'),(1764,'en','Source not specified'),(1765,'en','Canadian Subject Headings'),(1766,'en','Répertoire de vedettes-matière'),(1767,'en','Source specified in subfield $2'),(1768,'en','Undefined'),(1769,'en','Thesaurus'),(1770,'en','Undefined'),(1771,'en','Library of Congress Subject Headings'),(1772,'en','LC subject headings for children\'s literature'),(1773,'en','Medical Subject Headings'),(1774,'en','National Agricultural Library subject authority file'),(1775,'en','Source not specified'),(1776,'en','Canadian Subject Headings'),(1777,'en','Répertoire de vedettes-matière'),(1778,'en','Source specified in subfield $2'),(1779,'en','Undefined'),(1780,'en','Thesaurus'),(1781,'en','Undefined'),(1782,'en','Library of Congress Subject Headings'),(1783,'en','LC subject headings for children\'s literature'),(1784,'en','Medical Subject Headings'),(1785,'en','National Agricultural Library subject authority file'),(1786,'en','Source not specified'),(1787,'en','Canadian Subject Headings'),(1788,'en','Répertoire de vedettes-matière'),(1789,'en','Source specified in subfield $2'),(1790,'en','Undefined'),(1791,'en','Thesaurus'),(1792,'en','Undefined'),(1793,'en','Library of Congress Subject Headings'),(1794,'en','LC subject headings for children\'s literature'),(1795,'en','Medical Subject Headings'),(1796,'en','National Agricultural Library subject authority file'),(1797,'en','Source not specified'),(1798,'en','Canadian Subject Headings'),(1799,'en','Répertoire de vedettes-matière'),(1800,'en','Source specified in subfield $2'),(1801,'en','Undefined'),(1802,'en','Thesaurus'),(1803,'en','Undefined'),(1804,'en','Library of Congress Subject Headings'),(1805,'en','LC subject headings for children\'s literature'),(1806,'en','Medical Subject Headings'),(1807,'en','National Agricultural Library subject authority file'),(1808,'en','Source not specified'),(1809,'en','Canadian Subject Headings'),(1810,'en','Répertoire de vedettes-matière'),(1811,'en','Source specified in subfield $2'),(1812,'en','Undefined'),(1813,'en','Thesaurus'),(1814,'en','Undefined'),(1815,'en','Library of Congress Subject Headings'),(1816,'en','LC subject headings for children\'s literature'),(1817,'en','Medical Subject Headings'),(1818,'en','National Agricultural Library subject authority file'),(1819,'en','Source not specified'),(1820,'en','Canadian Subject Headings'),(1821,'en','Répertoire de vedettes-matière'),(1822,'en','Source specified in subfield $2'),(1823,'en','Undefined'),(1824,'en','Thesaurus'),(1825,'en','Undefined'),(1826,'en','Library of Congress Subject Headings'),(1827,'en','LC subject headings for children\'s literature'),(1828,'en','Medical Subject Headings'),(1829,'en','National Agricultural Library subject authority file'),(1830,'en','Source not specified'),(1831,'en','Canadian Subject Headings'),(1832,'en','Répertoire de vedettes-matière'),(1833,'en','Source specified in subfield $2'),(1834,'en','Undefined'),(1835,'en','Thesaurus'),(1836,'en','Undefined'),(1837,'en','Library of Congress Subject Headings'),(1838,'en','LC subject headings for children\'s literature'),(1839,'en','Medical Subject Headings'),(1840,'en','National Agricultural Library subject authority file'),(1841,'en','Source not specified'),(1842,'en','Canadian Subject Headings'),(1843,'en','Répertoire de vedettes-matière'),(1844,'en','Source specified in subfield $2'),(1845,'en','Undefined'),(1846,'en','Thesaurus'),(1847,'en','Undefined'),(1848,'en','Library of Congress Subject Headings'),(1849,'en','LC subject headings for children\'s literature'),(1850,'en','Medical Subject Headings'),(1851,'en','National Agricultural Library subject authority file'),(1852,'en','Source not specified'),(1853,'en','Canadian Subject Headings'),(1854,'en','Répertoire de vedettes-matière'),(1855,'en','Source specified in subfield $2'),(1856,'en','Thesaurus'),(1857,'en','Library of Congress Subject Headings'),(1858,'en','LC subject headings for children\'s literature'),(1859,'en','Medical Subject Headings'),(1860,'en','National Agricultural Library subject authority file'),(1861,'en','Source not specified'),(1862,'en','Canadian Subject Headings'),(1863,'en','Répertoire de vedettes-matière'),(1864,'en','Source specified in subfield $2'),(1865,'en','Undefined'),(1866,'en','Thesaurus'),(1867,'en','Undefined'),(1868,'en','Library of Congress Subject Headings'),(1869,'en','LC subject headings for children\'s literature'),(1870,'en','Medical Subject Headings'),(1871,'en','National Agricultural Library subject authority file'),(1872,'en','Source not specified'),(1873,'en','Canadian Subject Headings'),(1874,'en','Répertoire de vedettes-matière'),(1875,'en','Source specified in subfield $2'),(1876,'en','Access method'),(1877,'en','Relationship'),(1878,'en','No information provided'),(1879,'en','No information provided'),(1880,'en','Email'),(1881,'en','Resource'),(1882,'en','FTP'),(1883,'en','Version of resource'),(1884,'en','Remote login (Telnet)'),(1885,'en','Related resource'),(1886,'en','Dial-up'),(1887,'en','No display constant generated'),(1888,'en','HTTP'),(1889,'en','Method specified in subfield $2'),(1890,'en','Undefined'),(1891,'en','Undefined'),(1892,'en','Undefined'),(1893,'en','Undefined');
105
/*!40000 ALTER TABLE marc_indicators_desc ENABLE KEYS */;
106
UNLOCK TABLES;
107
108
SET FOREIGN_KEY_CHECKS = 1;
(-)a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_indicators.txt (+1 lines)
Line 0 Link Here
1
Default MARC 21 indicators values.
(-)a/installer/data/mysql/kohastructure.sql (-2 / +76 lines)
Lines 445-451 CREATE TABLE `categories` ( -- this table shows information related to Koha patr Link Here
445
--
445
--
446
-- Table: collections
446
-- Table: collections
447
--
447
--
448
DROP TABLE IF EXISTS collections;
448
DROP TABLE IF EXISTS `collections`;
449
CREATE TABLE collections (
449
CREATE TABLE collections (
450
  colId integer(11) NOT NULL auto_increment,
450
  colId integer(11) NOT NULL auto_increment,
451
  colTitle varchar(100) NOT NULL DEFAULT '',
451
  colTitle varchar(100) NOT NULL DEFAULT '',
Lines 457-463 CREATE TABLE collections ( Link Here
457
--
457
--
458
-- Table: collections_tracking
458
-- Table: collections_tracking
459
--
459
--
460
DROP TABLE IF EXISTS collections_tracking;
460
DROP TABLE IF EXISTS `collections_tracking`;
461
CREATE TABLE collections_tracking (
461
CREATE TABLE collections_tracking (
462
  ctId integer(11) NOT NULL auto_increment,
462
  ctId integer(11) NOT NULL auto_increment,
463
  colId integer(11) NOT NULL DEFAULT 0 comment 'collections.colId',
463
  colId integer(11) NOT NULL DEFAULT 0 comment 'collections.colId',
Lines 3056-3061 CREATE TABLE IF NOT EXISTS `borrower_modifications` ( Link Here
3056
  KEY `borrowernumber` (`borrowernumber`)
3056
  KEY `borrowernumber` (`borrowernumber`)
3057
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3057
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3058
3058
3059
--
3060
-- Table structure for table `marc_indicators`
3061
--
3062
3063
DROP TABLE IF EXISTS `marc_indicators`;
3064
CREATE TABLE `marc_indicators` (
3065
  `id_indicator` int(11) unsigned NOT NULL auto_increment,
3066
  `frameworkcode` varchar(4) default NULL,
3067
  `tagfield` varchar(3) NOT NULL default '',
3068
  `authtypecode` varchar(10) default NULL,
3069
  PRIMARY KEY  (`id_indicator`),
3070
  UNIQUE KEY `framework_auth_code` (`frameworkcode`,`authtypecode`,`tagfield`),
3071
  CONSTRAINT `marc_indicators_ibfk_1` FOREIGN KEY (`frameworkcode`) REFERENCES `biblio_framework` (`frameworkcode`) ON DELETE CASCADE,
3072
  CONSTRAINT `marc_indicators_ibfk_2` FOREIGN KEY (`authtypecode`) REFERENCES `auth_types` (`authtypecode`) ON DELETE CASCADE
3073
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3074
3075
3076
--
3077
-- Table structure for table `marc_indicators_values`
3078
--
3079
3080
DROP TABLE IF EXISTS `marc_indicators_values`;
3081
CREATE TABLE `marc_indicators_values` (
3082
  `ind_value` char(1) NOT NULL default '',
3083
  PRIMARY KEY  (`ind_value`)
3084
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3085
3086
3087
--
3088
-- Dumping data for table `marc_indicators_values`
3089
--
3090
3091
LOCK TABLES `marc_indicators_values` WRITE;
3092
/*!40000 ALTER TABLE `marc_indicators_values` DISABLE KEYS */;
3093
INSERT INTO `marc_indicators_values` VALUES (''),('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7'),('8'),('9'),('a'),('b'),('c'),('d'),('e'),('f'),('g'),('h'),('i'),('j'),('k'),('l'),('m'),('n'),('o'),('p'),('q'),('r'),('s'),('t'),('u'),('v'),('w'),('x'),('y'),('z');
3094
/*!40000 ALTER TABLE `marc_indicators_values` ENABLE KEYS */;
3095
UNLOCK TABLES;
3096
3097
3098
--
3099
-- Table structure for table `marc_indicators_value`
3100
--
3101
3102
DROP TABLE IF EXISTS `marc_indicators_value`;
3103
CREATE TABLE `marc_indicators_value` (
3104
  `id_indicator_value` int(11) unsigned NOT NULL auto_increment,
3105
  `id_indicator` int(11) unsigned NOT NULL,
3106
  `ind` enum('1','2') NOT NULL,
3107
  `ind_value` char(1) NOT NULL,
3108
  PRIMARY KEY  (`id_indicator_value`),
3109
  KEY `id_indicator` (`id_indicator`),
3110
  KEY `ind_value` (`ind_value`),
3111
  CONSTRAINT `marc_indicators_value_ibfk_2` FOREIGN KEY (`ind_value`) REFERENCES `marc_indicators_values` (`ind_value`) ON DELETE CASCADE,
3112
  CONSTRAINT `marc_indicators_value_ibfk_1` FOREIGN KEY (`id_indicator`) REFERENCES `marc_indicators` (`id_indicator`) ON DELETE CASCADE
3113
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3114
3115
--
3116
-- Table structure for table `marc_indicators_desc`
3117
--
3118
3119
DROP TABLE IF EXISTS `marc_indicators_desc`;
3120
CREATE TABLE `marc_indicators_desc` (
3121
  `id_indicator_value` int(11) unsigned NOT NULL,
3122
  `lang` varchar(25) NOT NULL default 'en',
3123
  `ind_desc` mediumtext,
3124
  PRIMARY KEY  (`id_indicator_value`,`lang`),
3125
  KEY `lang` (`lang`),
3126
  CONSTRAINT `marc_indicators_desc_ibfk_2` FOREIGN KEY (`lang`) REFERENCES `language_descriptions` (`lang`) ON DELETE CASCADE,
3127
  CONSTRAINT `marc_indicators_desc_ibfk_1` FOREIGN KEY (`id_indicator_value`) REFERENCES `marc_indicators_value` (`id_indicator_value`) ON DELETE CASCADE
3128
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3129
3130
3131
3132
3059
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
3133
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
3060
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
3134
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
3061
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
3135
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 408-410 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
408
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('NotesBlacklist','','List of notes fields that should not appear in the title notes/description separator of details',NULL,'free');
408
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('NotesBlacklist','','List of notes fields that should not appear in the title notes/description separator of details',NULL,'free');
409
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free');
409
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free');
410
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserJS', '', NULL, 'Define custom javascript for inclusion in the SCO module', 'free');
410
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserJS', '', NULL, 'Define custom javascript for inclusion in the SCO module', 'free');
411
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
412
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('DisplayPluginValueIndicators','0','Display a plugin with the correct values of indicators for fields in cataloguing','','YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+55 lines)
Lines 4220-4225 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4220
    SetVersion ($DBversion);
4220
    SetVersion ($DBversion);
4221
}
4221
}
4222
4222
4223
4223
$DBversion = '3.03.00.042';
4224
$DBversion = '3.03.00.042';
4224
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4225
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4225
    stocknumber_checker();
4226
    stocknumber_checker();
Lines 6347-6352 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
6347
    SetVersion($DBversion);
6348
    SetVersion($DBversion);
6348
}
6349
}
6349
6350
6351
$DBversion = "3.11.00.XXX";
6352
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
6353
    my %info;
6354
    $info{'dbname'} = C4::Context->config("database");
6355
    $info{'dbms'} = (   C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql" );
6356
    $info{'hostname'} = C4::Context->config("hostname");
6357
    $info{'port'}     = C4::Context->config("port");
6358
    $info{'user'}     = C4::Context->config("user");
6359
    $info{'password'} = C4::Context->config("pass");
6360
6361
    my $intranetdir = C4::Context->intranetdir;
6362
    my $path = ($intranetdir =~ /^(.+?)\/intranet\/cgi-bin/)?$1:$intranetdir;
6363
    $path .= "/installer/data/$info{dbms}/en/marcflavour/marc21/";
6364
    my $filename;
6365
    my $error;
6366
    my $strcmd;
6367
    if ( $info{'dbms'} eq 'mysql' ) {
6368
        my $cmd = qx(which mysql 2>/dev/null || whereis mysql 2>/dev/null);
6369
        chomp($cmd);
6370
        $cmd = $1 if ($cmd && $cmd =~ /^(.+)[\r\n]+$/);
6371
        $cmd = 'mysql' if (!$cmd || !-x $cmd);
6372
        $strcmd = "$cmd "
6373
            . ( $info{'hostname'} ? " -h $info{hostname} " : "" )
6374
            . ( $info{'port'}     ? " -P $info{port} "     : "" )
6375
            . ( $info{'user'}     ? " -u $info{user} "     : "" )
6376
            . ( $info{'password'} ? " -p'$info{password}'"   : "" )
6377
            . ' ' . $info{dbname} . ' ';
6378
        $filename = $path . 'mandatory/marc21_indicators.sql';
6379
        $error = qx($strcmd --default-character-set=utf8 <$filename 2>&1 1>/dev/null) if (-r $filename);
6380
    } elsif ( $info{'dbms'} eq 'Pg' ) {
6381
        my $cmd = qx(which psql 2>/dev/null || whereis psql 2>/dev/null);
6382
        chomp($cmd);
6383
        $cmd = $1 if ($cmd && $cmd =~ /^(.+)[\r\n]+$/);
6384
        $cmd = 'psql' if (!$cmd || !-x $cmd);
6385
        $strcmd = "$cmd "
6386
            . ( $info{'hostname'} ? " -h $info{hostname} " : "" )
6387
            . ( $info{'port'}     ? " -p $info{port} "     : "" )
6388
            . ( $info{'user'}     ? " -U $info{user} "     : "" )
6389
            . ' ' . $info{dbname} . ' ';
6390
        $filename = $path . 'mandatory/marc21_indicators.sql';
6391
        $error = qx($strcmd -f $filename 2>&1 1>/dev/null);
6392
    }
6393
    unless ($error) {
6394
        print "Upgrade to $DBversion done (New tables and data from $path for indicators functionality)\n";
6395
        $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');");
6396
        print "Upgrade to $DBversion done (Add syspref to check the values of the indicators)\n";
6397
        $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('DisplayPluginValueIndicators','0','Display a plugin with the correct values of indicators for fields in cataloguing','','YesNo');");
6398
        print "Upgrade to $DBversion done (Add syspref to display a plugin with the allowed values of indicators)\n";
6399
        SetVersion ($DBversion);
6400
    } else {
6401
        print "Error executing: $strcmd upon $filename $error";
6402
    }
6403
}
6404
6350
=head1 FUNCTIONS
6405
=head1 FUNCTIONS
6351
6406
6352
=head2 TableExists($table)
6407
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (+16 lines)
Lines 2404-2406 div.authorizedheading { Link Here
2404
video {
2404
video {
2405
    width: 480px;
2405
    width: 480px;
2406
}
2406
}
2407
2408
/* bug 4888 */
2409
form#f_pop  ul {
2410
    list-style-type: none;
2411
}
2412
2413
form#f_pop ul li {
2414
    list-style-type: none;
2415
    padding-top: 10px;
2416
    font-family: tahoma, verdana, arial;
2417
    font-size: 12px;
2418
}
2419
2420
form#f_pop table {
2421
    float: left;
2422
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/indicators.js (+502 lines)
Line 0 Link Here
1
2
    // Block for check validity of value indicators
3
4
    // Check value of indicator and change messages to indicate validity
5
    function checkValueInd(id, ind, field)
6
    {
7
        var obj = $("#" + id);
8
        var valueInd = obj.val();
9
        var name = field + "_" + ind + "_";
10
        var indOther = (ind == 1)?2:1;
11
        var valueIndOther = $("#" + field + "_ind" + indOther).val();
12
        var nameOther = field + "_" + indOther + "_";
13
        var okBoth = {ind1: false, ind2: false};
14
        var form = obj.closest("form");
15
        var $inputs = form.find("input:hidden");
16
        if ($inputs.length > 0) {
17
            $inputs.each(function() {
18
                if (!okBoth.ind1 && $(this).attr('name').indexOf(name) >= 0 && valueInd == $(this).val()) {
19
                    okBoth.ind1 = true;
20
                } else if (!okBoth.ind2 && $(this).attr('name').indexOf(nameOther) >= 0 && valueIndOther == $(this).val()) {
21
                    okBoth.ind2 = true;
22
                }
23
                if (okBoth.ind1 && okBoth.ind2) return false;
24
            });
25
            if (!okBoth.ind1 && valueInd == "") okBoth.ind1 = true;
26
            if (!okBoth.ind2 && valueIndOther == "") okBoth.ind2 = true;
27
            var a_usevalue = $("#" + field + "_btn_usevalue_" + ind);
28
            var a_usevalue_3 = $("#" + field + "_btn_usevalue_3");
29
            if (okBoth.ind1) {
30
                obj.prev("label").attr("title", "User Value for Indicator " + ind + " is valid");
31
                obj.attr("title", "User Value for Indicator " + ind + " is valid");
32
                obj.css("backgroundColor", "");
33
                if (a_usevalue && a_usevalue_3) {
34
                    a_usevalue.attr('title', "Use this value and close the window");
35
                    a_usevalue.val("Use and Close");
36
                    if (okBoth.ind1 && okBoth.ind2) {
37
                        a_usevalue_3.attr('title', 'Use these values and close the window');
38
                        a_usevalue_3.val('Use both and Close');
39
                    } else {
40
                        a_usevalue_3.attr('title', "Can't Use these values until they're correct");
41
                        a_usevalue_3.val("Can't Use these values until they're correct");
42
                    }
43
                }
44
            } else {
45
                obj.prev("label").attr("title", "User Value for Indicator " + ind + " not is valid");
46
                obj.attr("title", "User Value for Indicator " + ind + " is not valid");
47
                obj.css("backgroundColor", "yellow");
48
                if (a_usevalue && a_usevalue_3) {
49
                    a_usevalue.attr('title', "Can't Use this value until is correct");
50
                    a_usevalue.val("Can't Use this value until is correct");
51
                    a_usevalue_3.attr('title', "Can't Use these values until they're correct");
52
                    a_usevalue_3.val("Can't Use these values until they're correct");
53
                }
54
            }
55
        } else okBoth.ind1 = true;
56
        return okBoth.ind1;
57
    }//checkValueInd
58
59
60
    // Change the value on the opener windows
61
    function changeValueInd(value, ind, field, openerField1, openerField2)
62
    {
63
        var openerField = (ind == 1)?openerField1:openerField2;
64
        var name = field + "_ind" + ind;
65
        var form = $("#f_pop");
66
        var $inputs = $('#f_pop input:text[name=' + name + ']');
67
        $inputs.each(function() {
68
            $(this).val(value);
69
            if (checkValueInd($(this).attr("id"), ind, field) && opener) {
70
                try {
71
                    for (var j=0; j < opener.document.f.elements.length; j++) {
72
                        if (opener.document.f.elements[j].name == openerField) {
73
                            opener.document.f.elements[j].value = value;
74
                            opener.document.f.elements[j].style.backgroundColor = "";
75
                            break;
76
                        }
77
                    }
78
                } catch (e) { // for HTML5 browsers that don't allow accessing/changing variables to the opener
79
                    var origin = location.protocol + '//' + location.hostname + ((location.port)?':' + location.port:'');
80
                    window.opener.postMessage('indicators: changeValueInd = ' + openerField + ';' + value, origin);
81
                }
82
            }
83
            return;
84
        });
85
    }//changeValueInd
86
87
88
    // Fill in the form the value of the indicator
89
    function changeValueIndLocal(openerField, value)
90
    {
91
        var $inputs = $('#f input:text[name=' + openerField + ']');
92
        if ($inputs.length > 0) {
93
            $inputs.each(function() {
94
                $(this).val(value);
95
                $(this).css("backgroundColor", "");
96
            });
97
        }
98
    }//changeValueIndLocal
99
100
101
    // Fill in the opener form the value of the indicator
102
    function useValue(ind, field, openerField, close)
103
    {
104
        var obj = $("#" + field + "_ind" + ind);
105
        if (obj) {
106
            var value = obj.val();
107
            if (checkValueInd(obj.attr("id"), ind, field)) {
108
                if (opener) {
109
                    try {
110
                        for (var j=0; j < opener.document.f.elements.length; j++) {
111
                            if (opener.document.f.elements[j].name == openerField) {
112
                                opener.document.f.elements[j].value = value;
113
                                break;
114
                            }
115
                        }
116
                    } catch (e) { // for HTML5 browsers that don't allow accessing/changing variables to the opener
117
                        var origin = location.protocol + '//' + location.hostname + ((location.port)?':' + location.port:'');
118
                        window.opener.postMessage('indicators: useValue = ' + openerField + ';' + value, origin);
119
                    }
120
                    if (close) window.close();
121
                }
122
                return true;
123
            } else {
124
                var obja = $("#" + field + "_btn_usevalue_" + ind);
125
                if (obja) obja.attr('title', "Value " + value + " invalid for indicator " + ind);
126
                alert(_("Value ") + value + _(" invalid for indicator " + ind));
127
            }
128
        }
129
        return false;
130
    }//useValue
131
132
133
    // Fill in the form the value of the indicator
134
    function useValueLocal(openerField, value)
135
    {
136
        var $inputs = $('#f input:text[name=' + openerField + ']');
137
        if ($inputs.length > 0) {
138
            $inputs.each(function() {
139
                $(this).val(value);
140
            });
141
        }
142
    }//useValueLocal
143
144
145
    // Fill in the opener form the values
146
    function useValues(field, openerField1, openerField2)
147
    {
148
        if (useValue(1, field, openerField1, false) && useValue(2, field, openerField2, false)) {
149
            if (opener) window.close();
150
        }
151
    }//useValues
152
153
    var windowIndicators;
154
155
    // Launch the popup for the field with the current values
156
    function launchPopupValueIndicators(frameworkcode, type, tag, index, random)
157
    {
158
        var ind1 = "tag_" + tag + "_indicator1_" + index + random;
159
        var ind2 = "tag_" + tag + "_indicator2_" + index + random;
160
        var objInd1 = $("input:text[name^='" + ind1 + "']");
161
        var objInd2 = $("input:text[name^='" + ind2 + "']");
162
        if (objInd1 || objInd2) {
163
            var strParam = "&type=" + type;
164
            if (objInd1 != undefined) strParam += "&" + ind1 + "=" + ((objInd1.val())?objInd1.val():escape("#"));
165
            if (objInd2 != undefined) strParam += "&" + ind2 + "=" + ((objInd2.val())?objInd2.val():escape("#"));
166
            if (arguments.length == 6) {
167
                windowIndicators = (type == 'biblio')?window.open("/cgi-bin/koha/cataloguing/marc21_indicators.pl?biblionumber=" + arguments[5] + "&frameworkcode=" + frameworkcode + strParam, "valueindicators",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes'):window.open("/cgi-bin/koha/cataloguing/marc21_indicators.pl?authid=" + arguments[5] + "&authtypecode=" + frameworkcode + strParam, "valueindicators",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
168
            } else {
169
                windowIndicators = (type == 'biblio')?window.open("/cgi-bin/koha/cataloguing/marc21_indicators.pl?frameworkcode=" + frameworkcode + strParam, "valueindicators",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes'):window.open("/cgi-bin/koha/cataloguing/marc21_indicators.pl?authtypecode=" + frameworkcode + strParam, "valueindicators",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
170
            }
171
        }
172
    }//launchPopupValueIndicators
173
174
175
    var xmlDocInd;
176
    var tagFields;
177
    var errorAjax = false;
178
179
    // Look for the value indicator for a frameworkcode
180
    function send_ajax_indicators(code, type)
181
    {
182
        $.ajax({
183
            type: "POST",
184
            url: "/cgi-bin/koha/cataloguing/indicators_ajax.pl",
185
            dataType: "xml",
186
            async: true,
187
            "data": {code: code, type: type},
188
            "success": (arguments.length == 2)?receive_ok_indicators:receive_ok_indicators_for_opener
189
        });
190
        $("*").ajaxError(function(evt, request, settings){
191
            if (!errorAjax) {
192
                alert(_("AJAX error: receiving data from ") + settings.url);
193
                errorAjax = true;
194
            }
195
        });
196
    }//send_ajax_indicators
197
198
199
    function receive_ok_indicators(data, textStatus)
200
    {
201
        xmlDocInd = data.documentElement;
202
        getTagFields();
203
        if (windowIndicators) windowIndicators.location.reload();
204
    }//receive_ok_indicators
205
206
207
    // Called from the plugin to reload the xml data in the opener, so you can make changes in the framework's indicators
208
    // and validate the biblio record without reloading the page and losing the data of the form.
209
    function receive_ok_indicators_for_opener(data, textStatus)
210
    {
211
        try {
212
            window.opener.xmlDocInd = data.documentElement;
213
            getTagFields(true);
214
            window.opener.tagFields = tagFields;
215
            location.reload();
216
        } catch (e) {
217
            try { // for HTML5 browsers that don't allow accessing/changing variables to the opener
218
                var origin = location.protocol + '//' + location.hostname + ((location.port)?':' + location.port:'');
219
                window.opener.postMessage('indicators: xmlDocInd = ' + (new XMLSerializer()).serializeToString(data), origin);
220
                if (getTagFields(true)) {
221
                    var tagFieldsStr = '{';
222
                    for (var ind in tagFields) {
223
                        tagFieldsStr += '"' + ind + '" : ' + tagFields[ind] + ',';
224
                    }
225
                    tagFieldsStr = tagFieldsStr.substring(0, tagFieldsStr.length - 1);
226
                    tagFieldsStr += '};';
227
                    window.opener.postMessage('indicators: tagFields = ' + tagFieldsStr, origin);
228
                } else {
229
                    window.opener.postMessage('indicators: tagFieldsRemote = ', origin);
230
                }
231
                location.reload();
232
            } catch (e) {
233
            }
234
        }
235
    }//receive_ok_indicators
236
237
238
    // Get all input elements for indicators and store them on associative array for rapid accessing
239
    function getTagFields()
240
    {
241
        tagFields = new Array();
242
        var form;
243
        if (arguments.length == 1) {
244
            try {
245
                form = window.opener.document.f;
246
            } catch (e) {
247
                return false;
248
            }
249
        } else form = document.f;
250
        var name;
251
        var tag;
252
        for (var i=0; i < form.elements.length; i++) {
253
            name = form.elements[i].name;
254
            if (name && name.indexOf("tag_") == 0 && name.indexOf("_indicator") > 0) {
255
                tag = name.substr(4,3);
256
                tagFields[tag] = true;
257
            }
258
        }
259
        return true;
260
    }//getTagFields
261
262
263
    // Traverse the indicators xml data to check against fields in the form
264
    function checkValidIndFramework()
265
    {
266
        var strErrorInd = "";
267
        var numError = -1;
268
        if (xmlDocInd != undefined) {
269
            if (xmlDocInd.nodeName == "Error") {
270
            } else {
271
                if (xmlDocInd.nodeName == "Framework" && xmlDocInd.nodeType == 1 && xmlDocInd.hasChildNodes()) {
272
                    var nodeFields = xmlDocInd.getElementsByTagName('Fields')[0];
273
                    if (nodeFields && nodeFields.nodeType == 1 && nodeFields.hasChildNodes()) {
274
                        var nodeField = nodeFields.firstChild;
275
                        var tag;
276
                        var i = 1;
277
                        while (nodeField != null) {
278
                            if (nodeField.nodeType == 1) {
279
                                tag = nodeField.attributes.getNamedItem("tag").nodeValue;
280
                                if (nodeField.hasChildNodes()) {
281
                                    var objFieldsInd;
282
                                    var arrObj = search_koha_field(tag);
283
                                    if (arrObj != undefined && arrObj.length > 0) {
284
                                        for (var z = 0; z < arrObj.length; z++) {
285
                                            objFieldsInd = arrObj[z];
286
                                            if (objFieldsInd != undefined && (objFieldsInd.ind1 != undefined || objFieldsInd.ind2 != undefined)) {
287
                                                for (var j = 1; j <= 2; j++) {
288
                                                    var objInd;
289
                                                    if (j == 1 && objFieldsInd.ind1 != undefined) objInd = objFieldsInd.ind1;
290
                                                    else if (j == 2 && objFieldsInd.ind2 != undefined) objInd = objFieldsInd.ind2;
291
                                                    if (objInd != undefined) {
292
                                                        var valueInd = objInd.val();
293
                                                        if (!checkValidIndField(j, valueInd, nodeField)) {
294
                                                            strErrorInd += "The value \"" + valueInd + "\" is not valid for indicator " + j + " on tag " + tag + ". ";
295
                                                            numError++;
296
                                                            if (numError > 0 && (numError + 1) % 2 == 0) strErrorInd += "\n";
297
                                                            objInd.css("backgroundColor", "yellow");
298
                                                        } else {
299
                                                            objInd.css("backgroundColor" ,"");
300
                                                        }
301
                                                    }
302
                                                }
303
                                            }
304
                                        }
305
                                    }
306
                                }
307
                            }
308
                            nodeField = nodeField.nextSibling;
309
                            i++;
310
                        }
311
                    }
312
                }
313
            }
314
        }
315
        return strErrorInd;
316
    }//checkValidIndFramework
317
318
319
    // Check a value from an indicator against a node from the xml
320
    function checkValidIndField(ind, valueInd, nodeField)
321
    {
322
        try {
323
            var hasNodeInd = false;
324
            var nodeInd = nodeField.firstChild;
325
            while (nodeInd != null) {
326
                if (nodeInd.nodeType == 1 && (nodeInd.getAttributeNode("ind") || nodeInd.hasAttribute("ind"))) {
327
                    if (nodeInd.getAttribute("ind") == ind) {
328
                        hasNodeInd = true;
329
                        // return as valid if value is ok or is empty or is a blank
330
                        if (nodeInd.hasChildNodes() && nodeInd.firstChild.nodeValue == valueInd) return true;
331
                        else if (valueInd == "" || valueInd == " ") return true;
332
                    }
333
                }
334
                nodeInd = nodeInd.nextSibling;
335
            }
336
            // Return as valid if there's not a set of values for this indicator in this field
337
            if (!hasNodeInd) return true;
338
        } catch (e) {
339
            //alert("An exception occurred in the script. Error name: " + e.name + ". Error message: " + e.message);
340
        }
341
        return false;
342
    }//checkValidIndField
343
344
345
    // Class for store both indicators values
346
    function FieldIndicatorObject()
347
    {
348
    }//IndicatorObject
349
350
    FieldIndicatorObject.prototype = {
351
        ind1: undefined,
352
        ind2: undefined
353
    }
354
355
    // Search for the input text of the indicators for a tag in the form
356
    function search_koha_field(tag)
357
    {
358
        var resArr;
359
        if (tagFields != undefined && (tagFields[tag] == undefined || !tagFields[tag])) {
360
            return resArr;
361
        }
362
        resArr = new Array();
363
        var indTag = "tag_" + tag + "_indicator";
364
        var lengthIndTag = indTag.length;
365
        var pos;
366
        var ind1 = false;
367
        var ind2 = false;
368
        var obj;
369
        var name;
370
        var $inputs = $('input:text[name^="' + indTag + '"]');
371
        $inputs.each(function() {
372
            name = $(this).attr('name');
373
            if ((pos = name.indexOf(indTag)) >= 0) {
374
                if (!ind1 && !ind2) {
375
                    obj = new FieldIndicatorObject();
376
                }
377
                if (name.charAt(pos + lengthIndTag) == 1) {
378
                    ind1 = true;
379
                    obj.ind1 = $(this);
380
                } else {
381
                    ind2 = true;
382
                    obj.ind2 = $(this);
383
                }
384
                if (ind1 && ind2 && obj.ind1 != undefined && obj.ind2 != undefined) {
385
                    ind1 = false;
386
                    ind2 = false;
387
                    resArr.push(obj);
388
                }
389
            }
390
        });
391
        return resArr;
392
    }//search_koha_field
393
394
395
396
    // Block for dynamic HTML management of value indicators
397
398
399
    // Delete indicator block
400
    function delete_ind_value(id)
401
    {
402
        $('#ul_' + id).remove();
403
    }//delete_ind_value
404
405
406
    // Hide or show the indicator block
407
    function hideShowBlock(a, ind)
408
    {
409
        var ul_in = $("#ul_in_" + ind);
410
        if (ul_in.css('display') == "none") {
411
            ul_in.css('display', "block");
412
            a.title = "Hide: " + a.innerHTML;
413
        } else {
414
            ul_in.css('display', "none");
415
            a.title = "Show: " + a.innerHTML;
416
        }
417
    }//hideShowBlock
418
419
420
    // Change label to indicate whether is indicator 1 or 2
421
    function changeLabelInd(ind, obj)
422
    {
423
        var a_in = $('#a_in_' + ind);
424
        if (!(obj.value == '1' || obj.value == '2')) {
425
            obj.value = '';
426
            a_in.html(ind + ' - Indicator ' + obj.value);
427
        }
428
        a_in.html(ind + ' - Indicator ' + obj.value);
429
    }//changeLabelInd
430
431
432
    // Check whether the value is correct
433
    function checkValueIndCompleteSet(ind, obj)
434
    {
435
        var rege = new RegExp("^[abcdefghijklmnopqrstuvwxyz0123456789 ]$");
436
        if (rege.test(obj.value) || obj.value == "") {
437
            obj.title = "Value \"" + obj.value + "\" for Indicator " + ind + " is valid";
438
            obj.style.backgroundColor = "";
439
        } else {
440
            obj.title = "Value \"" + obj.value + "\"  for Indicator " + ind + " is not valid (abcdefghijklmnopqrstuvwxyz0123456789 )";
441
            obj.style.backgroundColor = "yellow";
442
        }
443
    }//checkValueIndCompleteSet
444
445
446
    // Add indicator block
447
    function add_ind_value()
448
    {
449
        var list = $('#marc_indicators_structure');
450
        if (list) {
451
            numInd++;
452
            var ul = $("<ol id='ul_" + numInd + "' style='width:590px' />");
453
454
            var li = $('<li />');
455
            li.text('\u00a0');
456
            ul.append(li);
457
458
            lli = $('<li />');
459
            var bold = $('<strong />');
460
            li.append(bold);
461
            var a = $("<a id='a_in_" + numInd + "' href='javascript:void(0)' onclick='hideShowBlock(this, " + numInd + ")' />");
462
            a.text(numInd + " - Indicator");
463
            bold.append(a);
464
            ul.append(li);
465
466
            li = $("<li id='ul_in_" + numInd + "' style='display:block' />");
467
            ul.append(li);
468
            var ul2 = $("<ol />");
469
            li.append(ul2);
470
471
            var li2 = $('<li />');
472
            label = $("<label for='ind_" + numInd + "' title='Type of indicator: 1 or 2' />");
473
            label.text('Type of indicator');
474
            li2.append(label);
475
            input = $("<input type='text' size='1' maxlength='1' name='ind_" + numInd + "' id='ind_" + numInd + "' onkeyup='changeLabelInd(" + numInd + ", this)' />");
476
            li2.append(input);
477
            ul2.append(li2);
478
479
            li2 = $('<li />');
480
            label = $("<label for='ind_value_" + numInd + "' title='Value: only one char allowed' />");
481
            label.text('Value');
482
            li2.append(label);
483
            input = $("<input type='text' size='1' maxlength='1' name='ind_value_" + numInd + "' id='ind_value_" + numInd + "' onkeyup='checkValueIndCompleteSet(" + numInd + ", this)' />");
484
            li2.append(input);
485
            ul2.append(li2);
486
487
            li2 = $('<li />');
488
            label = $("<label for='ind_desc_" + numInd + "' />");
489
            label.text('Description');
490
            li2.append(label);
491
            input = $("<textarea cols='80' rows='4' name='ind_desc_" + numInd + "' id='ind_desc_" + numInd + "' />");
492
            li2.append(input);
493
            ul2.append(li2);
494
495
            var del = $("<input type='button' value='Delete' onclick='delete_ind_value(" + numInd + ")' />");
496
            li2 = $('<li />');
497
            li2.append(del);
498
            ul2.append(li2);
499
500
            list.append(ul);
501
        }
502
    }//add_ind_value
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt (-2 / +4 lines)
Lines 69-76 return false; Link Here
69
[% INCLUDE 'header.inc' %]
69
[% INCLUDE 'header.inc' %]
70
[% INCLUDE 'cat-search.inc' %]
70
[% INCLUDE 'cat-search.inc' %]
71
71
72
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
72
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <a href="/cgi-bin/koha/admin/authtypes.pl">Authority Types</a> &rsaquo;
73
    <a href="/cgi-bin/koha/admin/authtypes.pl">Authority types</a> &rsaquo;
74
    [% IF ( add_form ) %]
73
    [% IF ( add_form ) %]
75
        [% IF ( use_heading_flags_p ) %]
74
        [% IF ( use_heading_flags_p ) %]
76
            [% IF ( heading_modify_tag_p ) %]
75
            [% IF ( heading_modify_tag_p ) %]
Lines 190-195 return false; Link Here
190
        [% END %]
189
        [% END %]
191
        </select>
190
        </select>
192
        <input type="submit" value="OK" class="submit" />
191
        <input type="submit" value="OK" class="submit" />
192
        <br /><label for="clone_indicators" title="Clone indicators from the authority framework used as template">Clone indicators:&nbsp;</label><input type="checkbox" name="clone_indicators" id="clone_indicators" value ="1" checked="checked" />
193
    </form>
193
    </form>
194
[% END %]
194
[% END %]
195
195
Lines 239-244 return false; Link Here
239
        <th>Mandatory</th>
239
        <th>Mandatory</th>
240
        <th>Authorized<br />value</th>
240
        <th>Authorized<br />value</th>
241
        <th>Subfields</th>
241
        <th>Subfields</th>
242
        <th>Indicators</th>
242
        <th>Edit</th>
243
        <th>Edit</th>
243
        <th>Delete</th>
244
        <th>Delete</th>
244
    </thead>
245
    </thead>
Lines 254-259 return false; Link Here
254
        <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
255
        <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
255
        <td>[% loo.authorised_value %]</td>
256
        <td>[% loo.authorised_value %]</td>
256
        <td><a href="[% loo.subfield_link %]" class="button">subfields</a></td>
257
        <td><a href="[% loo.subfield_link %]" class="button">subfields</a></td>
258
        <td>[% IF ( loo.indicator_link ) %]<a href="[% loo.indicator_link %]">indicators</a>[% END %]</td>
257
        <td><a href="[% loo.edit %]">Edit</a></td>
259
        <td><a href="[% loo.edit %]">Edit</a></td>
258
        <td><a href="[% loo.delete %]">Delete</a></td>
260
        <td><a href="[% loo.delete %]">Delete</a></td>
259
    </tr>
261
    </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (+16 lines)
Lines 94-99 $(document).ready(function() { Link Here
94
		<li><label for="authtypetext">Description: </label><input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authtypetext |html %]" /></li>
94
		<li><label for="authtypetext">Description: </label><input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="[% authtypetext |html %]" /></li>
95
		<li><label for="summary">Summary: </label><textarea id="summary" name="summary" cols="55" rows="7">[% summary %]</textarea></li>
95
		<li><label for="summary">Summary: </label><textarea id="summary" name="summary" cols="55" rows="7">[% summary %]</textarea></li>
96
		<li>
96
		<li>
97
      [% IF ( authtypesloop ) %]
98
      [% IF ( authtypecode ) %]
99
        <li><label for="indicators">Clone indicators using</label>
100
        <select name="indicators" id="indicators">
101
            <option value="">Don't clone</option>
102
        [% FOREACH loo IN authtypesloop %]
103
            [% IF ( loo.authtypecode == "" ) %]
104
            <option value="Default">[% loo.authtypetext %]</option>
105
            [% ELSE %]
106
            <option value="[% loo.authtypecode %]">[% loo.authtypetext %]</option>
107
            [% END %]
108
        [% END %]
109
        </select>
110
        </li>
111
      [% END %]
112
      [% END %]
97
		<p class="tip">Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record</p>
113
		<p class="tip">Note: for 'Authority field to copy', enter the authority field that should be copied from the authority record to the bibliographic record. E.g., in MARC21, field 100 in the authority record should be copied to field 100 in the bibliographic record</p>
98
		<label for="auth_tag_to_report">Authority field to copy: </label><input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% auth_tag_to_report %]" />
114
		<label for="auth_tag_to_report">Authority field to copy: </label><input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="[% auth_tag_to_report %]" />
99
		<input type="hidden" name="op" value="add_validate" />
115
		<input type="hidden" name="op" value="add_validate" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-1 / +14 lines)
Lines 161-167 $(document).ready(function() { Link Here
161
        <li><label for="frameworkcode">Framework code</label><input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" onblur="toUC(this)" /></li>
161
        <li><label for="frameworkcode">Framework code</label><input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" onblur="toUC(this)" /></li>
162
	[% END %]
162
	[% END %]
163
        <li><label for="description">Description</label>
163
        <li><label for="description">Description</label>
164
        <input type="text" name="frameworktext" id="description" size="40" maxlength="80" value="[% frameworktext |html %]" /></li></ol></fieldset>
164
        <input type="text" name="frameworktext" id="description" size="40" maxlength="80" value="[% frameworktext |html %]" /></li>
165
    [% IF ( frameworkloop ) %]
166
    [% IF ( frameworkcode ) %]
167
        <li><label for="indicators">Clone indicators using</label>
168
        <select name="indicators" id="indicators">
169
            <option value="">Don't clone</option>
170
        [% FOREACH loo IN frameworkloop %]
171
            <option value="[% loo.frameworkcode %]">[% loo.frameworktext %]</option>
172
        [% END %]
173
        </select>
174
        </li>
175
    [% END %]
176
    [% END %]
177
    </ol></fieldset>
165
        <fieldset class="action">	<input type="submit" value="Submit" class="submit" /></fieldset>
178
        <fieldset class="action">	<input type="submit" value="Submit" class="submit" /></fieldset>
166
    </form>
179
    </form>
167
[% END %]
180
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_indicators_structure.tt (+89 lines)
Line 0 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
2
    <title>Koha &rsaquo; Administration &rsaquo; Indicators Set - [% IF ( type == 'biblio' ) %]Framework[% ELSE %]Auth Type[% END %] [% code %] - Tag
3
[% tagfield %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
5
    <script type="text/javascript">
6
        var numInd = [% numInd %];
7
    </script>
8
    <script type="text/javascript" src='[% themelang %]/js/indicators.js'></script>
9
    <script type="text/javascript">
10
        $(document).ready(function() {
11
            $(".ul_in").click(function() {
12
                var ul_in = $(this).closest("li").next("li");
13
                if (ul_in.css("display") == 'none') {
14
                    ul_in.show();
15
                    $(this).attr("title", 'Hide: ' + $(this).html());
16
                } else {
17
                    ul_in.fadeOut('fast');
18
                    $(this).attr("title", 'Show: ' + $(this).html());
19
                }
20
            });
21
            $(".ul_in").mouseover(function() {
22
                var ul_in = $(this).closest("li").next("li");
23
                var act = (ul_in.css("display") == 'block')?'Hide: ':'Show: ';
24
                $(this).attr("title", act + $(this).html());
25
            });
26
        });
27
    </script>
28
</head>
29
<body>
30
[% INCLUDE 'header.inc' %]
31
[% INCLUDE 'cat-search.inc' %]
32
33
<div id="breadcrumbs">
34
  <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; [% IF ( type == 'biblio' ) %]<a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC Frameworks</a> &rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% code %]&amp;searchfield=[% tagfield %]">[% frameworkcode %] Framework Structure</a>[% ELSE %]<a href="/cgi-bin/koha/admin/authtypes.pl">Authority MARC Framework</a> &rsaquo; <a href="/cgi-bin/koha/admin/auth_tag_structure.pl?authtypecode=[% code %]&amp;searchfield=[% tagfield %]">[% frameworkcode %] Framework Structure</a>[% END %] &rsaquo; Indicators Structure - Tag [% tagfield %]
35
</div>
36
37
<div id="doc" class="yui-t7">
38
   <div id="bd">
39
        <div id="yui-main">
40
            <div class="yui-g">
41
42
            <form action="/cgi-bin/koha/admin/marc_indicators_structure.pl" name="f_ind" id="f_ind" method="post">
43
                <input type="hidden" name="op" value="[% op %]" />
44
                <input type="hidden" name="tagfield" value="[% tagfield %]" />
45
                [% IF ( type == 'biblio' ) %]
46
                <input type="hidden" name="frameworkcode" value="[% code %]" />
47
                [% ELSE %]
48
                <input type="hidden" name="authtypecode" value="[% code %]" />
49
                [% END %]
50
                <input type="hidden" name="lang" value="[% lang %]" />
51
                <fieldset class="rows" id="marc_indicators_structure"><legend id="marc_indicators_structure">[% IF ( op == 'mod' ) %]Edit value indicators[% ELSE %]Add value indicators[% END %]</legend>
52
                [% FOREACH BIG_LOO IN BIG_LOOP %]
53
                <ol id='ul_[% BIG_LOO.numInd %]'>
54
                    <input type="hidden" name="id_indicator_[% BIG_LOO.numInd %]" value="[% BIG_LOO.id_indicator_value %]" />
55
                    <li>&nbsp;</li>
56
                    <li><b><a href="javascript:void(0)" id="a_in_[% BIG_LOO.numInd %]" class="ul_in">[% BIG_LOO.numInd %] - Indicator [% BIG_LOO.ind %]</a></b></li>
57
                    <li id='ul_in_[% BIG_LOO.numInd %]' style="display:block">
58
                        <ol>
59
                            <li>
60
                                <label for="ind_[% BIG_LOO.numInd %]" title="Type of indicator: 1 or 2">Type of indicator</label>
61
                                <input type="text" size="1" maxlength="1" name="ind_[% BIG_LOO.numInd %]" id="ind_[% BIG_LOO.numInd %]" value="[% BIG_LOO.ind %]" onkeyup="changeLabelInd([% BIG_LOO.numInd %], this)" />
62
                            </li>
63
                            <li>
64
                                <label for="ind_value_[% BIG_LOO.numInd %]" title="Value: only one char allowed">Value</label>
65
                                <input type="text" size="1" maxlength="1" name="ind_value_[% BIG_LOO.numInd %]" id="ind_value_[% BIG_LOO.numInd %]" value="[% BIG_LOO.ind_value %]" onkeyup="checkValueIndCompleteSet([% BIG_LOO.numInd %], this)" />
66
                            </li>
67
                            <li>
68
                                <label for="ind_desc_[% BIG_LOO.numInd %]">Description</label>
69
                                <textarea cols="80" rows="4" name="ind_desc_[% BIG_LOO.numInd %]" id="ind_desc_[% BIG_LOO.numInd %]">[% BIG_LOO.ind_desc %]</textarea>
70
                            </li>
71
                            <li>
72
                                <input type="button" value="Delete" onclick="delete_ind_value([% BIG_LOO.numInd %])" />
73
                            </li>
74
                        </ol>
75
                    </li>
76
                </ol>
77
                [% END %]
78
                </fieldset>
79
                <fieldset class="action">
80
                    <input type="button" class="button" title="Add another value" value="Add another value" onclick="add_ind_value()" name="btn_add_ind" />
81
                    <input type="submit" class="button" title="Save Values" value="Save Values" name="btn_save" />
82
                </fieldset>
83
            </form>
84
85
            </div>
86
        </div>
87
    </div>
88
89
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt (-1 / +6 lines)
Lines 127-132 $(document).ready(function() { Link Here
127
        [% END %]
127
        [% END %]
128
        </select>
128
        </select>
129
        <input type="submit" value="OK" />
129
        <input type="submit" value="OK" />
130
        <br /><label for="clone_indicators" title="Clone indicators from the framework used as template">Clone indicators:&nbsp;</label><input type="checkbox" name="clone_indicators" id="clone_indicators" value ="1" checked="checked" />
131
130
    </form>
132
    </form>
131
[% END %]
133
[% END %]
132
134
Lines 168-173 $(document).ready(function() { Link Here
168
        <th>Mandatory</th>
170
        <th>Mandatory</th>
169
        <th>Auth value</th>
171
        <th>Auth value</th>
170
        <th>Subfields</th>
172
        <th>Subfields</th>
173
        <th>Indicators</th>
171
        <th>Edit</th>
174
        <th>Edit</th>
172
        <th>Delete</th>
175
        <th>Delete</th>
173
	</thead>
176
	</thead>
Lines 181-192 $(document).ready(function() { Link Here
181
            <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
184
            <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
182
            <td>[% loo.authorised_value %]</td>
185
            <td>[% loo.authorised_value %]</td>
183
            <td><a href="[% loo.subfield_link %]">subfields</a></td>
186
            <td><a href="[% loo.subfield_link %]">subfields</a></td>
187
            <td>[% IF ( loo.indicator_link ) %]<a href="[% loo.indicator_link %]">indicators</a>[% END %]</td>
184
            <td><a href="[% loo.edit %]">Edit</a></td>
188
            <td><a href="[% loo.edit %]">Edit</a></td>
185
            <td><a href="[% loo.delete %]">Delete</a></td>
189
            <td><a href="[% loo.delete %]">Delete</a></td>
186
        </tr>
190
        </tr>
187
      [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
191
      [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
188
            <td>&nbsp;</td>
192
            <td>&nbsp;</td>
189
            <td colspan="7">
193
            <td colspan="8">
190
                [% FOREACH subfield IN loo.subfields %]
194
                [% FOREACH subfield IN loo.subfields %]
191
                    <p>	Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
195
                    <p>	Tab:[% subfield.tab %] | $[% subfield.tagsubfield %]
192
                            [% subfield.liblibrarian %] [% IF ( subfield.kohafield ) %][% subfield.kohafield %][% END %][% IF ( subfield.repeatable ) %], repeatable[% END %][% IF ( subfield.mandatory ) %], Mandatory[% END %][% IF ( subfield.seealso ) %], See [% subfield.seealso %][% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder %][% END %]
196
                            [% subfield.liblibrarian %] [% IF ( subfield.kohafield ) %][% subfield.kohafield %][% END %][% IF ( subfield.repeatable ) %], repeatable[% END %][% IF ( subfield.mandatory ) %], Mandatory[% END %][% IF ( subfield.seealso ) %], See [% subfield.seealso %][% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder %][% END %]
Lines 204-209 $(document).ready(function() { Link Here
204
        <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
208
        <td>[% IF ( loo.mandatory ) %]Yes[% ELSE %]No[% END %]</td>
205
        <td>[% loo.authorised_value %]</td>
209
        <td>[% loo.authorised_value %]</td>
206
        <td><a href="[% loo.subfield_link %]">Subfields</a></td>
210
        <td><a href="[% loo.subfield_link %]">Subfields</a></td>
211
        <td>[% IF ( loo.indicator_link ) %]<a href="[% loo.indicator_link %]">Indicators</a>[% END %]</td>
207
        <td><a href="[% loo.edit %]">Edit</a></td>
212
        <td><a href="[% loo.edit %]">Edit</a></td>
208
        <td><a href="[% loo.delete %]">Delete</a></td>
213
        <td><a href="[% loo.delete %]">Delete</a></td>
209
    </tr>
214
    </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-1 / +12 lines)
Lines 104-110 Cataloging: Link Here
104
        -
104
        -
105
            - Define a list of subfields to use when prefilling items (separated by space)
105
            - Define a list of subfields to use when prefilling items (separated by space)
106
            - pref: SubfieldsToUseWhenPrefill
106
            - pref: SubfieldsToUseWhenPrefill
107
107
        -
108
            - pref: CheckValueIndicators
109
              choices:
110
                  yes: Check
111
                  no: "Don't check"
112
            - the values of the indicators against the defined values of the indicators for a framework when saving a biblio record.
108
    Display:
113
    Display:
109
        -
114
        -
110
            - 'Separate multiple displayed authors, series or subjects with '
115
            - 'Separate multiple displayed authors, series or subjects with '
Lines 172-174 Cataloging: Link Here
172
            - pref: NotesBlacklist
177
            - pref: NotesBlacklist
173
              class: multi
178
              class: multi
174
            - note fields in title notes separator (OPAC record details) and in the description separator (Staff client record details). The fields should appear separated with commas and according with the Koha MARC format (eg 3.. for UNIMARC, 5.. for MARC21)
179
            - note fields in title notes separator (OPAC record details) and in the description separator (Staff client record details). The fields should appear separated with commas and according with the Koha MARC format (eg 3.. for UNIMARC, 5.. for MARC21)
180
        -
181
            - pref: DisplayPluginValueIndicators
182
              choices:
183
                  yes: "Don't hide"
184
                  no: Hide
185
            - the link next to the indicator field to open a plugin to show the correct values of the indicator for this field and framework. If CheckValueIndicators is disabled and this variable is enabled it will check the values as well, i.e., it includes the CheckValueIndicators functionality.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-63 / +168 lines)
Lines 3-8 Link Here
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/bubbling-min.js"></script>
4
<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/bubbling-min.js"></script>
5
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
5
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
6
[% IF ( CheckValueIndicators ) %]
7
<script type="text/javascript" src='[% themelang %]/js/indicators.js'></script>
8
[% END %]
6
9
7
<script type="text/javascript">
10
<script type="text/javascript">
8
//<![CDATA[
11
//<![CDATA[
Lines 87-98 function AreMandatoriesNotOk(){ Link Here
87
    return false;
90
    return false;
88
}
91
}
89
92
93
94
// Get XML Document with values of indicators.
95
// Check if we come from an authorities operation with wrong values
96
// Check if the XML is ready
97
[% IF ( CheckValueIndicators ) %]
98
    // Get XML Document with values of indicators
99
    send_ajax_indicators('[% authtypecode %]', 'auth');
100
    // check if we come from an authorities operation with wrong values
101
    [% IF ( wrongInd ) %]
102
        $(document).ready(function() {
103
            var form = document.f;
104
            var tagfield;
105
            var arrInd;
106
            var strIndError = "";
107
        [% FOREACH wrongIn IN wrongInd %]
108
            tagfield = '[% wrongIn.tagfield %]';
109
            arrInd = search_koha_field(tagfield);
110
            if (arrInd != undefined && arrInd.length > 0) {
111
                for (var i=0; i < arrInd.length; i++) {
112
                    var ind1 = '[% wrongIn.ind1 %]';
113
                    var ind2 = '[% wrongIn.ind2 %]';
114
                    if (ind1 != '' && ind1 != ' ' && arrInd[i].ind1.val() == ind1) {
115
                        arrInd[i].ind1.css("backgroundColor", "yellow");
116
                        strIndError += "Field " + tagfield + " has wrong value \"" + ind1 + "\" on indicator 1.\n";
117
                    }
118
                    if (ind2 != '' && ind2 != ' ' && arrInd[i].ind2.val() == ind2) {
119
                        arrInd[i].ind2.css("backgroundColor", "yellow");
120
                        strIndError += "Field " + tagfield + " has wrong value \"" + ind2 + "\" on indicator 2.\n";
121
                    }
122
                }
123
            }
124
        [% END %]
125
        if (strIndError != "") alert("Record not saved due to errors on indicators:\n\n" + strIndError);
126
        });
127
128
    [% END %]
129
130
    // Receiving messages from the marc21_indicators window
131
    // for HTML5 browsers that don't allow accessing/changing variables to the opener
132
    function receiveMessageInd(event)
133
    {
134
        var origin = location.protocol + '//' + location.hostname + ((location.port)?':' + location.port:'');
135
        if (event.origin !== origin || event.source != windowIndicators) return;
136
        var data = event.data;
137
        if (data.indexOf('indicators: ' == 0)) {
138
            data = data.substring(12);
139
            if (data.indexOf('send_ajax_indicators = ') == 0) {
140
                send_ajax_indicators('[% authtypecode %]', 'auth');
141
            } else if (data.indexOf('xmlDocInd = ') == 0) {
142
                data = data.substring(12);
143
                var parser = new DOMParser();
144
                var doc = parser.parseFromString(data,"text/xml");
145
                xmlDocInd = doc.documentElement;
146
            } else if (data.indexOf('tagFieldsRemote = ') == 0) {
147
                getTagFields();
148
            } else if (data.indexOf('useValue = ') == 0) {
149
                data = data.substring(11);
150
                var arrUseValue = data.split(';');
151
                if (arrUseValue.length == 2) useValueLocal(arrUseValue[0], arrUseValue[1]);
152
            } else if (data.indexOf('changeValueInd = ') == 0) {
153
                data = data.substring(16);
154
                var arrUseValue = data.split(';');
155
                if (arrUseValue.length == 2) changeValueIndLocal(arrUseValue[0], arrUseValue[1]);
156
            } else {
157
                eval(data);
158
            }
159
        }
160
    }
161
    if (window.addEventListener) {
162
        window.addEventListener("message", receiveMessageInd, false);
163
    } else if (window.attachEvent) {
164
        window.attachEvent('onmessage', receiveMessageInd);
165
    }
166
    var triesReadXmlDocInd = 1;
167
168
/**
169
 * this function waits a maximun ot 6s for xmlDocInd to be populated before giving up.
170
 */
171
    function CheckAgain()
172
    {
173
        Check();
174
    }
175
[% END %]
176
177
90
/**
178
/**
91
 * 
179
 * 
92
 * 
180
 * 
93
 */
181
 */
94
function Check(){
182
function Check(){
95
    var StrAlert = AreMandatoriesNotOk();
183
    var StrAlert = AreMandatoriesNotOk();
184
    [% IF ( CheckValueIndicators ) %]
185
    if (xmlDocInd != undefined) {
186
        var strInd = checkValidIndFramework();
187
        if (strInd != "") {
188
            if (StrAlert == 0) StrAlert = "";
189
            else StrAlert += "\n";
190
            StrAlert += strInd;
191
        }
192
    } else if (triesReadXmlDocInd <= 3 && !StrAlert) {
193
        triesReadXmlDocInd++;
194
        setTimeout(function(){CheckAgain()}, 2000);
195
    }
196
    [% END %]
96
    if( ! StrAlert ){
197
    if( ! StrAlert ){
97
        document.f.submit();
198
        document.f.submit();
98
        return true;
199
        return true;
Lines 216-286 function searchauthority() { Link Here
216
317
217
[% FOREACH BIG_LOO IN BIG_LOOP %]
318
[% FOREACH BIG_LOO IN BIG_LOOP %]
218
    <div id="tab[% BIG_LOO.number %]XX">
319
    <div id="tab[% BIG_LOO.number %]XX">
219
320
        [% FOREACH innerloo IN BIG_LOO.innerloop %]
220
    [% FOREACH innerloo IN BIG_LOO.innerloop %]
321
            [% IF ( innerloo.tag ) %]
221
    [% IF ( innerloo.tag ) %]
322
                <div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]">
222
    <div class="tag" id="tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]">
323
                <div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]">
223
        <div class="tag_title" id="div_indicator_tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]">
324
                [% UNLESS hide_marc %]
224
        [% UNLESS hide_marc %]
325
                    [% IF advancedMARCEditor %]
225
            [% IF advancedMARCEditor %]
326
                        <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %]$
226
                <a href="#" tabindex="1" class="tagnum" title="[% innerloo.tag_lib %] - Click to Expand this Tag" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;">[% innerloo.tag %]</a>
327
                    [% ELSE %]
227
            [% ELSE %]
328
                        <span title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span>
228
                <span title="[% innerloo.tag_lib %]">[% innerloo.tag %]</span>
329
                    [% END %]
229
            [% END %]
330
                    [% IF ( innerloo.fixedfield ) %]
230
                [% IF ( innerloo.fixedfield ) %]
331
                    <input class="indicator flat"
231
                    <input type="text"
332
                                type="text"
232
                        tabindex="1"
333
                                style="display:none;"
233
                        class="indicator flat"
334
                                name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
234
                        style="display:none;"
335
                                size="1"
235
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
336
                                maxlength="1"
236
                        size="1"
337
                                value="[% innerloo.indicator1 %]" />
237
                        maxlength="1"
338
                    <input class="indicator flat"
238
                        value="[% innerloo.indicator1 %]" />
339
                                type="text"
239
                    <input type="text"
340
                                style="display:none;"
240
                        tabindex="1"
341
                                name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
241
                        class="indicator flat"
342
                                size="1"
242
                        style="display:none;"
343
                                maxlength="1"
243
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
344
                                value="[% innerloo.indicator2 %]" />
244
                        size="1"
345
                    [% ELSE %]
245
                        maxlength="1"
346
                    <input class="indicator flat"
246
                        value="[% innerloo.indicator2 %]" />
347
                                type="text"
247
                [% ELSE %]
348
                                name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
248
                    <input type="text"
349
                                size="1"
249
                        tabindex="1"
350
                                maxlength="1"
250
                        class="indicator flat"
351
                                value="[% innerloo.indicator1 %]" />
251
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
352
                    [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind1"
252
                        size="1"
353
onclick="launchPopupValueIndicators('[% authtypecode %]', 'auth', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( authid ) %],[% authid %][% END %])" title="Show plugin with allowed values for indicator 1 on field [% innerloo.tag %]">...</a>[% END %]
253
                        maxlength="1"
354
                    <input class="indicator flat"
254
                        value="[% innerloo.indicator1 %]" />
355
                                type="text"
255
                    <input type="text"
356
                                name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
256
                        tabindex="1"
357
                                size="1"
257
                        class="indicator flat"
358
                                maxlength="1"
258
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
359
                                value="[% innerloo.indicator2 %]" />
259
                        size="1"
360
                    [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind2"
260
                        maxlength="1"
361
onclick="launchPopupValueIndicators('[% authtypecode %]', 'auth', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( authid ) %],[% authid %][% END %])" title="Show plugin with allowed values for indicator 2 on field [% innerloo.tag %]">...</a>[% END %]
261
                        value="[% innerloo.indicator2 %]" />
362
                    [% END %] -
262
                [% END %] -
263
        [% ELSE %]
264
                [% IF ( innerloo.fixedfield ) %]
265
                    <input type="hidden"
266
                        tabindex="1"
267
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
268
                        value="[% innerloo.indicator1 %]" />
269
                    <input type="hidden"
270
                        tabindex="1"
271
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
272
                        value="[% innerloo.indicator2 %]" />
273
                [% ELSE %]
363
                [% ELSE %]
274
                    <input type="hidden"
364
                    [% IF ( innerloo.fixedfield ) %]
275
                        tabindex="1"
365
                        <input type="hidden"
276
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
366
                            name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %]"
277
                        value="[% innerloo.indicator1 %]" />
367
                            value="[% innerloo.indicator1 %][% innerloo.random %]" />
278
                    <input type="hidden"
368
                        <input type="hidden"
279
                        tabindex="1"
369
                            name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %]"
280
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
370
                            value="[% innerloo.indicator2 %][% innerloo.random %]" />
281
                        value="[% innerloo.indicator2 %]" />
371
                    [% ELSE %]
372
                        <input type="hidden"
373
                            name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %]"
374
                            value="[% innerloo.indicator1 %][% innerloo.random %]" />
375
                        [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind1"
376
onclick="launchPopupValueIndicators('[% authtypecode %]', 'auth', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( authid ) %],[% authid %][% END %])" title="Show plugin with allowed values for indicator 1 on field [% innerloo.tag %]">...</a>[% END %]
377
                        <input type="hidden"
378
                            name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %]"
379
                            value="[% innerloo.indicator2 %][% innerloo.random %]" />
380
                        [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind2"
381
onclick="launchPopupValueIndicators('[% authtypecode %]', 'auth', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( authid ) %],[% authid %][% END %])" title="Show plugin with allowed values for indicator 2 on field [% innerloo.tag %]">...</a>[% END %]
382
                    [% END %]
282
                [% END %]
383
                [% END %]
283
        [% END %]
384
385
                [% UNLESS ( innerloo.advancedMARCEditor ) %]
386
                    <a onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]')">[% innerloo.tag_lib %]</a>
387
                [% END %]
388
        
284
389
285
            [% UNLESS advancedMARCEditor %]
390
            [% UNLESS advancedMARCEditor %]
286
                <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib %]</a>
391
                <a href="#" tabindex="1" class="expandfield" onclick="ExpandField('tag_[% innerloo.tag %]_[% innerloo.index %][% innerloo.random %]'); return false;" title="Click to Expand this Tag">[% innerloo.tag_lib %]</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-22 / +502 lines)
Lines 4-9 Link Here
4
<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/bubbling-min.js"></script>
4
<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/bubbling-min.js"></script>
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
6
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
6
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script>
7
[% IF ( CheckValueIndicators ) %]
8
<script type="text/javascript" src='[% themelang %]/js/indicators.js'></script>
9
[% END %]
7
<script type="text/javascript">
10
<script type="text/javascript">
8
//<![CDATA[
11
//<![CDATA[
9
12
Lines 33-38 function confirmnotdup(redirect){ Link Here
33
	Check();
36
	Check();
34
}
37
}
35
38
39
/**
40
 *
41
 *
42
 */
43
44
// Get XML Document with values of indicators.
45
// Check if we come from an addbiblio operation with wrong values
46
// Check if the XML is ready
47
[% IF ( CheckValueIndicators ) %]
48
    // Get XML Document with values of indicators
49
    send_ajax_indicators('[% frameworkcode %]', 'biblio');
50
    // check if we come from an addbiblio operation with wrong values
51
    [% IF ( wrongInd ) %]
52
        $(document).ready(function() {
53
            var form = document.f;
54
            var tagfield;
55
            var arrInd;
56
            var strIndError = "";
57
        [% FOREACH wrongIn IN wrongInd %]
58
            tagfield = '[% wrongIn.tagfield %]';
59
            arrInd = search_koha_field(tagfield);
60
            if (arrInd != undefined && arrInd.length > 0) {
61
                for (var i=0; i < arrInd.length; i++) {
62
                    var ind1 = '[% wrongIn.ind1 %]';
63
                    var ind2 = '[% wrongIn.ind2 %]';
64
                    if (ind1 != '' && ind1 != ' ' && arrInd[i].ind1.val() == ind1) {
65
                        arrInd[i].ind1.css("backgroundColor", "yellow");
66
                        strIndError += "Field " + tagfield + " has wrong value \"" + ind1 + "\" on indicator 1.\n";
67
                    }
68
                    if (ind2 != '' && ind2 != ' ' && arrInd[i].ind2.val() == ind2) {
69
                        arrInd[i].ind2.css("backgroundColor", "yellow");
70
                        strIndError += "Field " + tagfield + " has wrong value \"" + ind2 + "\" on indicator 2.\n";
71
                    }
72
                }
73
            }
74
        [% END %]
75
        if (strIndError != "") alert(_("Record not saved due to errors on indicators:\n\n") + strIndError);
76
        });
77
78
    [% END %]
79
80
    // Receiving messages from the marc21_indicators window
81
    // for HTML5 browsers that don't allow accessing/changing variables to the opener
82
    function receiveMessageInd(event)
83
    {
84
        var origin = location.protocol + '//' + location.hostname + ((location.port)?':' + location.port:'');
85
        if (event.origin !== origin || event.source != windowIndicators) return;
86
        var data = event.data;
87
        if (data.indexOf('indicators: ' == 0)) {
88
            data = data.substring(12);
89
            if (data.indexOf('send_ajax_indicators = ') == 0) {
90
                send_ajax_indicators('[% frameworkcode %]', 'biblio');
91
            } else if (data.indexOf('xmlDocInd = ') == 0) {
92
                data = data.substring(12);
93
                var parser = new DOMParser();
94
                var doc = parser.parseFromString(data,"text/xml");
95
                xmlDocInd = doc.documentElement;
96
            } else if (data.indexOf('tagFieldsRemote = ') == 0) {
97
                getTagFields();
98
            } else if (data.indexOf('useValue = ') == 0) {
99
                data = data.substring(11);
100
                var arrUseValue = data.split(';');
101
                if (arrUseValue.length == 2) useValueLocal(arrUseValue[0], arrUseValue[1]);
102
            } else if (data.indexOf('changeValueInd = ') == 0) {
103
                data = data.substring(16);
104
                var arrUseValue = data.split(';');
105
                if (arrUseValue.length == 2) changeValueIndLocal(arrUseValue[0], arrUseValue[1]);
106
            } else {
107
                eval(data);
108
            }
109
        }
110
    }
111
    if (window.addEventListener) {
112
        window.addEventListener("message", receiveMessageInd, false);
113
    } else if (window.attachEvent) {
114
        window.attachEvent('onmessage', receiveMessageInd);
115
    }
116
    var triesReadXmlDocInd = 1;
117
118
/**
119
 * this function waits a maximun ot 6s for xmlDocInd to be populated before giving up.
120
 */
121
    function CheckAgain()
122
    {
123
        Check();
124
    }
125
[% END %]
126
127
function Check(){
128
    var StrAlert = AreMandatoriesNotOk();
129
    // check for indicator values
130
    [% IF ( CheckValueIndicators ) %]
131
    if (xmlDocInd != undefined) {
132
        var strInd = checkValidIndFramework();
133
        if (strInd != "") {
134
            if (StrAlert == 0) StrAlert = "";
135
            else StrAlert += "\n";
136
            StrAlert += strInd;
137
        }
138
    } else if (triesReadXmlDocInd <= 3 && !StrAlert) {
139
        triesReadXmlDocInd++;
140
        setTimeout(function(){CheckAgain()}, 2000);
141
    }
142
    [% END %]
143
    if( ! StrAlert ){
144
        document.f.submit();
145
        return true;
146
    } else {
147
        alert(StrAlert);
148
        return false;
149
    }
150
}
151
36
function Dopop(link,i) {
152
function Dopop(link,i) {
37
    defaultvalue = document.getElementById(i).value;
153
    defaultvalue = document.getElementById(i).value;
38
    window.open(link+"&result="+defaultvalue,"valuebuilder",'width=700,height=550,toolbar=false,scrollbars=yes');
154
    window.open(link+"&result="+defaultvalue,"valuebuilder",'width=700,height=550,toolbar=false,scrollbars=yes');
Lines 133-138 function AreMandatoriesNotOk(){ Link Here
133
            tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ;
249
            tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ;
134
            document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled');
250
            document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled');
135
            $('#' + mandatories[i]).focus();
251
            $('#' + mandatories[i]).focus();
252
            try {
253
                document.getElementById(mandatories[i]).focus();
254
            } catch (e) {}
136
            tabflag[tag+subfield+tagnumber][1]=label[i];
255
            tabflag[tag+subfield+tagnumber][1]=label[i];
137
            tabflag[tag+subfield+tagnumber][2]=tab[i];
256
            tabflag[tag+subfield+tagnumber][2]=tab[i];
138
        } else {
257
        } else {
Lines 245-250 function Changefwk(FwkList) { Link Here
245
    f.submit();
364
    f.submit();
246
}
365
}
247
366
367
function openAuth(tagsubfieldid,authtype) {
368
    // let's take the base of tagsubfield information (removing the indexes and the codes
369
    var element=document.getElementById(tagsubfieldid);
370
    var tagsubfield=getTagInputnameFilter(tagsubfieldid);
371
    var elementsubfcode=getSubfieldcode(element.name);
372
    var mainmainstring=element.value;
373
    var mainstring="";
374
    var inputs = element.parentNode.parentNode.getElementsByTagName("input");
375
376
    for (var myindex =0; myindex<inputs.length;myindex++){
377
        if (inputs[myindex].name && inputs[myindex].name.match(tagsubfield)){
378
            var subfieldcode=getSubfieldcode(inputs[myindex].name);
379
            if (isNaN(parseInt(subfieldcode)) && inputs[myindex].value != "" && subfieldcode!=elementsubfcode){
380
                mainstring=inputs[myindex].value+" "+mainstring;
381
            }
382
        }
383
    }
384
	newin=window.open("../authorities/auth_finder.pl?authtypecode="+  authtype+ "&index="+tagsubfieldid+"&value_mainstr="+encodeURI(mainmainstring)+"&value_main="+encodeURI(mainstring), "_blank",'width=700,height=550,toolbar=false,scrollbars=yes');
385
}
386
387
388
function ExpandField(index) {
389
    var original = document.getElementById(index); //original <div>
390
    var divs = original.getElementsByTagName('div');
391
    for(var i=0,divslen = divs.length ; i<divslen ; i++){      // foreach div
392
        if(divs[i].getAttribute('id').match(/^subfield/)){  // if it s a subfield
393
            if (divs[i].style.display == 'block') {
394
                divs[i].style.display = 'none';
395
            } else {
396
                divs[i].style.display = 'block';
397
            }
398
        }
399
    }
400
}
401
402
/**
403
 * To clone a field or a subfield by clicking on '+' button
404
 */
405
function CloneField(index) {
406
    var original = document.getElementById(index); //original <div>
407
    fields_in_use[index.substr(0, 7)]++;
408
    var clone = original.cloneNode(true);
409
    var new_key = CreateKey();
410
    var new_id  = original.getAttribute('id')+new_key;
411
412
    clone.setAttribute('id',new_id); // setting a new id for the parent div
413
414
    var divs = clone.getElementsByTagName('div');
415
416
    [% UNLESS ( hide_marc ) %] // No indicator if hide_marc
417
        // setting a new name for the new indicator
418
        for(var i=0; i < 2; i++) {
419
            var indicator = clone.getElementsByTagName('input')[i];
420
            indicator.setAttribute('name',indicator.getAttribute('name')+new_key);
421
        }
422
        [% IF ( DisplayPluginValueIndicators ) %]
423
            var linksInd   = clone.getElementsByTagName('a');
424
            var tagInd = clone.getAttribute('id').substr(4,3);
425
            var indexInd = original.getAttribute('id').substring(8, original.getAttribute('id').length);
426
            for ( j = 0 ; j < linksInd.length ; j++ ) {
427
                if (linksInd[j].name == "a_ind1" || linksInd[j].name == "a_ind2") {
428
                    if (document.all)
429
                        linksInd[j].onclick = function() { launchPopupValueIndicators('[% frameworkcode %]', 'biblio', tagInd, indexInd, new_key[% IF ( biblionumber ) %],[% biblionumber %][% END %])};
430
                    else
431
                        linksInd[j].setAttribute('onclick', "launchPopupValueIndicators('[% frameworkcode %]', 'biblio', '" + tagInd + "', '" + indexInd + "', '" + new_key + "'[% IF ( biblionumber ) %],[% biblionumber %][% END %])");
432
                }
433
            }
434
            [% END %]
435
    [% END %]
436
437
    // settings all subfields
438
    for(var i=0,divslen = divs.length ; i<divslen ; i++){      // foreach div
439
        if(divs[i].getAttribute("id").match(/^subfield/)){  // if it s a subfield
440
441
            // set the attribute for the new 'div' subfields
442
            divs[i].setAttribute('id',divs[i].getAttribute('id')+new_key);
443
444
            var inputs   = divs[i].getElementsByTagName('input');
445
            var id_input = "";
446
447
            for( j = 0 ; j < inputs.length ; j++ ) {
448
		if(inputs[j].getAttribute("id") && inputs[j].getAttribute("id").match(/^tag_/) ){
449
			inputs[j].value = "";
450
		}
451
            }
452
453
            inputs[0].setAttribute('id',inputs[0].getAttribute('id')+new_key);
454
            inputs[0].setAttribute('name',inputs[0].getAttribute('name')+new_key);
455
            var id_input;
456
            try {
457
		id_input = inputs[1].getAttribute('id')+new_key;
458
                inputs[1].setAttribute('id',id_input);
459
                inputs[1].setAttribute('name',inputs[1].getAttribute('name')+new_key);
460
            } catch(e) {
461
		try{ // it s a select if it is not an input
462
                    var selects = divs[i].getElementsByTagName('select');
463
                    id_input = selects[0].getAttribute('id')+new_key;
464
                    selects[0].setAttribute('id',id_input);
465
                    selects[0].setAttribute('name',selects[0].getAttribute('name')+new_key);
466
                }catch(e2){ // it is a textarea if it s not a select or an input
467
			var textaeras = divs[i].getElementsByTagName('textarea');
468
			id_input = textaeras[0].getAttribute('id')+new_key;
469
			textaeras[0].setAttribute('id',id_input);
470
                    textaeras[0].setAttribute('name',textaeras[0].getAttribute('name')+new_key);
471
                }
472
            }
473
474
            [% UNLESS ( advancedMARCEditor ) %]
475
            // when cloning a subfield, re set its label too.
476
            var labels = divs[i].getElementsByTagName('label');
477
            labels[0].setAttribute('for',id_input);
478
            [% END %]
479
480
            [% UNLESS ( hide_marc ) %]
481
                // updating javascript parameters on button up
482
                var imgs = divs[i].getElementsByTagName('img');
483
                imgs[0].setAttribute('onclick',"upSubfield(\'"+divs[i].getAttribute('id')+"\');");
484
            [% END %]
485
486
            // setting its '+' and '-' buttons
487
            try {
488
                var anchors = divs[i].getElementsByTagName('a');
489
                for (var j = 0; j < anchors.length; j++) {
490
                    if(anchors[j].getAttribute('class') == 'buttonPlus'){
491
                        anchors[j].setAttribute('onclick',"CloneSubfield('" + divs[i].getAttribute('id') + "')");
492
                    } else if (anchors[j].getAttribute('class') == 'buttonMinus') {
493
                        anchors[j].setAttribute('onclick',"UnCloneField('" + divs[i].getAttribute('id') + "')");
494
                    }
495
                }
496
            }
497
            catch(e){
498
                // do nothig if ButtonPlus & CloneButtonPlus don t exist.
499
            }
500
501
            // button ...
502
            var spans=0;
503
            try {
504
                spans = divs[i].getElementsByTagName('a');
505
            } catch(e) {
506
                // no spans
507
            }
508
            if(spans){
509
                var buttonDot;
510
                if(!CloneButtonPlus){ // it s impossible to have  + ... (buttonDot AND buttonPlus)
511
                    buttonDot = spans[0];
512
                    if(buttonDot){
513
                        // 2 possibilities :
514
                        try{
515
                            var buttonDotOnClick = buttonDot.getAttribute('onclick');
516
                            if(buttonDotOnClick.match('Clictag')){   // -1- It s a plugin
517
                                var re = /\('.*'\)/i;
518
                                buttonDotOnClick = buttonDotOnClick.replace(re,"('"+inputs[1].getAttribute('id')+"')");
519
                                if(buttonDotOnClick){
520
                                    buttonDot.setAttribute('onclick',buttonDotOnClick);
521
                                }
522
                            } else {
523
                                if(buttonDotOnClick.match('Dopop')) {  // -2- It's a auth value
524
                                    var re1 = /&index=.*',/;
525
                                    var re2 = /,.*\)/;
526
527
                                    buttonDotOnClick = buttonDotOnClick.replace(re1,"&index="+inputs[1].getAttribute('id')+"',");
528
                                    buttonDotOnClick = buttonDotOnClick.replace(re2,",'"+inputs[1].getAttribute('id')+"')");
529
530
                                    if(buttonDotOnClick){
531
                                            buttonDot.setAttribute('onclick',buttonDotOnClick);
532
                                    }
533
                                }
534
                            }
535
                            try {
536
				// do not copy the script section.
537
				var script = spans[0].getElementsByTagName('script')[0];
538
				spans[0].removeChild(script);
539
                            } catch(e) {
540
				// do nothing if there is no script
541
                            }
542
			}catch(e){}
543
			}
544
                }
545
            }
546
            [% UNLESS ( hide_marc ) %]
547
                var buttonUp = divs[i].getElementsByTagName('img')[0];
548
                buttonUp.setAttribute('onclick',"upSubfield('" + divs[i].getAttribute('id') + "')");
549
            [% END %]
550
551
        } else { // it's a indicator div
552
            if(divs[i].getAttribute('id').match(/^div_indicator/)){
553
                var inputs = divs[i].getElementsByTagName('input');
554
                inputs[0].setAttribute('id',inputs[0].getAttribute('id')+new_key);
555
                inputs[1].setAttribute('id',inputs[1].getAttribute('id')+new_key);
556
557
                var CloneButtonPlus;
558
                try {
559
                    var anchors = divs[i].getElementsByTagName('a');
560
                    for (var j = 0; j < anchors.length; j++) {
561
                        if (anchors[j].getAttribute('class') == 'buttonPlus') {
562
                            anchors[j].setAttribute('onclick',"CloneField('" + new_id + "')");
563
                        } else if (anchors[j].getAttribute('class') == 'buttonMinus') {
564
                            anchors[j].setAttribute('onclick',"UnCloneField('" + new_id + "')");
565
                        } else if (anchors[j].getAttribute('class') == 'expandfield') {
566
                            anchors[j].setAttribute('onclick',"ExpandField('" + new_id + "')");
567
                        }
568
                    }
569
                }
570
                catch(e){
571
                    // do nothig CloneButtonPlus doesn't exist.
572
                }
573
574
            }
575
        }
576
    }
577
578
    // insert this line on the page
579
    original.parentNode.insertBefore(clone,original.nextSibling);
580
}
581
582
function CloneSubfield(index){
583
    var original = document.getElementById(index); //original <div>
584
    fields_in_use[index.substr(0, 12)]++;
585
    var clone = original.cloneNode(true);
586
    var new_key = CreateKey();
587
    var new_id  = original.getAttribute('id')+new_key;
588
    // set the attribute for the new 'div' subfields
589
    var inputs     = clone.getElementsByTagName('input');
590
    var selects    = clone.getElementsByTagName('select');
591
    var textareas  = clone.getElementsByTagName('textarea');
592
    var linkid;
593
594
    // input
595
    var id_input = "";
596
    for(var i=0,len=inputs.length; i<len ; i++ ){
597
        id_input = inputs[i].getAttribute('id')+new_key;
598
        inputs[i].setAttribute('id',id_input);
599
        inputs[i].setAttribute('name',inputs[i].getAttribute('name')+new_key);
600
	linkid = id_input;
601
    }
602
603
    // select
604
    for(var i=0,len=selects.length; i<len ; i++ ){
605
        id_input = selects[i].getAttribute('id')+new_key;
606
        selects[i].setAttribute('id',selects[i].getAttribute('id')+new_key);
607
        selects[i].setAttribute('name',selects[i].getAttribute('name')+new_key);
608
    }
609
610
    // textarea
611
    for(var i=0,len=textareas.length; i<len ; i++ ){
612
        id_input = textareas[i].getAttribute('id')+new_key;
613
        textareas[i].setAttribute('id',textareas[i].getAttribute('id')+new_key);
614
        textareas[i].setAttribute('name',textareas[i].getAttribute('name')+new_key);
615
    }
616
617
    // Changing the "..." link's onclick attribute for plugin callback
618
    var links  = clone.getElementsByTagName('a');
619
    var link = links[0];
620
    var buttonDotOnClick = link.getAttribute('onclick');
621
    if(buttonDotOnClick.match('Clictag')){   // -1- It s a plugin
622
	var re = /\('.*'\)/i;
623
        buttonDotOnClick = buttonDotOnClick.replace(re,"('"+linkid+"')");
624
        if(buttonDotOnClick){
625
	    link.setAttribute('onclick',buttonDotOnClick);
626
        }
627
    }
628
629
630
    [% UNLESS ( advancedMARCEditor ) %]
631
    // when cloning a subfield, reset its label too.
632
    var label = clone.getElementsByTagName('label')[0];
633
    label.setAttribute('for',id_input);
634
    [% END %]
635
636
    // setting a new id for the parent div
637
    clone.setAttribute('id',new_id);
638
639
    try {
640
        var buttonUp = clone.getElementsByTagName('img')[0];
641
        buttonUp.setAttribute('onclick',"upSubfield('" + new_id + "')");
642
        var anchors = clone.getElementsByTagName('a');
643
        if(anchors.length){
644
            for(var i = 0 ,lenanchors = anchors.length ; i < lenanchors ; i++){
645
                if(anchors[i].getAttribute('class') == 'buttonPlus'){
646
                    anchors[i].setAttribute('onclick',"CloneSubfield('" + new_id + "')");
647
                } else if (anchors[i].getAttribute('class') == 'buttonMinus') {
648
                    anchors[i].setAttribute('onclick',"UnCloneField('" + new_id + "')");
649
                }
650
            }
651
        }
652
    }
653
    catch(e){
654
        // do nothig if ButtonPlus & CloneButtonPlus don't exist.
655
    }
656
    // insert this line on the page
657
    original.parentNode.insertBefore(clone,original.nextSibling);
658
}
659
660
 /**
661
 * This function removes or clears unwanted subfields
662
 */
663
function UnCloneField(index) {
664
    var original = document.getElementById(index);
665
    var field_id;
666
    if (index.match("tag")) {
667
        field_id = index.substr(0, 7);
668
    } else {
669
        field_id = index.substr(0, 12);
670
    }
671
    if (1 == fields_in_use[field_id]) {
672
        // clear inputs, but don't delete
673
        $(":input.input_marceditor", original).each(function(){
674
            // thanks to http://www.learningjquery.com/2007/08/clearing-form-data for
675
            // hint about clearing selects correctly
676
            var type = this.type;
677
            var tag = this.tagName.toLowerCase();
678
            if (type == 'text' || type == 'password' || tag == 'textarea') {
679
                this.value = "";
680
            } else if (type == 'checkbox' || type == 'radio') {
681
                this.checked = false;
682
            } else if (tag == 'select') {
683
                this.selectedIndex = -1;
684
            }
685
        });
686
        $(":input.indicator", original).val("");
687
    } else {
688
        original.parentNode.removeChild(original);
689
        fields_in_use[field_id]--;
690
    }
691
}
692
693
/**
694
 * This function create a random number
695
 */
696
function CreateKey(){
697
    return parseInt(Math.random() * 100000);
698
}
699
700
/**
701
 * This function allows to move a subfield up by clickink on the 'up' button .
702
 */
703
function upSubfield(index) {
704
    try{
705
        var line = document.getElementById(index); // get the line where the user has clicked.
706
    } catch(e) {
707
        return; // this line doesn't exist...
708
    }
709
    var tag = line.parentNode; // get the dad of this line. (should be "<div id='tag_...'>")
710
711
    // getting all subfields for this tag
712
    var subfields = tag.getElementsByTagName('div');
713
    var subfieldsLength = subfields.length;
714
715
    if(subfieldsLength<=1) return; // nothing to do if there is just one subfield.
716
717
    // among all subfields
718
    for(var i=0;i<subfieldsLength;i++){
719
        if(subfields[i].getAttribute('id') == index){ //looking for the subfield which is clicked :
720
            if(i==1){ // if the clicked subfield is on the top
721
                tag.appendChild(subfields[1]);
722
                return;
723
            } else {
724
                var lineAbove = subfields[i-1];
725
                tag.insertBefore(line,lineAbove);
726
                return;
727
            }
728
        }
729
    }
730
}
731
732
function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
733
    subfield = document.getElementById(index);
734
    subfield.style.display = 'block';
735
    label = document.getElementById(labelindex);
736
    label.style.display='none';
737
}
248
//]]>
738
//]]>
249
</script>
739
</script>
250
<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" />
740
<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" />
Lines 452-471 function Changefwk(FwkList) { Link Here
452
                        maxlength="1"
942
                        maxlength="1"
453
                        value="[% innerloo.indicator2 %]" />
943
                        value="[% innerloo.indicator2 %]" />
454
                [% ELSE %]
944
                [% ELSE %]
455
                    <input type="text"
945
		        <input tabindex="1" class="indicator flat" type="text" name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" size="1" maxlength="1" value="[% innerloo.indicator1 %]" />
456
                        tabindex="1"
946
                    [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind1"
457
                        class="indicator flat"
947
onclick="launchPopupValueIndicators('[% frameworkcode %]', 'biblio', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( biblionumber ) %],[% biblionumber %][% END %])" title="Show plugin with allowed values for indicator 1 on field [% innerloo.tag %]">...</a>[% END %]
458
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
948
		        <input tabindex="1" class="indicator flat" type="text" name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" size="1" maxlength="1" value="[% innerloo.indicator2 %]" />
459
                        size="1"
949
                    [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind2"
460
                        maxlength="1"
950
onclick="launchPopupValueIndicators('[% frameworkcode %]', 'biblio', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( biblionumber ) %],[% biblionumber %][% END %])" title="Show plugin with allowed values for indicator 2 on field [% innerloo.tag %]">...</a>[% END %]
461
                        value="[% innerloo.indicator1 %]" />
462
                    <input type="text"
463
                        tabindex="1"
464
                        class="indicator flat"
465
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
466
                        size="1"
467
                        maxlength="1"
468
                        value="[% innerloo.indicator2 %]" />
469
                [% END %] -
951
                [% END %] -
470
        [% ELSE %]
952
        [% ELSE %]
471
                [% IF ( innerloo.fixedfield ) %]
953
                [% IF ( innerloo.fixedfield ) %]
Lines 478-491 function Changefwk(FwkList) { Link Here
478
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
960
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
479
                        value="[% innerloo.indicator2 %]" />
961
                        value="[% innerloo.indicator2 %]" />
480
                [% ELSE %]
962
                [% ELSE %]
481
                    <input type="hidden"
963
                    <input tabindex="1" type="hidden" name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]" value="[% innerloo.indicator1 %]" />
482
                        tabindex="1"
964
                    [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind1"
483
                        name="tag_[% innerloo.tag %]_indicator1_[% innerloo.index %][% innerloo.random %]"
965
onclick="launchPopupValueIndicators('[% frameworkcode %]', 'biblio', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( biblionumber ) %],[% biblionumber %][% END %])" title="Show plugin with allowed values for indicator 1 on field [% innerloo.tag %]">...</a>[% END %]
484
                        value="[% innerloo.indicator1 %]" />
966
                    <input tabindex="1" type="hidden" name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]" value="[% innerloo.indicator2 %]" />
485
                    <input type="hidden"
967
                    [% IF ( DisplayPluginValueIndicators ) %]<a href="javascript:void(0)" name="a_ind2"
486
                        tabindex="1"
968
onclick="launchPopupValueIndicators('[% frameworkcode %]', 'biblio', '[% innerloo.tag %]', '[% innerloo.index %]', '[% innerloo.random %]'[% IF ( biblionumber ) %],[% biblionumber %][% END %])" title="Show plugin with allowed values for indicator 2 on field [% innerloo.tag %]">...</a>[% END %]
487
                        name="tag_[% innerloo.tag %]_indicator2_[% innerloo.index %][% innerloo.random %]"
488
                        value="[% innerloo.indicator2 %]" />
489
                [% END %]
969
                [% END %]
490
        [% END %]
970
        [% END %]
491
971
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/marc21_indicators.tt (-1 / +196 lines)
Line 0 Link Here
0
- 
1
[% INCLUDE 'doc-head-open.inc' %]
2
        <title>Koha &rsaquo; Cataloging &rsaquo; [% IF ( biblionumber ) %]Editing Indicators for [% title |html %] (Record Number [% biblionumber %])[% ELSE %]Editing Indicators for Add MARC Record[% END %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
    <script type="text/javascript" src='[% themelang %]/js/indicators.js'></script>
5
6
    <script type="text/javascript">
7
        var tagfieldArr = new Array();
8
        var tagfieldloop;
9
        [% FOREACH INDICATORS_LOO IN INDICATORS_LOOP %]
10
        tagfieldloop = '[% INDICATORS_LOO.tagfield %]';
11
        tagfieldArr[tagfieldloop] = new Array();
12
        tagfieldArr[tagfieldloop]["current_field_1"] = '[% INDICATORS_LOO.current_field_1 %]';
13
        tagfieldArr[tagfieldloop]["current_field_2"] = '[% INDICATORS_LOO.current_field_2 %]';
14
        [% END %]
15
        var sendingAjax = false;
16
17
        $(document).ready(function() {
18
            $('.table_ind_values').hide();
19
            for (tagfieldloop in tagfieldArr) {
20
                checkValueInd(tagfieldloop + "_ind1", 1, tagfieldloop);
21
                checkValueInd(tagfieldloop + "_ind2", 2, tagfieldloop);
22
            }
23
            $(".view_table").click(function() {
24
                var id = $(this).attr("id");
25
                var tagfield = id.substring(0, id.indexOf("_"));
26
                var table_ind_values = $('#' + tagfield + '_table_ind_values');
27
                if (table_ind_values.css("display") == 'none') {
28
                    table_ind_values.show('slide');
29
                    $(this).attr("title", 'Hide ' + $(this).html());
30
                } else {
31
                    table_ind_values.fadeOut('fast');
32
                    $(this).attr("title", 'Show ' + $(this).html());
33
                }
34
            });
35
            $(".view_table").mouseover(function() {
36
                var id = $(this).attr("id");
37
                var tagfield = id.substring(0, id.indexOf("_"));
38
                var table_ind_values = $('#' + tagfield + '_table_ind_values');
39
                $(this).attr("title", (table_ind_values.css("display") == 'block')?'Hide ':'Show '); $(this).attr("title",  $(this).attr("title") + $(this).html());
40
            });
41
            $(".input_ind").keyup(function() {
42
                var id = $(this).attr("id");
43
                var ind = parseInt(id.charAt(id.length - 1) ,10);
44
                var tagfield = id.substring(0, id.indexOf("_"));
45
                checkValueInd(id, ind, tagfield);
46
            });
47
            $(".btn_usevalue").click(function() {
48
                var id = $(this).attr("id");
49
                var ind = parseInt(id.charAt(id.length - 1) ,10);
50
                var tagfield = id.substring(0, id.indexOf("_"));
51
                useValue(ind, tagfield, (ind == 1)?tagfieldArr[tagfield]["current_field_1"]:tagfieldArr[tagfield]["current_field_2"], true);
52
            });
53
            $(".btn_usevalue3").click(function() {
54
                var id = $(this).attr("id");
55
                var tagfield = id.substring(0, id.indexOf("_"));
56
                useValues(tagfield, tagfieldArr[tagfield]["current_field_1"], tagfieldArr[tagfield]["current_field_2"]);
57
            });
58
            $(".select_ind").change(function() {
59
                var id = $(this).attr("id");
60
                var ind = parseInt(id.charAt(id.length - 1) ,10);
61
                var tagfield = id.substring(0, id.indexOf("_"));
62
                var obj = $("#" + id + " option:selected");
63
                var value = obj.val();
64
                if (value == "#son#") {
65
                    var index = $("#" + id + " option").index(obj) - 1;
66
                    while (index >= 0) {
67
                        obj = $("#" + id + " option:eq(" + index + ")");
68
                        value = obj.val();
69
                        if (value != "#son#") break;
70
                        index--;
71
                    }
72
                    obj.attr("selected", "selected");
73
                }
74
                changeValueInd(value, ind, tagfield, tagfieldArr[tagfield]["current_field_1"], tagfieldArr[tagfield]["current_field_2"]);
75
            });
76
            $(".reload_xml_opener").click(function() {
77
                if (!sendingAjax) {
78
                    sendingAjax = true;
79
                    try {
80
                        window.opener.errorAjax = false;
81
                        send_ajax_indicators('[% code %]', '[% type %]', true);
82
                    } catch (e) {
83
                        try { // for HTML5 browsers that don't allow accessing/changing variables to the opener
84
                            var origin = location.protocol + '//' + location.hostname + ((location.port)?':' + location.port:'');
85
                            window.opener.postMessage('indicators: errorAjax = false;', origin);
86
                            window.opener.postMessage('indicators: send_ajax_indicators = ', origin);
87
                        } catch (e) {
88
                            sendingAjax = false;
89
                            return;
90
                        }
91
                    }
92
                    if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) {
93
                        var timestamp = new Date().getTime();
94
                        $('.reloading').find("img").attr('src', '/intranet-tmpl/prog/img/loading.gif' + '?' +timestamp);
95
                    }
96
                    $('.reloading').css('display', 'block');
97
                }
98
            });
99
        });
100
    </script>
101
    </head>
102
    <body>
103
        <div id="doc3" class="yui-t2">
104
        <div id="bd">
105
        <div id="yui-main">
106
        <div class="yui-b">
107
        <h1>Cataloging  &rsaquo; [% IF ( biblionumber ) %]Editing Indicators for <em>[% title |html %]</em> (Record Number [% biblionumber %])[% ELSE %]Indicators for Add MARC Record[% END %]</h1>
108
        <form name="f_pop" id="f_pop" action="">
109
            <ul>
110
                [% FOREACH INDICATORS_LOO IN INDICATORS_LOOP %]
111
                <li><h2>Field [% INDICATORS_LOO.tagfield %]: [% INDICATORS_LOO.desc %]</h2></li>
112
113
                <li><label for="[% INDICATORS_LOO.tagfield %]_ind1">User Value for Indicator 1:</label>
114
                <input type="text" name="[% INDICATORS_LOO.tagfield %]_ind1" id="[% INDICATORS_LOO.tagfield %]_ind1" value="[% INDICATORS_LOO.current_value_1 %]" size="1" maxlength="1" class="input_ind" />
115
                <input type="button" id="[% INDICATORS_LOO.tagfield %]_btn_usevalue_1" title="Use this  value and close the window" class="btn_usevalue" value="Use and Close" />
116
                </li>
117
                <li><label for="[% INDICATORS_LOO.tagfield %]_ind2">User Value for Indicator 2: </label>
118
                <input type="text" name="[% INDICATORS_LOO.tagfield %]_ind2" id="[% INDICATORS_LOO.tagfield %]_ind2" value="[% INDICATORS_LOO.current_value_2 %]" size="1" maxlength="1" class="input_ind" />
119
120
                <input type="button" id="[% INDICATORS_LOO.tagfield %]_btn_usevalue_2" title="Use this  value and close the window" class="btn_usevalue" value="Use and Close" />
121
                </li>
122
                <li><input type="button" id="[% INDICATORS_LOO.tagfield %]_btn_usevalue_3" title="Use these values and close the window" class="btn_usevalue3" value="Use both and Close" />&nbsp;&nbsp;<a href="javascript:void(0);" onclick="window.close();" title="Close the window">Close</a></li>
123
                <li><a href="javascript:void(0);" title="Reload this page and the javascript xml data for validation of indicators value in the addbiblio window. Useful if you've made changes in the framework's indicators and don't want to reload the addbiblio page to realize them." class="reload_xml_opener">Reload validation in opener</a><div style="display:none" class="reloading"><img src="/intranet-tmpl/prog/img/loading.gif" />&nbsp;Reloading...</div></li>
124
                [% IF ( INDICATORS_LOO.data ) %]
125
                    <li><h3 style="text-decoration: underline">Predefined values</h3></li>
126
                    <li>
127
                    <ul>
128
                        <li><label for="[% INDICATORS_LOO.tagfield %]_select_ind1">Indicator 1</label>
129
                            <select name="[% INDICATORS_LOO.tagfield %]_select_ind1" id="[% INDICATORS_LOO.tagfield %]_select_ind1" title="Choose an option to change the value on indicator 1 for field [% INDICATORS_LOO.tagfield %]" class="select_ind">
130
                                <option value="">Choose an option to change the value</option>
131
                                [% FOREACH dat IN INDICATORS_LOO.data %]
132
                                    [% IF ( dat.ind == 1 ) %]
133
                                    [% IF ( dat.ind_value == "#son#" ) %]
134
                                    <option value="[% dat.ind_value %]">&nbsp;&nbsp;&nbsp;[% dat.desc_partial %]</option>
135
                                    [% ELSIF ( dat.desc_partial ) %]
136
                                    <option value="[% dat.ind_value %]">&quot;[% dat.ind_value %]&quot;: [% dat.desc_partial %]</option>
137
                                    [% ELSE %]
138
                                    <option value="[% dat.ind_value %]">&quot;[% dat.ind_value %]&quot;: [% dat.ind_desc %]</option>
139
                                    [% END %]
140
                                    [% END %]
141
                                [% END %]
142
                            </select>
143
                        </li>
144
                        <li>&nbsp;</li>
145
                        <li><label for="[% INDICATORS_LOO.tagfield %]_select_ind2">Indicator 2</label>
146
                            <select name="[% INDICATORS_LOO.tagfield %]_select_ind2" id="[% INDICATORS_LOO.tagfield %]_select_ind2" title="Choose an option to change the value on indicator 2 for field [% INDICATORS_LOO.tagfield %]" class="select_ind">
147
                                <option value="">Choose an option to change the value</option>
148
                                [% FOREACH dat IN INDICATORS_LOO.data %]
149
                                    [% IF ( dat.ind == 2 ) %]
150
                                    <option value="[% dat.ind_value %]">&quot;[% dat.ind_value %]&quot;: [% dat.ind_desc %]</option>
151
                                    [% END %]
152
                                [% END %]
153
                            </select>
154
                        </li>
155
                        <li>&nbsp;</li>
156
                        <li><a href="#" id="[% INDICATORS_LOO.tagfield %]_view_table" class="view_table">View values as a table</a></li>
157
                        <li>&nbsp;</li>
158
                        <li>
159
                        <table id="[% INDICATORS_LOO.tagfield %]_table_ind_values" class="table_ind_values">
160
                            <thead>
161
                                <th>Indicator</th>
162
                                <th>Description</th>
163
                                <th>Value</th>
164
                                <th>Action</th>
165
                            </thead>
166
                            <tbody>
167
                            [% FOREACH dat IN INDICATORS_LOO.data %]
168
                                [% IF ( dat.ind_value != "#son#" ) %]
169
                                <tr>
170
                                    <td>[% dat.ind %]</td>
171
                                    <td>[% dat.ind_desc %]</td>
172
                                    <td>&quot;[% dat.ind_value %]&quot;</td>
173
                                    <td><a href="javascript:void(0)" onclick="changeValueInd('[% dat.ind_value %]', [% dat.ind %], '[% INDICATORS_LOO.tagfield %]', '[% INDICATORS_LOO.current_field_1 %]', '[% INDICATORS_LOO.current_field_2 %]');" title="Use this value [% dat.ind_value %] on indicator [% dat.ind %] for field [% INDICATORS_LOO.tagfield %]">Use this value</a></td>
174
                                    <input type="hidden" name="[% INDICATORS_LOO.tagfield %]_[% dat.ind %]_[% dat.id_indicator_value %]" id="[% INDICATORS_LOO.tagfield %]_[% dat.ind %]_[% dat.id_indicator_value %]" value="[% dat.ind_value %]" />
175
                                </tr>
176
                                [% END %]
177
                            [% END %]
178
                            </tbody>
179
                        </table>
180
                        </li>
181
                    </ul>
182
                    </li>
183
                [% ELSE %]
184
                <li>
185
                There aren't predefined values for this field
186
                </li>
187
                [% END %]
188
                [% END %]
189
            </ul>
190
        </form>
191
        </div>
192
        </div>
193
        </div>
194
        </div>
195
    </body>
196
</html>

Return to bug 4888