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

(-)a/C4/Indicators.pm (+791 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
      &GetFrameworks
34
      &CloneIndicatorsFramework
35
      &GetIndicatorsFramework
36
      &DelIndicatorsFramework
37
      &GetDataFieldMarc
38
      &GetIndicator
39
      &AddIndicator
40
      &DelIndicator
41
      &AddIndicatorValue
42
      &DelIndicatorValue
43
      &ModIndicatorValue
44
      &ModIndicatorDesc
45
      &GetValuesIndicator
46
      &GetValuesIndicatorFrameWork
47
      &GetLanguagesIndicators
48
      &binarySearch
49
      &CheckValueIndicatorsSub
50
    );
51
}
52
53
=head1 NAME
54
55
C4::Indicators - Indicators Module Functions
56
57
=head1 SYNOPSIS
58
59
  use C4::Indicators;
60
61
=head1 DESCRIPTION
62
63
Module to manage indicators on intranet cataloguing section
64
65
Module to manage indicators on the intranet cataloguing section
66
applying the rules of MARC21 according to the Library of Congress
67
http://www.loc.gov/marc/bibliographic/ecbdhome.html
68
69
Functions for handling indicators on cataloguing.
70
71
72
=head1 SUBROUTINES
73
74
75
76
77
=head2 GetFrameworks
78
79
Returns information about existing frameworks with indicators
80
81
=cut
82
83
sub GetFrameworks
84
{
85
86
    my $frameworkcode = shift;
87
88
    my @frameworks;
89
    my $dbh = C4::Context->dbh;
90
    if ($dbh) {
91
        eval {
92
            my $sth = $dbh->prepare("SELECT b.* FROM biblio_framework b , marc_indicators i WHERE b.frameworkcode<>? AND b.frameworkcode=i.frameworkcode GROUP BY frameworkcode");
93
            $sth->execute($frameworkcode);
94
            while ( my $iter = $sth->fetchrow_hashref ) {
95
                push @frameworks, $iter;
96
            }
97
        };
98
    }
99
    return ( \@frameworks );
100
}#GetFrameworks
101
102
103
104
105
=head2 CloneIndicatorsFramework
106
107
Clone all the indicators from one framework to another one
108
109
return :
110
the new frameworkcode
111
112
=cut
113
114
115
sub CloneIndicatorsFramework
116
{
117
    my ($frameworkcodeSource, $frameworkcodeDest) = @_;
118
119
    my $indicators = GetIndicatorsFramework($frameworkcodeSource);
120
    my $hashRefSource;
121
    my ($id_indicator, $id_indicator_value);
122
    for $hashRefSource (@$indicators) {
123
        if (GetDataFieldMarc($hashRefSource->{tagfield}, $frameworkcodeDest)) {
124
            $id_indicator = AddIndicator($hashRefSource->{tagfield}, $frameworkcodeDest);
125
            if ($id_indicator) {
126
                my ($id_indicator_old, $data) = GetValuesIndicator($hashRefSource->{id_indicator}, $hashRefSource->{tagfield}, $frameworkcodeSource);
127
                for (@$data) {
128
                    $id_indicator_value = AddIndicatorValue($id_indicator, $hashRefSource->{tagfield}, $frameworkcodeDest, $_->{ind}, $_->{ind_value}, $_->{ind_desc}, $_->{lang});
129
                }
130
            }
131
        }
132
    }
133
    return $frameworkcodeDest;
134
}#CloneIndicatorsFramework
135
136
137
138
=head2 GetIndicatorsFramework
139
140
Get all the indicators from a framework
141
142
return :
143
an array of hash data
144
145
=cut
146
147
148
sub GetIndicatorsFramework
149
{
150
    my ($frameworkcode) = @_;
151
152
    my @data;
153
    my $dbh = C4::Context->dbh;
154
    if ($dbh) {
155
        eval {
156
            my $query = qq|SELECT id_indicator, tagfield FROM marc_indicators WHERE frameworkcode=?|;
157
            my $sth = $dbh->prepare($query);
158
            $sth->execute($frameworkcode);
159
            my $hashRef;
160
            while ($hashRef = $sth->fetchrow_hashref) {
161
                push @data, $hashRef;
162
            }
163
        };
164
        if ($@) {
165
            $debug and warn "Error GetIndicatorsFramework $@\n";
166
        }
167
    }
168
    return \@data;
169
}#GetIndicatorsFramework
170
171
172
173
=head2 DelIndicatorsFramework
174
175
Delete indicators in a specific framework
176
177
return :
178
the success of the operation
179
180
=cut
181
182
183
sub DelIndicatorsFramework
184
{
185
    my ($frameworkcode) = @_;
186
187
    my $dbh = C4::Context->dbh;
188
    if ($dbh) {
189
        eval {
190
            my $query = qq|DELETE FROM marc_indicators
191
                WHERE frameworkcode=?|;
192
            my $sth = $dbh->prepare($query);
193
            $sth->execute($frameworkcode);
194
        };
195
        if ($@) {
196
            $debug and warn "Error DelIndicatorsFramework $@\n";
197
        } else {
198
            return 1;
199
        }
200
    }
201
    return 0;
202
}#DelIndicatorsFramework
203
204
205
206
=head2 GetDataFieldMarc
207
208
Get the data from marc_tag_structure for a field in a specific framework
209
210
return :
211
the data hash for the datafield
212
213
=cut
214
215
216
sub GetDataFieldMarc
217
{
218
    my ($tagfield, $frameworkcode) = @_;
219
220
    my $data = {};
221
    my $dbh = C4::Context->dbh;
222
    if ($dbh) {
223
        eval {
224
            my $query = qq|SELECT tagfield,liblibrarian,libopac,mandatory,repeatable 
225
                            FROM marc_tag_structure 
226
                            WHERE frameworkcode=? AND tagfield=?|;
227
            my $sth = $dbh->prepare($query);
228
            $sth->execute($frameworkcode, $tagfield);
229
            $data = $sth->fetchrow_hashref;
230
        };
231
        if ($@) {
232
            $debug and warn "Error GetDataFieldMarc $@\n";
233
        }
234
    }
235
    return $data;
236
}#GetDataFieldMarc
237
238
239
240
=head2 GetIndicator
241
242
Get the indicator id from a field in a specific framework
243
244
return :
245
the id of this indicator
246
247
=cut
248
249
250
sub GetIndicator
251
{
252
    my ($tagfield, $frameworkcode) = @_;
253
254
    my $id_indicator;
255
    my $dbh = C4::Context->dbh;
256
    if ($dbh) {
257
        eval {
258
            my $query;
259
            my $sth;
260
            if ($frameworkcode) {
261
                $query = qq|SELECT id_indicator
262
                    FROM marc_indicators
263
                    WHERE tagfield=? AND frameworkcode=?|;
264
                $sth = $dbh->prepare($query);
265
                $sth->execute($tagfield, $frameworkcode);
266
            } else {
267
                $query = qq|SELECT id_indicator
268
                    FROM marc_indicators
269
                    WHERE tagfield=? AND frameworkcode=''|;
270
                $sth = $dbh->prepare($query);
271
                $sth->execute($tagfield);
272
            }
273
            ($id_indicator) = $sth->fetchrow;
274
        };
275
        if ($@) {
276
            $debug and warn "Error GetIndicator $@\n";
277
        }
278
    }
279
    return $id_indicator;
280
}#GetIndicator
281
282
283
284
=head2 AddIndicator
285
286
Adds a new indicator to a field in a specific framework
287
288
return :
289
the id of this new indicator
290
291
=cut
292
293
294
sub AddIndicator
295
{
296
    my ($tagfield, $frameworkcode) = @_;
297
298
    my $id_indicator;
299
    my $dbh = C4::Context->dbh;
300
    if ($dbh) {
301
        eval {
302
            my $query = qq|INSERT INTO marc_indicators
303
                (tagfield,frameworkcode) VALUES (?,?)|;
304
            my $sth = $dbh->prepare($query);
305
            $sth->execute($tagfield, $frameworkcode);
306
            if ($sth->rows > 0) {
307
                $id_indicator = $dbh->{'mysql_insertid'};
308
            }
309
        };
310
        if ($@) {
311
            $debug and warn "Error AddIndicator $@\n";
312
        }
313
    }
314
    return $id_indicator;
315
}#AddIndicator
316
317
318
319
=head2 DelIndicator
320
321
Delete a new indicator to a field in a specific framework
322
323
return :
324
the success of the operation
325
326
=cut
327
328
329
sub DelIndicator
330
{
331
    my ($id_indicator, $tagfield, $frameworkcode) = @_;
332
333
    my $ret;
334
    my $dbh = C4::Context->dbh;
335
    if ($dbh) {
336
        eval {
337
            my $query;
338
            my @arrParams;
339
            if ($id_indicator){
340
                $query = qq|DELETE FROM marc_indicators
341
                WHERE id_indicator=?|;
342
                push @arrParams, $id_indicator;
343
            } else {
344
                $query = qq|DELETE FROM marc_indicators
345
                WHERE tagfield=? AND frameworkcode=?|;
346
                @arrParams = ($tagfield, $frameworkcode);
347
            }
348
            my $sth = $dbh->prepare($query);
349
            $sth->execute(@arrParams);
350
            $ret = 1;
351
        };
352
        if ($@) {
353
            $debug and warn "Error DelIndicator $@\n";
354
        }
355
    }
356
    return $ret;
357
}#DelIndicator
358
359
360
361
=head2 AddIndicatorValue
362
363
Adds a new indicator value and (if defined) description to a field in a specific framework
364
365
return :
366
the id of this new indicator value
367
368
=cut
369
370
371
sub AddIndicatorValue
372
{
373
    my ($id_indicator, $tagfield, $frameworkcode, $index, $value, $desc, $lang) = @_;
374
375
    my $id_indicator_value;
376
    my $dbh = C4::Context->dbh;
377
    if ($dbh) {
378
        $id_indicator = GetIndicator($tagfield, $frameworkcode) unless ($id_indicator);
379
        $id_indicator = AddIndicator($tagfield, $frameworkcode) unless ($id_indicator);
380
        eval {
381
            my $query = qq|INSERT INTO marc_indicators_value
382
                (id_indicator,ind,ind_value) VALUES (?,?,?)|;
383
            my $sth = $dbh->prepare($query);
384
            $sth->execute($id_indicator, $index, $value);
385
            if ($sth->rows > 0) {
386
                $id_indicator_value = $dbh->{'mysql_insertid'};
387
                if ($id_indicator_value && $desc) {
388
                    $query = qq|INSERT INTO marc_indicators_desc 
389
                        (id_indicator_value,lang,ind_desc) VALUES (?,?,?)|;
390
                    $lang = 'en' unless ($lang);
391
                    my $sth2 = $dbh->prepare($query);
392
                    $sth2->execute($id_indicator_value, $lang, $desc);
393
                }
394
            }
395
        };
396
        if ($@) {
397
            #print $@;
398
            $debug and warn "Error AddIndicatorValue $@\n";
399
        }
400
    }
401
    return $id_indicator_value;
402
}#AddIndicatorValue
403
404
405
406
=head2 DelIndicatorValue
407
408
Delete a new indicator value in a framework field
409
410
return :
411
the success of the operation
412
413
=cut
414
415
416
sub DelIndicatorValue
417
{
418
    my ($id_indicator_value) = @_;
419
420
    my $ret;
421
    my $dbh = C4::Context->dbh;
422
    if ($dbh) {
423
        eval {
424
            my $query = qq|DELETE FROM marc_indicators_value
425
                WHERE id_indicator_value=?|;
426
            my $sth = $dbh->prepare($query);
427
            $sth->execute($id_indicator_value);
428
            $ret = 1;
429
        };
430
        if ($@) {
431
            $debug and warn "Error DelIndicatorValue $@\n";
432
        }
433
    }
434
    return $ret;
435
}#DelIndicatorValue
436
437
438
439
=head2 ModIndicatorValue
440
441
Modify a indicator value in a framework field
442
443
return :
444
the success of the operation
445
446
=cut
447
448
449
sub ModIndicatorValue
450
{
451
    my ($id_indicator_value, $value, $desc, $lang, $ind) = @_;
452
453
    my $ret;
454
    my $dbh = C4::Context->dbh;
455
    if ($dbh) {
456
        eval {
457
            my $query = qq|UPDATE marc_indicators_value
458
                SET ind_value=?, ind=?
459
                WHERE id_indicator_value=?|;
460
            my $sth = $dbh->prepare($query);
461
            $sth->execute($value, $ind, $id_indicator_value);
462
            if ($desc) {
463
                $ret = ModIndicatorDesc($id_indicator_value, $desc, $lang);
464
            } else {
465
                $ret = 1;
466
            }
467
        };
468
        if ($@) {
469
            $debug and warn "Error ModIndicatorValue $@\n";
470
        }
471
    }
472
    return $ret;
473
}#ModIndicatorValue
474
475
476
477
=head2 ModIndicatorDesc
478
479
Modify a indicator description in a framework field and language
480
481
return :
482
the success of the operation
483
484
=cut
485
486
487
sub ModIndicatorDesc
488
{
489
    my ($id_indicator_value, $desc, $lang) = @_;
490
491
    my $ret;
492
    my $dbh = C4::Context->dbh;
493
    if ($dbh) {
494
        eval {
495
            my $query = qq|SELECT COUNT(*) FROM marc_indicators_desc
496
                WHERE id_indicator_value=? AND lang=?|;
497
            my $sth = $dbh->prepare($query);
498
            $sth->execute($id_indicator_value, $lang);
499
            my ($num) = $sth->fetchrow;
500
            $sth->finish;
501
            if ($num) {
502
                $query = qq|UPDATE marc_indicators_desc
503
                SET ind_desc=?
504
                WHERE id_indicator_value=? AND lang=?|;
505
                $sth = $dbh->prepare($query);
506
                $sth->execute($desc, $id_indicator_value, $lang);
507
            } else {
508
                $query = qq|INSERT INTO marc_indicators_desc 
509
                        (id_indicator_value,lang,ind_desc) VALUES (?,?,?)|;
510
                $sth = $dbh->prepare($query);
511
                $sth->execute($id_indicator_value, $lang, $desc);
512
            }
513
            $ret = 1;
514
        };
515
        if ($@) {
516
            $debug and warn "Error ModIndicatorDesc $@\n";
517
        }
518
    }
519
    return $ret;
520
}#ModIndicatorDesc
521
522
523
524
=head2 GetValuesIndicator
525
526
Get distinct values and descriptions from framework field
527
528
return :
529
the id of the indicator and an array structure with the data required
530
531
=cut
532
533
534
sub GetValuesIndicator
535
{
536
    my ($id_indicator, $tagfield, $frameworkcode, $lang) = @_;
537
538
    my @data;
539
    my $dbh = C4::Context->dbh;
540
    if ($dbh) {
541
        $id_indicator = GetIndicator($tagfield, $frameworkcode) unless ($id_indicator);
542
        if ($id_indicator) {
543
            eval {
544
                my $query;
545
                my $sth;
546
                if ($lang) {
547
                    $query = qq|(SELECT v.id_indicator_value, v.ind, v.ind_value, d.ind_desc, d.lang
548
                            FROM marc_indicators_value v, marc_indicators_desc d
549
                            WHERE v.id_indicator=? AND d.id_indicator_value=v.id_indicator_value AND d.lang=?
550
                            )
551
                    UNION
552
                        (SELECT v.id_indicator_value, v.ind, v.ind_value, NULL AS ind_desc, NULL AS lang
553
                            FROM marc_indicators_value v
554
                            WHERE v.id_indicator=? AND NOT EXISTS (SELECT d.* FROM marc_indicators_desc d WHERE d.id_indicator_value=v.id_indicator_value))
555
                        ORDER BY ind, ind_value|;
556
                    $sth = $dbh->prepare($query);
557
                    $sth->execute($id_indicator, $lang, $id_indicator);
558
                } else {
559
                    $query = qq|SELECT v.id_indicator_value, v.ind, v.ind_value, d.ind_desc, d.lang
560
                        FROM marc_indicators_value v
561
                        LEFT JOIN marc_indicators_desc d ON d.id_indicator_value=v.id_indicator_value
562
                        WHERE v.id_indicator=?
563
                        ORDER BY v.ind, v.ind_value|;
564
                    $sth = $dbh->prepare($query);
565
                    $sth->execute($id_indicator);
566
                }
567
                while (my $hashRef = $sth->fetchrow_hashref) {
568
                    push @data, $hashRef;
569
                }
570
            };
571
            if ($@) {
572
                $debug and warn "Error GetValuesIndicator $@\n";
573
            }
574
        }
575
    }
576
    return ($id_indicator, \@data);
577
}#GetValuesIndicator
578
579
580
581
=head2 GetValuesIndicatorFrameWork
582
583
Get distinct values and descriptions from framework template
584
585
return :
586
the frameworkcode and an hash structure with the data required
587
588
=cut
589
590
591
sub GetValuesIndicatorFrameWork
592
{
593
    my ($frameworkcode, $tagfieldsArrRef, $lang) = @_;
594
595
    my %data;
596
    my $dbh = C4::Context->dbh;
597
    if ($dbh) {
598
        unless ($tagfieldsArrRef && @$tagfieldsArrRef) {
599
            $tagfieldsArrRef = [];
600
            eval {
601
                my $query;
602
                my $sth;
603
                if ($frameworkcode) {
604
                    $query = qq|SELECT tagfield FROM marc_tag_structure
605
                        WHERE tagfield NOT LIKE '00%' AND frameworkcode=?|;
606
                    $sth = $dbh->prepare($query);
607
                    $sth->execute($frameworkcode);
608
                } else {
609
                    $query = qq|SELECT tagfield FROM marc_tag_structure
610
                        WHERE tagfield NOT LIKE '00%' AND frameworkcode=''|;
611
                    $sth = $dbh->prepare($query);
612
                    $sth->execute();
613
                }
614
                my $tagfield;
615
                while (($tagfield) = $sth->fetchrow) {
616
                    push @$tagfieldsArrRef, $tagfield;
617
                }
618
            };
619
        }
620
        for (@$tagfieldsArrRef) {
621
            my ($id_indicator, $dataInd) = GetValuesIndicator(undef, $_, $frameworkcode, $lang);
622
            $data{$_} = $dataInd;
623
        }
624
        if ($@) {
625
            $debug and warn "Error GetValuesIndicatorFrameWork $@\n";
626
        }
627
    }
628
    return ($frameworkcode, \%data);
629
}#GetValuesIndicatorFrameWork
630
631
632
633
=head2 GetLanguagesIndicators
634
635
Get distinct languages from indicators descriptions
636
637
return :
638
the languages as a sorted array
639
640
=cut
641
642
643
sub GetLanguagesIndicators
644
{
645
    my @languages;
646
    my $dbh = C4::Context->dbh;
647
    if ($dbh) {
648
        eval {
649
            my $query = qq|SELECT DISTINCT lang FROM marc_indicators_desc ORDER BY lang|;
650
            my $sth = $dbh->prepare($query);
651
            $sth->execute();
652
            my $lang;
653
            while (($lang) = $sth->fetchrow) {
654
                push @languages, $lang;
655
            }
656
        };
657
        if ($@) {
658
            $debug and warn "Error GetLanguagesIndicators $@\n";
659
        }
660
    }
661
    return \@languages;
662
}#GetLanguagesIndicators
663
664
665
666
=head2 binarySearch
667
668
Little binary search for strings
669
670
return :
671
true or false
672
673
=cut
674
675
676
sub binarySearch
677
{
678
    my ($id, $arr) = @_;
679
680
    if ($arr && @$arr) {
681
        my $i = 0;
682
        my $j = scalar(@$arr) - 1;
683
        my $k = 0;
684
        while ($arr->[$k] ne $id && $j >= $i) {
685
            $k = int(($i + $j) / 2);
686
            if ($id gt $arr->[$k]) {
687
                $i = $k + 1;
688
            } else {
689
                $j = $k - 1;
690
            }
691
        }
692
        return 0 if ($arr->[$k] ne $id);
693
        return 1;
694
    }
695
    return 0;
696
}#binarySearch
697
698
699
700
=head2 CheckValueIndicators
701
702
Check the validity ot the indicators form values against the user defined ones
703
704
return :
705
Hash with the indicators with wrong values
706
707
=cut
708
709
710
sub CheckValueIndicatorsSub
711
{
712
    my ($input, $frameworkcode, $langParam) = @_;
713
714
    my $retHash;
715
    my $lang;
716
    my $indicatorsLanguages = GetLanguagesIndicators();
717
    if ($langParam && binarySearch($langParam, $indicatorsLanguages)) {
718
        $lang = $langParam;
719
    } elsif ($input->param('lang') && binarySearch($input->param('lang'), $indicatorsLanguages)) {
720
        $lang = $input->param('lang');
721
    } else {
722
        $lang = 'en';
723
    }
724
    my ($frameworkcodeRet, $data) = GetValuesIndicatorFrameWork($frameworkcode, undef, $lang);
725
    if ($data) {
726
        $retHash = {};
727
        my $tagfield;
728
        my $ind;
729
        my $var;
730
        my $random;
731
        my $found;
732
        my $nonEmptySubfield;
733
        my $pattern;
734
        my $hasIndicator = 0;
735
        my @params = $input->param();
736
        foreach $var (@params) {
737
            if ($var =~ /^tag_([0-9]{3})_indicator([12])_([0-9]+)$/) {
738
                $tagfield = $1;
739
                $ind = $2;
740
                $random = '[0-9_]*(?:' . $3 . ')?';
741
                if ($data->{$tagfield} && @{$data->{$tagfield}}) {
742
                    $hasIndicator = 0;
743
                    # check if exists this indicator in the framework
744
                    for (@{$data->{$tagfield}}) {
745
                        if ($ind == $_->{ind}) {
746
                            $hasIndicator = 1;
747
                            last;
748
                        }
749
                    }
750
                    next unless ($hasIndicator);
751
                    $found = 0;
752
                    # look for some subfield filled and if so check indicator
753
                    $nonEmptySubfield = 0;
754
                    $pattern = 'tag_' . $tagfield . '_subfield_[a-z0-9]_' . $random;
755
                    foreach my $value (@params) {
756
                        if ($value =~ /^$pattern/ && $input->param($value) ne '') {
757
                            $nonEmptySubfield = 1;
758
                            last;
759
                        }
760
                    }
761
                    # check if exists the value for the indicator
762
                    if ($nonEmptySubfield) {
763
                        for (@{$data->{$tagfield}}) {
764
                            if ($ind == $_->{ind} && ($_->{ind_value} eq $input->param($var) || $input->param($var) eq '' || $input->param($var) eq ' ')) {
765
                                $found = 1;
766
                                last;
767
                            }
768
                        }
769
                        # incorrect value
770
                        $retHash->{$tagfield}->{$ind} = $input->param($var) unless ($found);
771
                    }
772
                }
773
            }
774
        }
775
        $retHash = undef unless (scalar(keys %$retHash));
776
    }
777
    return $retHash;
778
}#CheckValueIndicatorsSub
779
780
781
782
783
1;
784
__END__
785
786
=head1 AUTHOR
787
788
Koha Development Team <http://koha-community.org/>
789
790
=cut
791
(-)a/admin/biblio_framework.pl (+16 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 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
my $frameworks = GetFrameworks($frameworkcode);
63
unshift @$frameworks, {frameworkcode => 'Default', frameworktext => 'Default'};
64
$template->param(
65
    frameworkloop => $frameworks
66
);
67
68
58
################## ADD_FORM ##################################
69
################## ADD_FORM ##################################
59
# called by default. Used to create form to add or  modify a record
70
# called by default. Used to create form to add or  modify a record
60
if ($op eq 'add_form') {
71
if ($op eq 'add_form') {
Lines 79-84 if ($op eq 'add_form') { Link Here
79
        if ($input->param('modif')) {
90
        if ($input->param('modif')) {
80
            my $sth=$dbh->prepare("UPDATE biblio_framework SET frameworktext=? WHERE frameworkcode=?");
91
            my $sth=$dbh->prepare("UPDATE biblio_framework SET frameworktext=? WHERE frameworkcode=?");
81
            $sth->execute($input->param('frameworktext'),$input->param('frameworkcode'));
92
            $sth->execute($input->param('frameworktext'),$input->param('frameworkcode'));
93
            #Clone indicators from a framework
94
            if($input->param('indicators') && DelIndicatorsFramework($input->param('frameworkcode'))) {
95
                my $frameworkBase = ($input->param('indicators') eq 'Default')?'':$input->param('indicators');
96
                CloneIndicatorsFramework($frameworkBase, $input->param('frameworkcode'));
97
            }
82
        } else {
98
        } else {
83
            my $sth=$dbh->prepare("INSERT into biblio_framework (frameworkcode,frameworktext) values (?,?)");
99
            my $sth=$dbh->prepare("INSERT into biblio_framework (frameworkcode,frameworktext) values (?,?)");
84
            $sth->execute($input->param('frameworkcode'),$input->param('frameworktext'));
100
            $sth->execute($input->param('frameworkcode'),$input->param('frameworktext'));
(-)a/admin/marc_indicators_structure.pl (+151 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 Data::Dumper;
29
30
31
32
my $input = new CGI;
33
34
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
35
    {
36
        template_name   => "admin/marc_indicators_structure.tmpl",
37
        query           => $input,
38
        type            => "intranet",
39
        authnotrequired => 0,
40
        flagsrequired   => { parameters => 1 },
41
        debug           => 1,
42
    }
43
);
44
45
my $frameworkcode = $input->param('frameworkcode');
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 (binarySearch($template->param('lang'), $indicatorsLanguages)) {
57
    $lang = $template->param('lang');
58
} else {
59
    $lang = 'en';
60
}
61
62
my $dataInd;
63
my $id_indicator;
64
my $strError = '';
65
66
if ($input->request_method() eq "GET") {
67
    if ($op eq 'mod') {
68
        ($id_indicator, $dataInd) = GetValuesIndicator(undef, $tagfield, $frameworkcode, $lang);
69
    } else {
70
        $op = 'add';
71
    }
72
} elsif ($input->request_method() eq "POST") {
73
    if ($op eq 'add') {
74
        my $inserted = 0;
75
        $id_indicator = AddIndicator($tagfield, $frameworkcode);
76
        if ($id_indicator) {
77
            $inserted++;
78
            my $id_indicator_value;
79
            my $counter;
80
            for ($input->param()) {
81
                if ($_ =~ /^ind_value_([0-9]+)$/ && ($counter = $1) && $input->param('ind_' . $counter) =~ /^([12])$/) {
82
                    $id_indicator_value = AddIndicatorValue($id_indicator, $tagfield, $frameworkcode, $1, $input->param($_), $input->param('ind_desc_' . $counter), $lang);
83
                    $inserted++ if ($id_indicator_value);
84
                }
85
            }
86
        }
87
        if ($inserted) {
88
            $op = 'mod';
89
            $strError = 'Insertion OK';
90
            ($id_indicator, $dataInd) = GetValuesIndicator($id_indicator, $tagfield, $frameworkcode, $lang);
91
        } else {
92
            $strError = 'Insertion failed';
93
        }
94
    } elsif ($op eq 'mod') {
95
        $id_indicator = $input->param('id_indicator');
96
        ($id_indicator, $dataInd) = GetValuesIndicator($id_indicator, $tagfield, $frameworkcode, $lang);
97
        my $indRepeated = {};
98
        my $indId = {};
99
        my $id_indicator_value;
100
        my $counter;
101
        for ($input->param()) {
102
            if ($_ =~ /^id_indicator_([0-9]+)$/ && ($counter = $1) && $input->param('ind_' . $counter) =~ /^([12])$/) {
103
                $indRepeated->{$counter} = $input->param($_);
104
                $indId->{$input->param($_)} = $input->param($_);
105
                ModIndicatorValue($input->param($_), $input->param('ind_value_' . $counter), $input->param('ind_desc_' . $counter), $lang, $input->param('ind_' . $counter));
106
            } elsif ($_ =~ /^ind_value_([0-9]+)$/ && ($counter = $1) && !exists($indRepeated->{$counter}) && $input->param('ind_' . $counter) =~ /^([12])$/) {
107
                $id_indicator_value = AddIndicatorValue($id_indicator, $tagfield, $frameworkcode, $1, $input->param($_), $input->param('ind_desc_' . $counter), $lang);
108
                $indId->{$id_indicator_value} = $id_indicator_value if ($id_indicator_value);
109
            }
110
        }
111
        foreach (@$dataInd) {
112
            unless (exists($indId->{$_->{id_indicator_value}})) {
113
                DelIndicatorValue($_->{id_indicator_value});
114
                $id_indicator_value = $_->{id_contenido};
115
            }
116
        }
117
        unless ($id_indicator_value) {
118
            $strError = 'Update OK.';
119
        } else {
120
            $strError = 'Update failed.';
121
        }
122
        @$dataInd = undef;
123
        ($id_indicator, $dataInd) = GetValuesIndicator($id_indicator, $tagfield, $frameworkcode, $lang);
124
    }
125
}
126
127
128
if ($dataInd) {
129
    my $i = 1;
130
    for (@$dataInd) {
131
        $_->{numInd} = $i;
132
        $i++;
133
    }
134
}
135
136
137
$template->param(frameworkcode => $frameworkcode,
138
            strError => $strError,
139
            op => $op,
140
            lang => $lang,
141
            tagfield => $tagfield,
142
            numInd => ($dataInd)?scalar(@$dataInd):0,
143
            BIG_LOOP => $dataInd,
144
);
145
146
147
output_html_with_http_headers $input, $cookie, $template->output;
148
# print Dumper $dataInd;
149
# print $strError;
150
# print $lang;
151
(-)a/admin/marctagstructure.pl (+14 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 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);
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 361-365 sub duplicate_framework { Link Here
361
	while ( my ($frameworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso,$hidden) = $sth->fetchrow) {
371
	while ( my ($frameworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso,$hidden) = $sth->fetchrow) {
362
	    $sth_insert->execute($newframeworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso, $hidden);
372
	    $sth_insert->execute($newframeworkcode, $tagfield, $tagsubfield, $liblibrarian, $libopac, $repeatable, $mandatory, $kohafield, $tab, $authorised_value, $thesaurus_category, $value_builder, $seealso, $hidden);
363
	}
373
	}
374
    # Manage Indicators, clone the indicators from the parent of the new framework
375
    if ($input->param("clone_indicators") eq "1") {
376
        CloneIndicatorsFramework($oldframeworkcode, $newframeworkcode);
377
    }
364
}
378
}
365
379
(-)a/cataloguing/addbiblio.pl (-1 / +26 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 913-923 if ($biblionumber) { Link Here
913
#-------------------------------------------------------------------------------------
914
#-------------------------------------------------------------------------------------
914
if ( $op eq "addbiblio" ) {
915
if ( $op eq "addbiblio" ) {
915
#-------------------------------------------------------------------------------------
916
#-------------------------------------------------------------------------------------
917
    my ($duplicatebiblionumber,$duplicatetitle);
918
    my $retWrongInd; # variable to store the indicators with incorrect values
919
    # Check whether the value of the indicators are correct or do not add/modify the biblio and show the form again
920
    # Do not check if the record comes from a Z3959 Search or from an Import
921
    if ((C4::Context->preference("CheckValueIndicators") || C4::Context->preference("DisplayPluginValueIndicators")) && !$z3950 && !$breedingid) {
922
        $retWrongInd = CheckValueIndicatorsSub($input, $frameworkcode, $template->param('lang'));
923
        if ($retWrongInd) {
924
            my @params = $input->param();
925
            $record = TransformHtmlToMarc( \@params , $input );
926
            $duplicatebiblionumber = 1; # modify the variable (even it's not a duplicate) to not enter the next if block
927
            $is_a_modif = 1; # do not want FindDuplicate
928
            $input->param('confirm_not_duplicate', '0'); # modify to not enter the next if clause
929
            my @wrongInd = ();
930
            map { push @wrongInd, {tagfield => $_, ind1 => $retWrongInd->{$_}->{1}, ind2 => $retWrongInd->{$_}->{2}}; } keys %$retWrongInd;
931
            $template->param(wrongInd => \@wrongInd);
932
        }
933
    }
934
    
916
    # getting html input
935
    # getting html input
917
    my @params = $input->param();
936
    my @params = $input->param();
918
    $record = TransformHtmlToMarc( \@params , $input );
937
    $record = TransformHtmlToMarc( \@params , $input );
919
    # check for a duplicate
938
    # check for a duplicate
920
    my ($duplicatebiblionumber,$duplicatetitle) = FindDuplicate($record) if (!$is_a_modif);
939
    ($duplicatebiblionumber,$duplicatetitle) = FindDuplicate($record) if (!$is_a_modif);
921
    my $confirm_not_duplicate = $input->param('confirm_not_duplicate');
940
    my $confirm_not_duplicate = $input->param('confirm_not_duplicate');
922
    # it is not a duplicate (determined either by Koha itself or by user checking it's not a duplicate)
941
    # it is not a duplicate (determined either by Koha itself or by user checking it's not a duplicate)
923
    if ( !$duplicatebiblionumber or $confirm_not_duplicate ) {
942
    if ( !$duplicatebiblionumber or $confirm_not_duplicate ) {
Lines 970-975 if ( $op eq "addbiblio" ) { Link Here
970
        }
989
        }
971
    } else {
990
    } else {
972
    # it may be a duplicate, warn the user and do nothing
991
    # it may be a duplicate, warn the user and do nothing
992
        $duplicatebiblionumber = 0 if ($retWrongInd); # reset duplicatebiblionumber to the original value
973
        build_tabs ($template, $record, $dbh,$encoding,$input);
993
        build_tabs ($template, $record, $dbh,$encoding,$input);
974
        $template->param(
994
        $template->param(
975
            biblionumber             => $biblionumber,
995
            biblionumber             => $biblionumber,
Lines 1029-1032 $template->param( Link Here
1029
    itemtype => $frameworkcode,
1049
    itemtype => $frameworkcode,
1030
);
1050
);
1031
1051
1052
$template->param(
1053
    DisplayPluginValueIndicators => C4::Context->preference("DisplayPluginValueIndicators"),
1054
    CheckValueIndicators => (!$z3950 && !$breedingid)?(C4::Context->preference("CheckValueIndicators") | C4::Context->preference("DisplayPluginValueIndicators")):0
1055
);
1056
1032
output_html_with_http_headers $input, $cookie, $template->output;
1057
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/cataloguing/indicators_ajax.pl (+121 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 $frameworkcode = $cgi->param('frameworkcode');
45
    if ($doc) {
46
        $root = $doc->createElement('Framework');
47
        $root->setAttribute('frameworkcode', $frameworkcode);
48
        $doc->addChild($root);
49
    } else {
50
        $strXml .= '<Framework frameworkcode="' . $frameworkcode . '">' . chr(10);
51
    }
52
53
    my $params = $cgi->Vars;
54
    my @tagfields;
55
    @tagfields = split("\0", $params->{'tagfields'}) if $params->{'tagfields'};
56
57
    my $indicatorsLanguages = GetLanguagesIndicators();
58
    my $lang;
59
    if ($cgi->param('lang') && binarySearch($cgi->param('lang'), $indicatorsLanguages)) {
60
        $lang = $cgi->param('lang');
61
    } else {
62
        $lang = 'en';
63
    }
64
65
    my ($frameworkcodeRet, $data) = GetValuesIndicatorFrameWork($frameworkcode, \@tagfields, $lang);
66
    if ($data) {
67
        my $elementFields;
68
        if ($doc) {
69
            $elementFields = $doc->createElement('Fields');
70
            $root->addChild($elementFields);
71
        } else {
72
            $strXml .= '<Fields>' . chr(10);
73
        }
74
        my $tagfield;
75
        my $elementField;
76
        for $tagfield (sort keys %$data) {
77
            if ($doc) {
78
                $elementField = $doc->createElement('Field');
79
                $elementField->setAttribute('tag', $tagfield);
80
                $elementFields->addChild($elementField);
81
            } else {
82
                $strXml .= '<Field tag="' . $tagfield . '">' . chr(10);
83
            }
84
            if (@{$data->{$tagfield}}) {
85
                my $elementInd;
86
                my $dataUnique = {};
87
                for (@{$data->{$tagfield}}) {
88
                    unless (exists($dataUnique->{$_->{ind}}->{$_->{ind_value}})) {
89
                        $dataUnique->{$_->{ind}}->{$_->{ind_value}} = 1;
90
                        if ($doc) {
91
                            $elementInd = $doc->createElement('Indicator');
92
                            $elementInd->setAttribute('ind', $_->{ind});
93
                            $elementInd->appendText($_->{ind_value});
94
                            $elementField->addChild($elementInd);
95
                        } else {
96
                            $strXml .= '<Indicator ind="' . $_->{ind} . '">' . $_->{ind_value} . '</Indicator>' . chr(10);
97
                        }
98
                    }
99
                }
100
            }
101
            $strXml .= '</Field>' . chr(10) unless ($doc);
102
        }
103
        $strXml .= '</Fields>' . chr(10) unless ($doc);
104
    }
105
    $strXml .= '</Framework>';
106
} else {
107
    if ($doc) {
108
        $root = $doc->createElement('Error');
109
        $doc->addChild($root);
110
    } else {
111
        $strXml .= '<Error />' . chr(10);
112
    }
113
}
114
if ($doc) {
115
    $strXml = $doc->toString(0);
116
}
117
STDOUT->autoflush(1);
118
print "Content-type: application/xml\n\n";
119
print $strXml;
120
close(STDOUT);
121
exit;
(-)a/cataloguing/marc21_indicators.pl (+103 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
my $biblionumber = $input->param('biblionumber');
33
my $frameworkcode = $input->param('frameworkcode');
34
35
36
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
37
    {
38
        template_name   => "cataloguing/marc21_indicators.tmpl",
39
        query           => $input,
40
        type            => "intranet",
41
        authnotrequired => 0,
42
    }
43
);
44
45
46
# Values of indicators as filled by user
47
my %tagfields = ();
48
foreach my $var ($input->param()) {
49
    if ($var =~ /^tag_([0-9]{3})_indicator([12])_[0-9]+$/) {
50
        $tagfields{$1}{$2}{value} = $input->param($var) if (defined($input->param($var)) && $input->param($var) ne '#');
51
        $tagfields{$1}{$2}{field} = $var;
52
    }
53
}
54
55
56
# Get data from biblio
57
if ($biblionumber) {
58
    my $record = GetMarcBiblio($biblionumber);
59
    $template->param( title => $record->title());
60
}
61
62
# Get the languages associated with indicators
63
my $indicatorsLanguages = GetLanguagesIndicators();
64
65
# Is our language is defined on the indicators?
66
my $lang;
67
if ($input->param('lang') && binarySearch($input->param('lang'), $indicatorsLanguages)) {
68
    $lang = $input->param('lang');
69
} elsif (binarySearch($template->param('lang'), $indicatorsLanguages)) {
70
    $lang = $template->param('lang');
71
} else {
72
    $lang = 'en';
73
}
74
75
my @INDICATORS_LOOP;
76
my @tagfields = keys %tagfields;
77
78
# Get predefined values for indicators on a framework, tagfields and language
79
my ($frameworkcodeRet, $data) = GetValuesIndicatorFrameWork($frameworkcode, \@tagfields, $lang);
80
if ($data) {
81
    my $tagfield;
82
    for $tagfield (sort keys %$data) {
83
        my $dataField = GetDataFieldMarc($tagfield, $frameworkcode);
84
        if (exists($tagfields{$tagfield}) || @{$data->{$tagfield}}) {
85
            my $hashRef = {tagfield=> $tagfield, 
86
                    desc => $dataField->{liblibrarian}?$dataField->{liblibrarian}:$dataField->{libopac},
87
                    current_value_1 => exists($tagfields{$tagfield}{1}{value})?$tagfields{$tagfield}{1}{value}:'',
88
                    current_value_2 => exists($tagfields{$tagfield}{2}{value})?$tagfields{$tagfield}{2}{value}:'',
89
                    current_field_1 => exists($tagfields{$tagfield}{1})?$tagfields{$tagfield}{1}{field}:'',
90
                    current_field_2 => exists($tagfields{$tagfield}{2})?$tagfields{$tagfield}{2}{field}:'',
91
                    data => $data->{$tagfield}};
92
            push @INDICATORS_LOOP, $hashRef;
93
        }
94
    }
95
}
96
97
$template->param(biblionumber => $biblionumber,
98
                INDICATORS_LOOP => \@INDICATORS_LOOP,
99
                indicatorsLanguages => $indicatorsLanguages,
100
                frameworkcode => $frameworkcode
101
        );
102
103
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/installer/data/Pg/en/marcflavour/marc21/mandatory/marc21_indicators.sql (+84 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 '',
11
  tagfield varchar(3) NOT NULL default ''
12
);
13
CREATE UNIQUE INDEX marc_indicators_frameworkcode ON marc_indicators (frameworkcode,tagfield);
14
15
16
--
17
-- Table structure for table marc_indicators_values
18
--
19
20
DROP TABLE IF EXISTS marc_indicators_values CASCADE;
21
CREATE TABLE marc_indicators_values (
22
  ind_value char(1) NOT NULL default '' PRIMARY KEY
23
);
24
25
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');
26
27
28
--
29
-- Table structure for table marc_indicators_value
30
--
31
32
DROP TABLE IF EXISTS marc_indicators_value CASCADE;
33
CREATE TABLE marc_indicators_value (
34
  id_indicator_value SERIAL PRIMARY KEY,
35
  id_indicator integer NOT NULL REFERENCES marc_indicators (id_indicator) ON DELETE CASCADE,
36
  ind varchar(1) NOT NULL,
37
  ind_value char(1) NOT NULL REFERENCES marc_indicators_values (ind_value) ON DELETE CASCADE,
38
  CHECK ( ind IN ('1', '2'))
39
);
40
CREATE INDEX marc_indicators_value_id_indicator ON marc_indicators_value (id_indicator);
41
CREATE INDEX marc_indicators_value_ind_value ON marc_indicators_value (ind_value);
42
43
44
--
45
-- Table structure for table marc_indicators_desc
46
--
47
48
DROP TABLE IF EXISTS marc_indicators_desc CASCADE;
49
CREATE TABLE marc_indicators_desc (
50
  id_indicator_value integer NOT NULL REFERENCES marc_indicators_value (id_indicator_value) ON DELETE CASCADE,
51
  lang varchar(25) NOT NULL default 'en',
52
  ind_desc text,
53
  PRIMARY KEY  (id_indicator_value,lang)
54
);
55
CREATE INDEX marc_indicators_desc_lang ON marc_indicators_desc (lang);
56
57
58
59
--- ******************************************
60
--- Values for Indicators for Default Framework
61
--- ******************************************
62
--
63
-- Dumping data for table marc_indicators
64
--
65
66
67
INSERT INTO marc_indicators VALUES (1,'','010'),(11,'','013'),(20,'','015'),(29,'','016'),(38,'','017'),(47,'','018'),(56,'','020'),(66,'','022'),(76,'','024'),(85,'','025'),(94,'','026'),(103,'','027'),(112,'','028'),(121,'','030'),(130,'','031'),(139,'','032'),(148,'','033'),(157,'','034'),(166,'','035'),(175,'','036'),(184,'','037'),(193,'','038'),(202,'','040'),(211,'','041'),(220,'','042'),(229,'','043'),(238,'','044'),(247,'','045'),(256,'','046'),(265,'','047'),(274,'','048'),(283,'','050'),(293,'','051'),(302,'','052'),(311,'','055'),(320,'','060'),(329,'','061'),(338,'','066'),(347,'','070'),(356,'','071'),(365,'','072'),(374,'','074'),(383,'','080'),(392,'','082'),(401,'','084'),(410,'','086'),(419,'','088'),(428,'','100'),(438,'','110'),(447,'','111'),(456,'','130'),(465,'','210'),(474,'','222'),(483,'','240'),(492,'','242'),(501,'','245'),(511,'','246'),(520,'','247'),(529,'','250'),(539,'','254'),(548,'','255'),(557,'','256'),(566,'','257'),(575,'','258'),(584,'','260'),(594,'','263'),(603,'','270'),(612,'','300'),(622,'','306'),(631,'','307'),(640,'','310'),(649,'','321'),(658,'','340'),(667,'','342'),(676,'','343'),(685,'','351'),(694,'','352'),(703,'','355'),(712,'','357'),(721,'','362'),(730,'','365'),(739,'','366'),(748,'','490'),(757,'','500'),(767,'','501'),(776,'','502'),(785,'','504'),(794,'','505'),(803,'','506'),(812,'','507'),(821,'','508'),(830,'','510'),(839,'','511'),(848,'','513'),(857,'','514'),(866,'','515'),(875,'','516'),(884,'','518'),(893,'','520'),(902,'','521'),(911,'','522'),(920,'','524'),(929,'','525'),(938,'','526'),(947,'','530'),(956,'','533'),(965,'','534'),(974,'','535'),(983,'','536'),(992,'','538'),(1001,'','540'),(1010,'','541'),(1019,'','544'),(1028,'','546'),(1037,'','547'),(1046,'','550'),(1055,'','552'),(1064,'','555'),(1073,'','556'),(1082,'','561'),(1091,'','562'),(1100,'','563'),(1109,'','565'),(1118,'','567'),(1127,'','580'),(1136,'','581'),(1145,'','583'),(1154,'','584'),(1163,'','585'),(1172,'','586'),(1181,'','600'),(1190,'','610'),(1199,'','611'),(1208,'','630'),(1217,'','648'),(1226,'','650'),(1235,'','651'),(1244,'','653'),(1253,'','654'),(1262,'','655'),(1271,'','656'),(1280,'','657'),(1289,'','658'),(1298,'','662'),(1307,'','700'),(1316,'','710'),(1325,'','711'),(1334,'','720'),(1343,'','730'),(1352,'','740'),(1361,'','752'),(1370,'','753'),(1379,'','754'),(1388,'','760'),(1397,'','762'),(1406,'','765'),(1415,'','767'),(1424,'','770'),(1433,'','772'),(1442,'','773'),(1451,'','774'),(1460,'','775'),(1469,'','776'),(1478,'','777'),(1487,'','780'),(1496,'','785'),(1505,'','786'),(1514,'','787'),(1523,'','800'),(1532,'','810'),(1541,'','811'),(1550,'','830'),(1559,'','841'),(1568,'','842'),(1577,'','843'),(1586,'','844'),(1595,'','845'),(1604,'','850'),(1613,'','852'),(1622,'','853'),(1631,'','854'),(1640,'','855'),(1649,'','856'),(1658,'','863'),(1667,'','864'),(1676,'','865'),(1685,'','866'),(1694,'','867'),(1703,'','868'),(1712,'','876'),(1721,'','877'),(1730,'','878'),(1739,'','880'),(1748,'','886'),(1757,'','887');
68
69
70
--
71
-- Dumping data for table marc_indicators_value
72
--
73
74
75
INSERT INTO marc_indicators_value VALUES (1,1,'1',''),(2,1,'2',''),(21,1,'1',''),(22,1,'2',''),(41,11,'1',''),(42,11,'2',''),(59,11,'1',''),(60,11,'2',''),(77,20,'1',''),(78,20,'2',''),(95,20,'1',''),(96,20,'2',''),(113,29,'1',''),(114,29,'2',''),(131,29,'1',''),(132,29,'2',''),(149,29,'1','7'),(158,38,'1',''),(159,38,'2',''),(176,38,'1',''),(177,38,'2',''),(194,47,'1',''),(195,47,'2',''),(212,47,'1',''),(213,47,'2',''),(230,56,'1',''),(231,56,'2',''),(250,56,'1',''),(251,56,'2',''),(270,66,'1',''),(271,66,'2',''),(290,66,'1',''),(291,66,'2',''),(310,66,'1','0'),(320,66,'1','1'),(330,76,'1',''),(331,76,'2',''),(348,76,'1','0'),(349,76,'2',''),(366,76,'1','1'),(367,76,'2','0'),(384,76,'1','2'),(385,76,'2','1'),(402,76,'1','3'),(411,76,'1','4'),(420,76,'1','7'),(429,76,'1','8'),(438,85,'1',''),(439,85,'2',''),(456,85,'1',''),(457,85,'2',''),(474,94,'1',''),(475,94,'2',''),(492,94,'1',''),(493,94,'2',''),(510,103,'1',''),(511,103,'2',''),(528,103,'1',''),(529,103,'2',''),(546,112,'1',''),(547,112,'2',''),(564,112,'1','0'),(565,112,'2','0'),(582,112,'1','1'),(583,112,'2','1'),(600,112,'1','2'),(601,112,'2','2'),(618,112,'1','3'),(619,112,'2','3'),(636,112,'1','4'),(645,112,'1','5'),(654,121,'1',''),(655,121,'2',''),(672,121,'1',''),(673,121,'2',''),(690,130,'1',''),(691,130,'2',''),(708,130,'1',''),(709,130,'2',''),(726,139,'1',''),(727,139,'2',''),(744,139,'1',''),(745,139,'2',''),(762,148,'1',''),(763,148,'2',''),(780,148,'1',''),(781,148,'2',''),(798,148,'1','0'),(799,148,'2','0'),(816,148,'1','1'),(817,148,'2','1'),(834,148,'1','2'),(835,148,'2','2'),(852,157,'1',''),(853,157,'2',''),(870,157,'1','0'),(871,157,'2',''),(888,157,'1','1'),(889,157,'2','0'),(906,157,'1','3'),(907,157,'2','1'),(924,166,'1',''),(925,166,'2',''),(942,166,'1',''),(943,166,'2',''),(960,175,'1',''),(961,175,'2',''),(978,175,'1',''),(979,175,'2',''),(996,184,'1',''),(997,184,'2',''),(1014,184,'1',''),(1015,184,'2',''),(1032,193,'1',''),(1033,193,'2',''),(1050,193,'1',''),(1051,193,'2',''),(1068,202,'1',''),(1069,202,'2',''),(1086,202,'1',''),(1087,202,'2',''),(1104,211,'1',''),(1105,211,'2',''),(1122,211,'1','0'),(1123,211,'2',''),(1140,211,'1','1'),(1141,211,'2','7'),(1158,220,'1',''),(1159,220,'2',''),(1176,220,'1',''),(1177,220,'2',''),(1194,229,'1',''),(1195,229,'2',''),(1212,229,'1',''),(1213,229,'2',''),(1230,238,'1',''),(1231,238,'2',''),(1248,238,'1',''),(1249,238,'2',''),(1266,247,'1',''),(1267,247,'2',''),(1284,247,'1',''),(1285,247,'2',''),(1302,247,'1','0'),(1311,247,'1','1'),(1320,247,'1','2'),(1329,256,'1',''),(1330,256,'2',''),(1347,256,'1',''),(1348,256,'2',''),(1365,265,'1',''),(1366,265,'2',''),(1383,265,'1',''),(1384,265,'2',''),(1401,274,'1',''),(1402,274,'2',''),(1419,274,'1',''),(1420,274,'2',''),(1437,283,'1',''),(1438,283,'2',''),(1457,283,'1',''),(1458,283,'2','0'),(1477,283,'1','0'),(1478,283,'2','4'),(1497,283,'1','1'),(1507,293,'1',''),(1508,293,'2',''),(1525,293,'1',''),(1526,293,'2',''),(1543,302,'1',''),(1544,302,'2',''),(1561,302,'1',''),(1562,302,'2',''),(1579,302,'1','1'),(1588,302,'1','7'),(1597,311,'1',''),(1598,311,'2',''),(1615,311,'1',''),(1616,311,'2','0'),(1633,311,'1','0'),(1634,311,'2','1'),(1651,311,'1','1'),(1652,311,'2','2'),(1669,311,'2','3'),(1678,311,'2',''),(1687,311,'2','5'),(1696,311,'2','6'),(1705,311,'2','7'),(1714,311,'2','8'),(1723,311,'2','9'),(1732,320,'1',''),(1733,320,'2',''),(1750,320,'1',''),(1751,320,'2','0'),(1768,320,'1','0'),(1769,320,'2','4'),(1786,320,'1','1'),(1795,329,'1',''),(1796,329,'2',''),(1813,329,'1',''),(1814,329,'2',''),(1831,338,'1',''),(1832,338,'2',''),(1849,338,'1',''),(1850,338,'2',''),(1867,347,'1',''),(1868,347,'2',''),(1885,347,'1','0'),(1886,347,'2',''),(1903,347,'1','1'),(1912,356,'1',''),(1913,356,'2',''),(1930,356,'1',''),(1931,356,'2',''),(1948,365,'1',''),(1949,365,'2',''),(1966,365,'1',''),(1967,365,'2',''),(1984,365,'2','7'),(1993,374,'1',''),(1994,374,'2',''),(2011,374,'1',''),(2012,374,'2',''),(2029,383,'1',''),(2030,383,'2',''),(2047,383,'1',''),(2048,383,'2',''),(2065,392,'1',''),(2066,392,'2',''),(2083,392,'1','0'),(2084,392,'2',''),(2101,392,'1','1'),(2102,392,'2','0'),(2119,392,'2','4'),(2128,401,'1',''),(2129,401,'2',''),(2146,401,'1',''),(2147,401,'2',''),(2164,410,'1',''),(2165,410,'2',''),(2182,410,'1',''),(2183,410,'2',''),(2200,410,'1','0'),(2209,410,'1','1'),(2218,419,'1',''),(2219,419,'2',''),(2236,419,'1',''),(2237,419,'2',''),(2254,428,'1',''),(2255,428,'2',''),(2274,428,'1','0'),(2275,428,'2',''),(2294,428,'1','1'),(2304,428,'1','3'),(2314,438,'1',''),(2315,438,'2',''),(2332,438,'1','0'),(2333,438,'2',''),(2350,438,'1',''),(2359,438,'1','2'),(2368,447,'1',''),(2369,447,'2',''),(2386,447,'1','0'),(2387,447,'2',''),(2404,447,'1',''),(2413,447,'1','2'),(2422,456,'1',''),(2423,456,'2',''),(2440,456,'1','0'),(2441,456,'2',''),(2458,456,'1','1'),(2467,456,'1','2'),(2476,456,'1','3'),(2485,456,'1','4'),(2494,456,'1','5'),(2503,456,'1','6'),(2512,456,'1','7'),(2521,456,'1','8'),(2530,456,'1','9'),(2539,465,'1',''),(2540,465,'2',''),(2557,465,'1','0'),(2558,465,'2',''),(2575,465,'1','1'),(2576,465,'2','0'),(2593,474,'1',''),(2594,474,'2',''),(2611,474,'1',''),(2612,474,'2','0'),(2629,474,'2','1'),(2638,474,'2','2'),(2647,474,'2','3'),(2656,474,'2','4'),(2665,474,'2','5'),(2674,474,'2','6'),(2683,474,'2','7'),(2692,474,'2','8'),(2701,474,'2','9'),(2710,483,'1',''),(2711,483,'2',''),(2728,483,'1','0'),(2729,483,'2','0'),(2746,483,'1','1'),(2747,483,'2','1'),(2764,483,'2','2'),(2773,483,'2','3'),(2782,483,'2','4'),(2791,483,'2','5'),(2800,483,'2','6'),(2809,483,'2','7'),(2818,483,'2','8'),(2827,483,'2','9'),(2836,492,'1',''),(2837,492,'2',''),(2854,492,'1','0'),(2855,492,'2','0'),(2872,492,'1','1'),(2873,492,'2','1'),(2890,492,'2','2'),(2899,492,'2','3'),(2908,492,'2','4'),(2917,492,'2','5'),(2926,492,'2','6'),(2935,492,'2','7'),(2944,492,'2','8'),(2953,492,'2','9'),(2962,501,'1',''),(2963,501,'2',''),(2982,501,'1','0'),(2983,501,'2','0'),(3002,501,'1','1'),(3003,501,'2','1'),(3022,501,'2','2'),(3032,501,'2','3'),(3042,501,'2','4'),(3052,501,'2','5'),(3062,501,'2','6'),(3072,501,'2','7'),(3082,501,'2','8'),(3092,501,'2','9'),(3102,511,'1',''),(3103,511,'2',''),(3120,511,'1','0'),(3121,511,'2',''),(3138,511,'1','1'),(3139,511,'2','0'),(3156,511,'1','2'),(3157,511,'2','1'),(3174,511,'1','3'),(3175,511,'2','2'),(3192,511,'2','3'),(3201,511,'2','4'),(3210,511,'2','5'),(3219,511,'2','6'),(3228,511,'2','7'),(3237,511,'2','8'),(3246,520,'1',''),(3247,520,'2',''),(3264,520,'1','0'),(3265,520,'2','0'),(3282,520,'1','1'),(3283,520,'2','1'),(3300,529,'1',''),(3301,529,'2',''),(3320,529,'1',''),(3321,529,'2',''),(3340,539,'1',''),(3341,539,'2',''),(3358,539,'1',''),(3359,539,'2',''),(3376,548,'1',''),(3377,548,'2',''),(3394,548,'1',''),(3395,548,'2',''),(3412,557,'1',''),(3413,557,'2',''),(3430,557,'1',''),(3431,557,'2',''),(3448,566,'1',''),(3449,566,'2',''),(3466,566,'1',''),(3467,566,'2',''),(3484,575,'1',''),(3485,575,'2',''),(3502,575,'1',''),(3503,575,'2',''),(3520,584,'1',''),(3521,584,'2',''),(3540,584,'1',''),(3541,584,'2',''),(3560,584,'1','2'),(3570,584,'1',''),(3580,594,'1',''),(3581,594,'2',''),(3598,594,'1',''),(3599,594,'2',''),(3616,603,'1',''),(3617,603,'2',''),(3634,603,'1',''),(3635,603,'2',''),(3652,603,'1','1'),(3653,603,'2','0'),(3670,603,'1','2'),(3671,603,'2','7'),(3688,612,'1',''),(3689,612,'2',''),(3708,612,'1',''),(3709,612,'2',''),(3728,622,'1',''),(3729,622,'2',''),(3746,622,'1',''),(3747,622,'2',''),(3764,631,'1',''),(3765,631,'2',''),(3782,631,'1',''),(3783,631,'2',''),(3800,631,'1','8'),(3809,640,'1',''),(3810,640,'2',''),(3827,640,'1',''),(3828,640,'2',''),(3845,649,'1',''),(3846,649,'2',''),(3863,649,'1',''),(3864,649,'2',''),(3881,658,'1',''),(3882,658,'2',''),(3899,658,'1',''),(3900,658,'2',''),(3917,667,'1',''),(3918,667,'2',''),(3935,667,'1','0'),(3936,667,'2','0'),(3953,667,'1','1'),(3954,667,'2','1'),(3971,667,'2','2'),(3980,667,'2','3'),(3989,667,'2','4'),(3998,667,'2','5'),(4007,667,'2','6'),(4016,667,'2','7'),(4025,667,'2','8'),(4034,676,'1',''),(4035,676,'2',''),(4052,676,'1',''),(4053,676,'2',''),(4070,685,'1',''),(4071,685,'2',''),(4088,685,'1',''),(4089,685,'2',''),(4106,694,'1',''),(4107,694,'2',''),(4124,694,'1',''),(4125,694,'2',''),(4142,703,'1',''),(4143,703,'2',''),(4160,703,'1','0'),(4161,703,'2',''),(4178,703,'1','1'),(4187,703,'1','2'),(4196,703,'1','3'),(4205,703,'1','4'),(4214,703,'1','5'),(4223,703,'1','8'),(4232,712,'1',''),(4233,712,'2',''),(4250,712,'1',''),(4251,712,'2',''),(4268,721,'1',''),(4269,721,'2',''),(4286,721,'1','0'),(4287,721,'2',''),(4304,721,'1','1'),(4313,730,'1',''),(4314,730,'2',''),(4331,730,'1',''),(4332,730,'2',''),(4349,739,'1',''),(4350,739,'2',''),(4367,739,'1',''),(4368,739,'2',''),(4385,748,'1',''),(4386,748,'2',''),(4403,748,'1','0'),(4404,748,'2',''),(4421,748,'1','1'),(4430,757,'1',''),(4431,757,'2',''),(4450,757,'1',''),(4451,757,'2',''),(4470,767,'1',''),(4471,767,'2',''),(4488,767,'1',''),(4489,767,'2',''),(4506,776,'1',''),(4507,776,'2',''),(4524,776,'1',''),(4525,776,'2',''),(4542,785,'1',''),(4543,785,'2',''),(4560,785,'1',''),(4561,785,'2',''),(4578,794,'1',''),(4579,794,'2',''),(4596,794,'1','0'),(4597,794,'2',''),(4614,794,'1','1'),(4615,794,'2','0'),(4632,794,'1','2'),(4641,794,'1','8'),(4650,803,'1',''),(4651,803,'2',''),(4668,803,'1',''),(4669,803,'2',''),(4686,803,'1','0'),(4695,803,'1','1'),(4704,812,'1',''),(4705,812,'2',''),(4722,812,'1',''),(4723,812,'2',''),(4740,821,'1',''),(4741,821,'2',''),(4758,821,'1',''),(4759,821,'2',''),(4776,830,'1',''),(4777,830,'2',''),(4794,830,'1','0'),(4795,830,'2',''),(4812,830,'1','1'),(4821,830,'1','2'),(4830,830,'1','3'),(4839,830,'1','4'),(4848,839,'1',''),(4849,839,'2',''),(4866,839,'1','0'),(4867,839,'2',''),(4884,839,'1','1'),(4893,848,'1',''),(4894,848,'2',''),(4911,848,'1',''),(4912,848,'2',''),(4929,857,'1',''),(4930,857,'2',''),(4947,857,'1',''),(4948,857,'2',''),(4965,866,'1',''),(4966,866,'2',''),(4983,866,'1',''),(4984,866,'2',''),(5001,875,'1',''),(5002,875,'2',''),(5019,875,'1',''),(5020,875,'2',''),(5037,875,'1','8'),(5046,884,'1',''),(5047,884,'2',''),(5064,884,'1',''),(5065,884,'2',''),(5082,893,'1',''),(5083,893,'2',''),(5100,893,'1',''),(5101,893,'2',''),(5118,893,'1','0'),(5127,893,'1','1'),(5136,893,'1','2'),(5145,893,'1','4'),(5154,893,'1','3'),(5163,893,'1','8'),(5172,902,'1',''),(5173,902,'2',''),(5190,902,'1',''),(5191,902,'2',''),(5208,902,'1','0'),(5217,902,'1','1'),(5226,902,'1','2'),(5235,902,'1','3'),(5244,902,'1','4'),(5253,902,'1','8'),(5262,911,'1',''),(5263,911,'2',''),(5280,911,'1',''),(5281,911,'2',''),(5298,911,'1','8'),(5307,920,'1',''),(5308,920,'2',''),(5325,920,'1',''),(5326,920,'2',''),(5343,920,'1','8'),(5352,929,'1',''),(5353,929,'2',''),(5370,929,'1',''),(5371,929,'2',''),(5388,938,'1',''),(5389,938,'2',''),(5406,938,'1','0'),(5407,938,'2',''),(5424,938,'1','8'),(5433,947,'1',''),(5434,947,'2',''),(5451,947,'1',''),(5452,947,'2',''),(5469,956,'1',''),(5470,956,'2',''),(5487,956,'1',''),(5488,956,'2',''),(5505,965,'1',''),(5506,965,'2',''),(5523,965,'1',''),(5524,965,'2',''),(5541,974,'1',''),(5542,974,'2',''),(5559,974,'1','1'),(5560,974,'2',''),(5577,974,'1','2'),(5586,983,'1',''),(5587,983,'2',''),(5604,983,'1',''),(5605,983,'2',''),(5622,992,'1',''),(5623,992,'2',''),(5640,992,'1',''),(5641,992,'2',''),(5658,1001,'1',''),(5659,1001,'2',''),(5676,1001,'1',''),(5677,1001,'2',''),(5694,1010,'1',''),(5695,1010,'2',''),(5712,1010,'1',''),(5713,1010,'2',''),(5730,1019,'1',''),(5731,1019,'2',''),(5748,1019,'1',''),(5749,1019,'2',''),(5766,1019,'1','0'),(5775,1019,'1','1'),(5784,1028,'1',''),(5785,1028,'2',''),(5802,1028,'1',''),(5803,1028,'2',''),(5820,1037,'1',''),(5821,1037,'2',''),(5838,1037,'1',''),(5839,1037,'2',''),(5856,1046,'1',''),(5857,1046,'2',''),(5874,1046,'1',''),(5875,1046,'2',''),(5892,1055,'1',''),(5893,1055,'2',''),(5910,1055,'1',''),(5911,1055,'2',''),(5928,1064,'1',''),(5929,1064,'2',''),(5946,1064,'2',''),(5955,1064,'1','8'),(5964,1073,'1',''),(5965,1073,'2',''),(5982,1073,'2',''),(5991,1073,'1','8'),(6000,1082,'1',''),(6001,1082,'2',''),(6018,1082,'1',''),(6019,1082,'2',''),(6036,1091,'1',''),(6037,1091,'2',''),(6054,1091,'1',''),(6055,1091,'2',''),(6072,1100,'1',''),(6073,1100,'2',''),(6090,1100,'1',''),(6091,1100,'2',''),(6108,1109,'1',''),(6109,1109,'2',''),(6126,1109,'1',''),(6127,1109,'2',''),(6144,1109,'1','0'),(6153,1109,'1','8'),(6162,1118,'1',''),(6163,1118,'2',''),(6180,1118,'1',''),(6181,1118,'2',''),(6198,1118,'1','8'),(6207,1127,'1',''),(6208,1127,'2',''),(6225,1127,'1',''),(6226,1127,'2',''),(6243,1136,'1',''),(6244,1136,'2',''),(6261,1136,'1',''),(6262,1136,'2',''),(6279,1136,'1','8'),(6288,1145,'1',''),(6289,1145,'2',''),(6306,1145,'1',''),(6307,1145,'2',''),(6324,1154,'1',''),(6325,1154,'2',''),(6342,1154,'1',''),(6343,1154,'2',''),(6360,1163,'1',''),(6361,1163,'2',''),(6378,1163,'1',''),(6379,1163,'2',''),(6396,1172,'1',''),(6397,1172,'2',''),(6414,1172,'1',''),(6415,1172,'2',''),(6432,1172,'1','8'),(6441,1181,'1',''),(6442,1181,'2',''),(6459,1181,'1','0'),(6460,1181,'2',''),(6477,1181,'1','1'),(6478,1181,'2','1'),(6495,1181,'1','2'),(6496,1181,'2','2'),(6513,1181,'2','3'),(6522,1181,'2','4'),(6531,1181,'2','5'),(6540,1181,'2','6'),(6549,1181,'2','7'),(6558,1190,'1',''),(6559,1190,'2',''),(6576,1190,'1','0'),(6577,1190,'2','0'),(6594,1190,'1','1'),(6595,1190,'2','1'),(6612,1190,'1','2'),(6613,1190,'2','2'),(6630,1190,'2','3'),(6639,1190,'2','4'),(6648,1190,'2','5'),(6657,1190,'2','6'),(6666,1190,'2','7'),(6675,1199,'1',''),(6676,1199,'2',''),(6693,1199,'1','0'),(6694,1199,'2','0'),(6711,1199,'1','1'),(6712,1199,'2','1'),(6729,1199,'1','2'),(6730,1199,'2','2'),(6747,1199,'2','3'),(6756,1199,'2','4'),(6765,1199,'2','5'),(6774,1199,'2','6'),(6783,1199,'2','7'),(6792,1208,'1',''),(6793,1208,'2',''),(6810,1208,'1','0'),(6811,1208,'2','0'),(6828,1208,'1','1'),(6829,1208,'2','1'),(6846,1208,'1','2'),(6847,1208,'2','2'),(6864,1208,'1','3'),(6865,1208,'2','3'),(6882,1208,'1','4'),(6883,1208,'2','4'),(6900,1208,'1','5'),(6901,1208,'2','5'),(6918,1208,'1','6'),(6919,1208,'2','6'),(6936,1208,'1','7'),(6937,1208,'2','7'),(6954,1208,'1','8'),(6963,1208,'1','9'),(6972,1217,'1',''),(6973,1217,'2',''),(6990,1217,'1',''),(6991,1217,'2','0'),(7008,1217,'2','1'),(7017,1217,'2','2'),(7026,1217,'2','3'),(7035,1217,'2','4'),(7044,1217,'2','5'),(7053,1217,'2','6'),(7062,1217,'2','7'),(7071,1226,'1',''),(7072,1226,'2',''),(7089,1226,'1',''),(7090,1226,'2','0'),(7107,1226,'1','0'),(7108,1226,'2','1'),(7125,1226,'1','1'),(7126,1226,'2','2'),(7143,1226,'1','2'),(7144,1226,'2','3'),(7161,1226,'2','4'),(7170,1226,'2','5'),(7179,1226,'2','6'),(7188,1226,'2','7'),(7197,1235,'1',''),(7198,1235,'2',''),(7215,1235,'1',''),(7216,1235,'2','0'),(7233,1235,'2','1'),(7242,1235,'2','2'),(7251,1235,'2','3'),(7260,1235,'2','4'),(7269,1235,'2','5'),(7278,1235,'2','6'),(7287,1235,'2','7'),(7296,1244,'1',''),(7297,1244,'2',''),(7314,1244,'1',''),(7315,1244,'2',''),(7332,1244,'1','0'),(7333,1244,'2','0'),(7350,1244,'1','1'),(7351,1244,'2','1'),(7368,1244,'1','2'),(7369,1244,'2','2'),(7386,1244,'2','3'),(7395,1244,'2','4'),(7404,1244,'2','5'),(7413,1244,'2','6'),(7422,1253,'1',''),(7423,1253,'2',''),(7440,1253,'1',''),(7441,1253,'2',''),(7458,1253,'1','0'),(7467,1253,'1','1'),(7476,1253,'1','2'),(7485,1262,'1',''),(7486,1262,'2',''),(7503,1262,'1',''),(7504,1262,'2','0'),(7521,1262,'1','0'),(7522,1262,'2','1'),(7539,1262,'2','2'),(7548,1262,'2','3'),(7557,1262,'2','4'),(7566,1262,'2','5'),(7575,1262,'2','6'),(7584,1262,'2','7'),(7593,1271,'1',''),(7594,1271,'2',''),(7611,1271,'1',''),(7612,1271,'2','7'),(7629,1280,'1',''),(7630,1280,'2',''),(7647,1280,'1',''),(7648,1280,'2','7'),(7665,1289,'1',''),(7666,1289,'2',''),(7683,1289,'1',''),(7684,1289,'2',''),(7701,1298,'1',''),(7702,1298,'2',''),(7719,1298,'1',''),(7720,1298,'2',''),(7737,1307,'1',''),(7738,1307,'2',''),(7755,1307,'1','0'),(7756,1307,'2',''),(7773,1307,'1','1'),(7774,1307,'2','2'),(7791,1307,'1','3'),(7800,1316,'1',''),(7801,1316,'2',''),(7818,1316,'1','0'),(7819,1316,'2',''),(7836,1316,'1','1'),(7837,1316,'2','2'),(7854,1316,'1','2'),(7863,1325,'1',''),(7864,1325,'2',''),(7881,1325,'1','0'),(7882,1325,'2',''),(7899,1325,'1','1'),(7900,1325,'2','2'),(7917,1325,'1','2'),(7926,1334,'1',''),(7927,1334,'2',''),(7944,1334,'1',''),(7945,1334,'2',''),(7962,1334,'1','1'),(7971,1334,'1','2'),(7980,1343,'1',''),(7981,1343,'2',''),(7998,1343,'1','0'),(7999,1343,'2',''),(8016,1343,'1','1'),(8017,1343,'2','2'),(8034,1343,'1','2'),(8043,1343,'1','3'),(8052,1343,'1','4'),(8061,1343,'1','5'),(8070,1343,'1','6'),(8079,1343,'1','7'),(8088,1343,'1','8'),(8097,1343,'1','9'),(8106,1352,'1',''),(8107,1352,'2',''),(8124,1352,'1','0'),(8125,1352,'2',''),(8142,1352,'1','1'),(8143,1352,'2','2'),(8160,1352,'1','2'),(8169,1352,'1','3'),(8178,1352,'1','4'),(8187,1352,'1','5'),(8196,1352,'1','6'),(8205,1352,'1','7'),(8214,1352,'1','8'),(8223,1352,'1','9'),(8232,1361,'1',''),(8233,1361,'2',''),(8250,1361,'1',''),(8251,1361,'2',''),(8268,1370,'1',''),(8269,1370,'2',''),(8286,1370,'1',''),(8287,1370,'2',''),(8304,1379,'1',''),(8305,1379,'2',''),(8322,1379,'1',''),(8323,1379,'2',''),(8340,1388,'1',''),(8341,1388,'2',''),(8358,1388,'1','0'),(8359,1388,'2',''),(8376,1388,'1','1'),(8377,1388,'2','8'),(8394,1397,'1',''),(8395,1397,'2',''),(8412,1397,'1','0'),(8413,1397,'2',''),(8430,1397,'1','1'),(8431,1397,'2','8'),(8448,1406,'1',''),(8449,1406,'2',''),(8466,1406,'1','0'),(8467,1406,'2',''),(8484,1406,'1','1'),(8485,1406,'2','8'),(8502,1415,'1',''),(8503,1415,'2',''),(8520,1415,'1','0'),(8521,1415,'2',''),(8538,1415,'1','1'),(8539,1415,'2','8'),(8556,1424,'1',''),(8557,1424,'2',''),(8574,1424,'1','0'),(8575,1424,'2',''),(8592,1424,'1','1'),(8593,1424,'2','8'),(8610,1433,'1',''),(8611,1433,'2',''),(8628,1433,'1','0'),(8629,1433,'2',''),(8646,1433,'1','1'),(8647,1433,'2','0'),(8664,1433,'2','8'),(8673,1442,'1',''),(8674,1442,'2',''),(8691,1442,'1','0'),(8692,1442,'2',''),(8709,1442,'1','1'),(8710,1442,'2','8'),(8727,1451,'1',''),(8728,1451,'2',''),(8745,1451,'1','0'),(8746,1451,'2',''),(8763,1451,'1','1'),(8764,1451,'2','8'),(8781,1460,'1',''),(8782,1460,'2',''),(8799,1460,'1','0'),(8800,1460,'2',''),(8817,1460,'1','1'),(8818,1460,'2','8'),(8835,1469,'1',''),(8836,1469,'2',''),(8853,1469,'1','0'),(8854,1469,'2',''),(8871,1469,'1','1'),(8872,1469,'2','8'),(8889,1478,'1',''),(8890,1478,'2',''),(8907,1478,'1','0'),(8908,1478,'2',''),(8925,1478,'1','1'),(8926,1478,'2','8'),(8943,1487,'1',''),(8944,1487,'2',''),(8961,1487,'1','0'),(8962,1487,'2','0'),(8979,1487,'1','1'),(8980,1487,'2','1'),(8997,1487,'2','2'),(9006,1487,'2','3'),(9015,1487,'2',''),(9024,1487,'2','5'),(9033,1487,'2','6'),(9042,1487,'2','7'),(9051,1496,'1',''),(9052,1496,'2',''),(9069,1496,'1','0'),(9070,1496,'2','0'),(9087,1496,'1','1'),(9088,1496,'2','1'),(9105,1496,'2','2'),(9114,1496,'2','3'),(9123,1496,'2','4'),(9132,1496,'2','5'),(9141,1496,'2','6'),(9150,1496,'2','7'),(9159,1496,'2','8'),(9168,1505,'1',''),(9169,1505,'2',''),(9186,1505,'1','0'),(9187,1505,'2',''),(9204,1505,'1','1'),(9205,1505,'2','8'),(9222,1514,'1',''),(9223,1514,'2',''),(9240,1514,'1','0'),(9241,1514,'2',''),(9258,1514,'1','1'),(9259,1514,'2','8'),(9276,1523,'1',''),(9277,1523,'2',''),(9294,1523,'1','0'),(9295,1523,'2',''),(9312,1523,'1','1'),(9321,1523,'1','2'),(9330,1532,'1',''),(9331,1532,'2',''),(9348,1532,'1','0'),(9349,1532,'2',''),(9366,1532,'1','1'),(9375,1532,'1','2'),(9384,1541,'2',''),(9393,1541,'1','0'),(9394,1541,'2',''),(9411,1541,'1','1'),(9420,1541,'1','2'),(9429,1550,'1',''),(9430,1550,'2',''),(9447,1550,'1',''),(9448,1550,'2','0'),(9465,1550,'2','1'),(9474,1550,'2','2'),(9483,1550,'2','3'),(9492,1550,'2','4'),(9501,1550,'2','5'),(9510,1550,'2','6'),(9519,1550,'2','7'),(9528,1550,'2','8'),(9537,1550,'2','9'),(9546,1559,'1',''),(9547,1559,'2',''),(9564,1559,'1',''),(9565,1559,'2',''),(9582,1568,'1',''),(9583,1568,'2',''),(9600,1568,'1',''),(9601,1568,'2',''),(9618,1577,'1',''),(9619,1577,'2',''),(9636,1577,'1',''),(9637,1577,'2',''),(9654,1586,'1',''),(9655,1586,'2',''),(9672,1586,'1',''),(9673,1586,'2',''),(9690,1595,'1',''),(9691,1595,'2',''),(9708,1595,'1',''),(9709,1595,'2',''),(9726,1604,'1',''),(9727,1604,'2',''),(9744,1604,'1',''),(9745,1604,'2',''),(9762,1613,'1',''),(9763,1613,'2',''),(9780,1613,'1',''),(9781,1613,'2',''),(9798,1613,'1','0'),(9799,1613,'2','0'),(9816,1613,'1','1'),(9817,1613,'2','1'),(9834,1613,'1','2'),(9835,1613,'2','2'),(9852,1613,'1','3'),(9861,1613,'1','4'),(9870,1613,'1','5'),(9879,1613,'1','6'),(9888,1613,'1','7'),(9897,1613,'1','8'),(9906,1622,'1',''),(9907,1622,'2',''),(9924,1622,'1','0'),(9925,1622,'2','0'),(9942,1622,'1','1'),(9943,1622,'2','1'),(9960,1622,'1','2'),(9961,1622,'2','2'),(9978,1622,'1','3'),(9979,1622,'2','3'),(9996,1631,'1',''),(9997,1631,'2',''),(10014,1631,'1','0'),(10015,1631,'2','0'),(10032,1631,'1','1'),(10033,1631,'2','1'),(10050,1631,'1','2'),(10051,1631,'2','2'),(10068,1631,'1','3'),(10069,1631,'2','3'),(10086,1640,'1',''),(10087,1640,'2',''),(10104,1640,'1',''),(10105,1640,'2',''),(10122,1649,'1',''),(10123,1649,'2',''),(10140,1649,'1',''),(10141,1649,'2',''),(10158,1649,'1','0'),(10159,1649,'2','0'),(10176,1649,'1','1'),(10177,1649,'2','1'),(10194,1649,'1','2'),(10195,1649,'2','2'),(10212,1649,'1','3'),(10213,1649,'2','8'),(10230,1649,'1','4'),(10239,1649,'1','7'),(10248,1658,'1',''),(10249,1658,'2',''),(10266,1658,'1',''),(10267,1658,'2',''),(10284,1658,'1','3'),(10285,1658,'2','0'),(10302,1658,'1','4'),(10303,1658,'2','1'),(10320,1658,'1','5'),(10321,1658,'2','2'),(10338,1658,'2','3'),(10347,1658,'2','4'),(10356,1667,'1',''),(10357,1667,'2',''),(10374,1667,'1',''),(10375,1667,'2',''),(10392,1667,'1','3'),(10393,1667,'2','0'),(10410,1667,'1','4'),(10411,1667,'2','1'),(10428,1667,'1','5'),(10429,1667,'2','2'),(10446,1667,'2','3'),(10455,1667,'2','4'),(10464,1676,'1',''),(10465,1676,'2',''),(10482,1676,'1',''),(10483,1676,'2',''),(10500,1676,'1','4'),(10501,1676,'2','1'),(10518,1676,'1','5'),(10519,1676,'2','3'),(10536,1685,'1',''),(10537,1685,'2',''),(10554,1685,'1',''),(10555,1685,'2','0'),(10572,1685,'1','3'),(10573,1685,'2','1'),(10590,1685,'1','4'),(10591,1685,'2','2'),(10608,1685,'1','5'),(10609,1685,'2','7'),(10626,1694,'1',''),(10627,1694,'2',''),(10644,1694,'1',''),(10645,1694,'2','0'),(10662,1694,'1','3'),(10663,1694,'2','1'),(10680,1694,'1','4'),(10681,1694,'2','2'),(10698,1694,'1','5'),(10699,1694,'2','7'),(10716,1703,'1',''),(10717,1703,'2',''),(10734,1703,'1',''),(10735,1703,'2','0'),(10752,1703,'1','3'),(10753,1703,'2','1'),(10770,1703,'1','4'),(10771,1703,'2','2'),(10788,1703,'1','5'),(10789,1703,'2','7'),(10806,1712,'1',''),(10807,1712,'2',''),(10824,1712,'1',''),(10825,1712,'2',''),(10842,1721,'1',''),(10843,1721,'2',''),(10860,1721,'1',''),(10861,1721,'2',''),(10878,1730,'1',''),(10879,1730,'2',''),(10896,1730,'1',''),(10897,1730,'2',''),(10914,1739,'1',''),(10915,1739,'2',''),(10932,1748,'1',''),(10933,1748,'2',''),(10950,1748,'1','0'),(10951,1748,'2',''),(10968,1748,'1','1'),(10977,1748,'1','2'),(10986,1757,'1',''),(10987,1757,'2',''),(11004,1757,'1',''),(11005,1757,'2','');
76
77
78
--
79
-- Dumping data for table marc_indicators_desc
80
--
81
82
INSERT INTO marc_indicators_desc VALUES (1,'en','Undefined'),(2,'en','Undefined'),(21,'en','Undefined'),(22,'en','Undefined'),(41,'en','Undefined'),(42,'en','Undefined'),(59,'en','Undefined'),(60,'en','Undefined'),(77,'en','Undefined'),(78,'en','Undefined'),(95,'en','Undefined'),(96,'en','Undefined'),(113,'en','National bibliographic agency'),(114,'en','Undefined'),(131,'en','Library and Archives Canada'),(132,'en','Undefined'),(149,'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'),(158,'en','Undefined'),(159,'en','Undefined'),(176,'en','Undefined'),(177,'en','Undefined'),(194,'en','Undefined'),(195,'en','Undefined'),(212,'en','Undefined'),(213,'en','Undefined'),(230,'en','Undefined'),(231,'en','Undefined'),(250,'en','Undefined'),(251,'en','Undefined'),(270,'en','Level of international interest'),(271,'en','Undefined'),(290,'en','No level specified'),(291,'en','Undefined'),(310,'en','Continuing resource of international interest'),(320,'en','Continuing resource not of international interest'),(330,'en','Type of standard number or code'),(331,'en','Difference indicator'),(348,'en','International Standard Recording Code'),(349,'en','No information provided'),(366,'en','Universal Product Code'),(367,'en','No difference'),(384,'en','International Standard Music Number'),(385,'en','Difference'),(402,'en','International Article Number'),(411,'en','Serial Item and Contribution Identifier'),(420,'en','Source specified in sufield $2'),(429,'en','Unspecified type of starndard number or code'),(438,'en','Undefined'),(439,'en','Undefined'),(456,'en','Undefined'),(457,'en','Undefined'),(474,'en','Undefined'),(475,'en','Undefined'),(492,'en','Undefined'),(493,'en','Undefined'),(510,'en','Undefined'),(511,'en','Undefined'),(528,'en','Undefined'),(529,'en','Undefined'),(546,'en','Type of publisher number'),(547,'en','Note/added entry controller'),(564,'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.'),(565,'en','No note, no added entry'),(582,'en','Matrix number. Master from witch the specific recording was pressed.'),(583,'en','Note, added entry'),(600,'en','Plate number. Assigned by a publisher to a specific music publication.'),(601,'en','Note, no added entry'),(618,'en','Other music number'),(619,'en','No note, added entry'),(636,'en','Videorecording number'),(645,'en','Other publisher number'),(654,'en','Undefined'),(655,'en','Undefined'),(672,'en','Undefined'),(673,'en','Undefined'),(690,'en','Undefined'),(691,'en','Undefined'),(708,'en','Undefined'),(709,'en','#- Undefined'),(726,'en','Undefined'),(727,'en','Undefined'),(744,'en','# -Undefined'),(745,'en','Undefined'),(762,'en','Type of date in subfield $a'),(763,'en','Type of event'),(780,'en','No date information'),(781,'en','No information provided'),(798,'en','Single date'),(799,'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'),(816,'en','Multiple single dates'),(817,'en','Broadcast. Pertains to the broadcasting (i.e., transmission) or re-boardcasting of sound or visual images.'),(834,'en','Range of dates'),(835,'en','Finding. Pertains to the finding of a naturally ocurring object.'),(852,'en','Type of scale Specifies the type of scale information given'),(853,'en','Type of ring'),(870,'en','Scale indeterminable/No scale recorded. Used when no representative fraction is given in field 255.'),(871,'en','Not applicable'),(888,'en','Single scale'),(889,'en','Outer ring'),(906,'en','Range of scales'),(907,'en','Exclusion ring'),(924,'en','Undefined'),(925,'en','Undefined'),(942,'en','Undefined'),(943,'en','Undefined'),(960,'en','Undefined'),(961,'en','Undefined'),(978,'en','Undefined'),(979,'en','Undefined'),(996,'en','Undefined'),(997,'en','Undefined'),(1014,'en','# -Undefined'),(1015,'en','Undefined'),(1032,'en','Undefined'),(1033,'en','Undefined'),(1050,'en','# -Undefined'),(1051,'en','Undefined'),(1068,'en','Undefined'),(1069,'en','Undefined'),(1086,'en','Undefined'),(1087,'en','Undefined'),(1104,'en','Translation indication'),(1105,'en','Source of code'),(1122,'en','Item not a translation/ does not include a translation'),(1123,'en','MARC language code'),(1140,'en','Item is or includes a translation'),(1141,'en','Source specified in subfield $2'),(1158,'en','Undefined'),(1159,'en','Undefined'),(1176,'en','Undefined'),(1177,'en','Undefined'),(1194,'en','Undefined'),(1195,'en','Undefined'),(1212,'en','Undefined'),(1213,'en','Undefined'),(1230,'en','Undefined'),(1231,'en','Undefined'),(1248,'en','Undefined'),(1249,'en','Undefined'),(1266,'en','Type of time period in subfield $b or $c'),(1267,'en','Undefined'),(1284,'en','Subfield $b or $c not present'),(1285,'en','Undefined'),(1302,'en','Single date/time'),(1311,'en','Multiple sigle dates/times. Multiple $b and/or $c subfields are present, each containing a date/time.'),(1320,'en','Range of dates/times. Two $b and/or $c subfields are present and contain a range of dates/times'),(1329,'en','Undefined'),(1330,'en','Undefined'),(1347,'en','Undefined'),(1348,'en','Undefined'),(1365,'en','Undefined'),(1366,'en','Undefined'),(1383,'en','# -Undefined'),(1384,'en','Undefined'),(1401,'en','Undefined'),(1402,'en','Undefined'),(1419,'en','Undefined'),(1420,'en','Undefined'),(1437,'en','Existence in LC collection'),(1438,'en','Source of call number'),(1457,'en','No information provided. Used for all call numbers assigned by agencies other than the Library of Congress'),(1458,'en','Assigned by LC. Used when an institution is transcribing from lC cataloging copy.'),(1477,'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'),(1478,'en','Assigned by agency other than LC.'),(1497,'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.'),(1507,'en','Undefined'),(1508,'en','Undefined'),(1525,'en','Undefined'),(1526,'en','Undefined'),(1543,'en','Code source'),(1544,'en','Undefined'),(1561,'en','Library of Congress Classification'),(1562,'en','Undefined'),(1579,'en','U.S. Dept. of Defense Classification'),(1588,'en','Source specified in subfield $2'),(1597,'en','Existence in LAC collection'),(1598,'en','Type, completeness, source of class/call number'),(1615,'en','Information not provided. Used in any record input by an institution other than LAC.'),(1616,'en','LC - based call number assigned by LAC'),(1633,'en','Work held by LAC'),(1634,'en','Complete LC class number assigned by LAC'),(1651,'en','Work not held by LAC'),(1652,'en','Incomplete LC class number asigned by LAC'),(1669,'en','LC- based call number assigned by the contibuting library'),(1678,'en','4 -Complete LC class number assigned by the contributing library'),(1687,'en','Incomplete LC class number assigned by de contributing library'),(1696,'en','Other call number assigned by LAC'),(1705,'en','Other class number assigned by LAC'),(1714,'en','Other call number assigned by the contributing library'),(1723,'en','Other class number assigned by the contributing library'),(1732,'en','Existence in NLM collection'),(1733,'en','Source of call number'),(1750,'en','# -No information provided. Used for call numbers assigned by an organization other than NLM'),(1751,'en','Assigned by NLM'),(1768,'en','Item is in NLM'),(1769,'en','Assigned by agency other than NLM'),(1786,'en','Item is not in NLM'),(1795,'en','Undefined'),(1796,'en','Undefined'),(1813,'en','Undefined'),(1814,'en','Undefined'),(1831,'en','Undefined'),(1832,'en','Undefined'),(1849,'en','# -Undefined'),(1850,'en','Undefined'),(1867,'en','Existence in NAL collection'),(1868,'en','Undefined'),(1885,'en','Item is in NAL'),(1886,'en','Undefined'),(1903,'en','Item is not in NAL'),(1912,'en','Undefined'),(1913,'en','Undefined'),(1930,'en','Undefined'),(1931,'en','# -Undefined'),(1948,'en','Undefined'),(1949,'en','Code source'),(1966,'en','Undefined'),(1967,'en','0 -NAL subject category code list'),(1984,'en','Source specified in subfield $2'),(1993,'en','Undefined'),(1994,'en','Undefined'),(2011,'en','Undefined'),(2012,'en','# -Undefined'),(2029,'en','Undefined'),(2030,'en','Undefined'),(2047,'en','Undefined'),(2048,'en','Undefined'),(2065,'en','Type of edition'),(2066,'en','Source of classification number'),(2083,'en','Full edition'),(2084,'en','No information provided'),(2101,'en','Abridged edition'),(2102,'en','Assigned by LC. May be used by organizations transcribing from LC copy'),(2119,'en','Assigned by agency other than LC'),(2128,'en','Undefined'),(2129,'en','Undefined'),(2146,'en','Undefined'),(2147,'en','Undefined'),(2164,'en','Number source'),(2165,'en','Undefined'),(2182,'en','Source specified in subfield $2. Classification number other than the U.S. or Canadian scheme'),(2183,'en','Undefined'),(2200,'en','Superintendent of Documents Classification System. Assigned by the U.S. Government Printing Office. Supt.of Docs.no.: may be generated for display'),(2209,'en','Government of Canada Publications: Outline of Classification'),(2218,'en','Undefined'),(2219,'en','Undefined'),(2236,'en','Undefined'),(2237,'en','# -Undefined'),(2254,'en','Type of personal name entry element'),(2255,'en','Undefined'),(2274,'en','Forename. Forename or a name consisting of words, initials, letters,etc., that are formatted in direc order'),(2275,'en','Undefined'),(2294,'en','Surname. Single or multiple surname formatted in inverted order or a single name without forenames that is known to be a surname.'),(2304,'en','Family name. Name represents a family, clan, dynasty, house, or other such group and may be formatted in direct or inverted order.'),(2314,'en','Type of corporate name entry element'),(2315,'en','Undefined'),(2332,'en','Inverted name. Corporate name begins with a personal name in inverted order.'),(2333,'en','Undefined'),(2350,'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.'),(2359,'en','Name in direct order.'),(2368,'en','Type of meeting name entry element'),(2369,'en','Undefined'),(2386,'en','Inverted name. Meeting name begins with a personal name in inverted order.'),(2387,'en','Undefined'),(2404,'en','1 -Jurisdiction name. Jurisdiction name under which a meeting name is entered'),(2413,'en','Name in direct order'),(2422,'en','Nonfiling characters'),(2423,'en','Undefined'),(2440,'en','Number of nonfiling characters'),(2441,'en','Undefined'),(2458,'en','Number of nonfiling characters'),(2467,'en','Number of nonfiling characters'),(2476,'en','Number of nonfiling characters'),(2485,'en','Number of nonfiling characters'),(2494,'en','Number of nonfiling characters'),(2503,'en','Number of nonfiling characters'),(2512,'en','Number of nonfiling characters'),(2521,'en','Number of nonfiling characters'),(2530,'en','Number of nonfiling characters'),(2539,'en','Title added entry'),(2540,'en','Type'),(2557,'en','No added entry'),(2558,'en','Abbreviated key title'),(2575,'en','Added entry'),(2576,'en','Other abbreviated title'),(2593,'en','Undefined'),(2594,'en','Nonfiling characters'),(2611,'en','Undefined'),(2612,'en','No nonfiling characters'),(2629,'en','Number of nonfiling characters'),(2638,'en','Number of nonfiling characters'),(2647,'en','Number of nonfiling characters'),(2656,'en','Number of nonfiling characters'),(2665,'en','Number of nonfiling characters'),(2674,'en','Number of nonfiling characters'),(2683,'en','Number of nonfiling characters'),(2692,'en','Number of nonfiling characters'),(2701,'en','Number of nonfiling characters'),(2710,'en','Uniform title printed or displayed'),(2711,'en','Nonfiling characters'),(2728,'en','Not printed or displayed'),(2729,'en','Number of nonfiling characters'),(2746,'en','Printed or displayed'),(2747,'en','Number of nonfiling characters'),(2764,'en','Number of nonfiling characters'),(2773,'en','Number of nonfiling characters'),(2782,'en','Number of nonfiling characters'),(2791,'en','Number of nonfiling characters'),(2800,'en','Number of nonfiling characters'),(2809,'en','Number of nonfiling characters'),(2818,'en','Number of nonfiling characters'),(2827,'en','Number of nonfiling characters'),(2836,'en','Title added entry'),(2837,'en','Nonfiling characters'),(2854,'en','No added entry'),(2855,'en','No nonfiling characters'),(2872,'en','Added entry'),(2873,'en','Number of nonfiling characters'),(2890,'en','Number of nonfiling characters'),(2899,'en','Number of nonfiling characters'),(2908,'en','Number of nonfiling characters'),(2917,'en','Number of nonfiling characters'),(2926,'en','Number of nonfiling characters'),(2935,'en','Number of nonfiling characters'),(2944,'en','Number of nonfiling characters'),(2953,'en','Number of nonfiling characters'),(2962,'en','Title added entry'),(2963,'en','Nonfiling characters'),(2982,'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'),(2983,'en','No nonfiling characters'),(3002,'en','Added entry. Desired title added entry is the same as the title in field 245'),(3003,'en','Number of nonfiling characters'),(3022,'en','Number of nonfiling characters'),(3032,'en','Number of nonfiling characters'),(3042,'en','Number of nonfiling characters'),(3052,'en','Number of nonfiling characters'),(3062,'en','Number of nonfiling characters'),(3072,'en','Number of nonfiling characters'),(3082,'en','Number of nonfiling characters'),(3092,'en','Number of nonfiling characters'),(3102,'en','Note/added entry controller'),(3103,'en','Type of title'),(3120,'en','Note, no added entry'),(3121,'en','No type specified'),(3138,'en','Note, added entry'),(3139,'en','Portion of title'),(3156,'en','No note, no added entry'),(3157,'en','Parallel title'),(3174,'en','No note, added entry'),(3175,'en','Distintictive title'),(3192,'en','Other title'),(3201,'en','Cover title'),(3210,'en','Added title page title'),(3219,'en','Caption title'),(3228,'en','Running title'),(3237,'en','Spine title'),(3246,'en','Title added entry'),(3247,'en','Note controller'),(3264,'en','No added entry'),(3265,'en','Display note'),(3282,'en','Added entry'),(3283,'en','Do not display note'),(3300,'en','Undefined'),(3301,'en','Undefined'),(3320,'en','Undefined'),(3321,'en','Undefined'),(3340,'en','Undefined'),(3341,'en','Undefined'),(3358,'en','Undefined'),(3359,'en','Undefined'),(3376,'en','Undefined'),(3377,'en','Undefined'),(3394,'en','Undefined'),(3395,'en','Undefined'),(3412,'en','Undefined'),(3413,'en','Undefined'),(3430,'en','Undefined'),(3431,'en','Undefined'),(3448,'en','Undefined'),(3449,'en','Undefined'),(3466,'en','Undefined'),(3467,'en','Undefined'),(3484,'en','Undefined'),(3485,'en','Undefined'),(3502,'en','Undefined'),(3503,'en','Undefined'),(3520,'en','Sequence of publishing statements'),(3521,'en','Undefined'),(3540,'en','Not applicable/ No information provided/ Earliest available publisher'),(3541,'en','Undefined'),(3560,'en','Intervening publisher'),(3570,'en','3- Current/latest publisher'),(3580,'en','Undefined'),(3581,'en','Undefined'),(3598,'en','# -Undefined'),(3599,'en','# -Undefined'),(3616,'en','Level'),(3617,'en','Type of address'),(3634,'en','No level specified'),(3635,'en','No type specified'),(3652,'en','Primary'),(3653,'en','Mailing'),(3670,'en','Secondary'),(3671,'en','Type specified in subfield $i'),(3688,'en','Undefined'),(3689,'en','Undefined'),(3708,'en','# -Undefined'),(3709,'en','# -Undefined'),(3728,'en','Undefined'),(3729,'en','Undefined'),(3746,'en','Undefined'),(3747,'en','Undefined'),(3764,'en','Display constant controller'),(3765,'en','Undefined'),(3782,'en','Hours'),(3783,'en','Undefined'),(3800,'en','No display constant generated'),(3809,'en','Undefined'),(3810,'en','Undefined'),(3827,'en','Undefined'),(3828,'en','Undefined'),(3845,'en','Undefined'),(3846,'en','Undefined'),(3863,'en','Undefined'),(3864,'en','Undefined'),(3881,'en','Undefined'),(3882,'en','Undefined'),(3899,'en','Undefined'),(3900,'en','Undefined'),(3917,'en','Geospatial reference dimension'),(3918,'en','Geospatial reference method'),(3935,'en','Horizontal coordinate system'),(3936,'en','Geographic'),(3953,'en','Vertical coordinate system'),(3954,'en','Map projection'),(3971,'en','Grid coordinate system'),(3980,'en','Local planar'),(3989,'en','Local'),(3998,'en','Geodentic model'),(4007,'en','Altitude'),(4016,'en','Method specified in $2'),(4025,'en','Depth'),(4034,'en','Undefined'),(4035,'en','Undefined'),(4052,'en','# -Undefined'),(4053,'en','# -Undefined'),(4070,'en','Undefined'),(4071,'en','Undefined'),(4088,'en','Undefined'),(4089,'en','Undefined'),(4106,'en','Undefined'),(4107,'en','Undefined'),(4124,'en','Undefined'),(4125,'en','# -Undefined'),(4142,'en','Controlled element'),(4143,'en','Undefined'),(4160,'en','Document'),(4161,'en','Undefined'),(4178,'en','Title'),(4187,'en','Abstract'),(4196,'en','Contents note'),(4205,'en','Author'),(4214,'en','Record'),(4223,'en','None of the above'),(4232,'en','Undefined'),(4233,'en','Undefined'),(4250,'en','# -Undefined'),(4251,'en','Undefined'),(4268,'en','Format of date'),(4269,'en','Undefined'),(4286,'en','Formatted style'),(4287,'en','Undefined'),(4304,'en','Unformatted note'),(4313,'en','Undefined'),(4314,'en','Undefined'),(4331,'en','Undefined'),(4332,'en','Undefined'),(4349,'en','Undefined'),(4350,'en','Undefined'),(4367,'en','Undefined'),(4368,'en','Undefined'),(4385,'en','Series tracing policy'),(4386,'en','Undefined'),(4403,'en','Series not traced'),(4404,'en','Undefined'),(4421,'en','Series traced'),(4430,'en','Undefined'),(4431,'en','Undefined'),(4450,'en','Undefined'),(4451,'en','Undefined'),(4470,'en','Undefined'),(4471,'en','Undefined'),(4488,'en','Undefined'),(4489,'en','Undefined'),(4506,'en','Undefined'),(4507,'en','Undefined'),(4524,'en','Undefined'),(4525,'en','Undefined'),(4542,'en','Undefined'),(4543,'en','Undefined'),(4560,'en','Undefined'),(4561,'en','Undefined'),(4578,'en','Display constant controller'),(4579,'en','Level of content designation'),(4596,'en','Contents'),(4597,'en','Basic'),(4614,'en','Incomplete contents'),(4615,'en','Enhanced'),(4632,'en','Partial contents'),(4641,'en','No display constant generated'),(4650,'en','Restriction'),(4651,'en','Undefined'),(4668,'en','No information provided'),(4669,'en','Undefined'),(4686,'en','No restrictions'),(4695,'en','Restrictions apply'),(4704,'en','Undefined'),(4705,'en','Undefined'),(4722,'en','Undefined'),(4723,'en','Undefined'),(4740,'en','Undefined'),(4741,'en','Undefined'),(4758,'en','Undefined'),(4759,'en','Undefined'),(4776,'en','Coverage/location in source'),(4777,'en','Undefined'),(4794,'en','Coverage unknown'),(4795,'en','Undefined'),(4812,'en','Coverage complete'),(4821,'en','Coverage is selective'),(4830,'en','Location in source not given'),(4839,'en','Location in source given'),(4848,'en','Display constant controller'),(4849,'en','Undefined'),(4866,'en','No display constant generated'),(4867,'en','Undefined'),(4884,'en','Cast'),(4893,'en','Undefined'),(4894,'en','Undefined'),(4911,'en','# -Undefined'),(4912,'en','Undefined'),(4929,'en','Undefined'),(4930,'en','Undefined'),(4947,'en','Undefined'),(4948,'en','Undefined'),(4965,'en','Undefined'),(4966,'en','Undefined'),(4983,'en','Undefined'),(4984,'en','Undefined'),(5001,'en','Display constant controller'),(5002,'en','Undefined'),(5019,'en','Type of file'),(5020,'en','Undefined'),(5037,'en','No display constant generated'),(5046,'en','Undefined'),(5047,'en','Undefined'),(5064,'en','Undefined'),(5065,'en','Undefined'),(5082,'en','Display constant controller'),(5083,'en','Undefined'),(5100,'en','Summary'),(5101,'en','Undefined'),(5118,'en','Subject'),(5127,'en','Review'),(5136,'en','Scope and content'),(5145,'en','Content advice'),(5154,'en','Abstract'),(5163,'en','No display constant generated'),(5172,'en','Display constant controller'),(5173,'en','Undefined'),(5190,'en','Audience'),(5191,'en','Undefined'),(5208,'en','Reading grade level'),(5217,'en','Interest age level'),(5226,'en','Interest grade level'),(5235,'en','Special audience characteristics'),(5244,'en','Motivation/interest level'),(5253,'en','No display constant generated'),(5262,'en','Display constant controller'),(5263,'en','Undefined'),(5280,'en','Geographic coverage'),(5281,'en','Undefined'),(5298,'en','No display constant generated'),(5307,'en','Display constant controller'),(5308,'en','Undefined'),(5325,'en','Cite as'),(5326,'en','Undefined'),(5343,'en','No display constant generated'),(5352,'en','Undefined'),(5353,'en','Undefined'),(5370,'en','# -Undefined'),(5371,'en','Undefined'),(5388,'en','Display constant controller'),(5389,'en','Undefined'),(5406,'en','Reading program'),(5407,'en','Undefined'),(5424,'en','No display constant generated'),(5433,'en','Undefined'),(5434,'en','Undefined'),(5451,'en','Undefined'),(5452,'en','Undefined'),(5469,'en','Undefined'),(5470,'en','Undefined'),(5487,'en','# -Undefined'),(5488,'en','Undefined'),(5505,'en','Undefined'),(5506,'en','Undefined'),(5523,'en','Undefined'),(5524,'en','Undefined'),(5541,'en','Custodial role'),(5542,'en','Undefined'),(5559,'en','Holder of originals'),(5560,'en','Undefined'),(5577,'en','Holder of duplicates'),(5586,'en','Undefined'),(5587,'en','Undefined'),(5604,'en','# -Undefined'),(5605,'en','Undefined'),(5622,'en','Undefined'),(5623,'en','Undefined'),(5640,'en','Undefined'),(5641,'en','Undefined'),(5658,'en','Undefined'),(5659,'en','Undefined'),(5676,'en','Undefined'),(5677,'en','Undefined'),(5694,'en','Undefined'),(5695,'en','Undefined'),(5712,'en','# -Undefined'),(5713,'en','Undefined'),(5730,'en','Relationship'),(5731,'en','Undefined'),(5748,'en','No information provided'),(5749,'en','Undefined'),(5766,'en','Associated materials. Other materials identified in the note  have the same provenance but reside in a different repository'),(5775,'en','Related materials. Other materials identified in the note share of activity, reside in the same repository, but have different provenance.'),(5784,'en','Undefined'),(5785,'en','Undefined'),(5802,'en','Undefined'),(5803,'en','Undefined'),(5820,'en','Undefined'),(5821,'en','Undefined'),(5838,'en','Undefined'),(5839,'en','Undefined'),(5856,'en','Undefined'),(5857,'en','Undefined'),(5874,'en','Undefined'),(5875,'en','Undefined'),(5892,'en','Undefined'),(5893,'en','Undefined'),(5910,'en','Undefined'),(5911,'en','Undefined'),(5928,'en','Display constant controller'),(5929,'en','Undefined'),(5946,'en','Undefined'),(5955,'en','No display constant generated'),(5964,'en','Display constant controller'),(5965,'en','Undefined'),(5982,'en','Undefined'),(5991,'en','No display constant generated'),(6000,'en','Undefined'),(6001,'en','Undefined'),(6018,'en','# -Undefined'),(6019,'en','Undefined'),(6036,'en','Undefined'),(6037,'en','Undefined'),(6054,'en','# -Undefined'),(6055,'en','Undefined'),(6072,'en','Undefined'),(6073,'en','Undefined'),(6090,'en','Undefined'),(6091,'en','Undefined'),(6108,'en','Display constant controller'),(6109,'en','Undefined'),(6126,'en','File size'),(6127,'en','Undefined'),(6144,'en','Case file characteristics'),(6153,'en','No display constant generated'),(6162,'en','Display constant controller'),(6163,'en','Undefined'),(6180,'en','Methodology'),(6181,'en','# -Undefined'),(6198,'en','No display constant generated'),(6207,'en','Undefined'),(6208,'en','Undefined'),(6225,'en','# -Undefined'),(6226,'en','Undefined'),(6243,'en','Display constant controller'),(6244,'en','Undefined'),(6261,'en','Publications'),(6262,'en','Undefined'),(6279,'en','No display constant generated'),(6288,'en','Undefined'),(6289,'en','Undefined'),(6306,'en','# -Undefined'),(6307,'en','Undefined'),(6324,'en','Undefined'),(6325,'en','Undefined'),(6342,'en','Undefined'),(6343,'en','Undefined'),(6360,'en','Undefined'),(6361,'en','Undefined'),(6378,'en','Undefined'),(6379,'en','# -Undefined'),(6396,'en','Display constant controller'),(6397,'en','Undefined'),(6414,'en','Awards'),(6415,'en','Undefined'),(6432,'en','No display constant generated'),(6441,'en','Type of personal name entry element'),(6442,'en','Thesaurus'),(6459,'en','Forename'),(6460,'en','0 -Library of Congress Subject Headings'),(6477,'en','Surname.'),(6478,'en','LC subject headings for children''s literature.'),(6495,'en','Family Name'),(6496,'en','Medical Subject Headings. '),(6513,'en','National Agricultural Library subject authority file'),(6522,'en','Source not specified'),(6531,'en','Canadian Subject Headings'),(6540,'en','Repertoire de vedettes-matiere'),(6549,'en','Source specified in subfield $2'),(6558,'en','Type of corporate name entry element'),(6559,'en','Thesaurus'),(6576,'en','Inverted name'),(6577,'en','Library of Congress Subject Headings'),(6594,'en','Juridistion name'),(6595,'en','LC subject headings for children''s literature.'),(6612,'en','Name in direct order'),(6613,'en','Medical Subject Headings.'),(6630,'en','National Agricultural Library subject authority file'),(6639,'en','Source not specified'),(6648,'en','Canadian Subject Headings'),(6657,'en','Repertoire de vedettes-matiere. '),(6666,'en','Source specified in subfield $2'),(6675,'en','Type of meeting name entry element'),(6676,'en','Thesaurus'),(6693,'en','Inverted name'),(6694,'en','Library of Congress Subject Headings'),(6711,'en','Juridistion name'),(6712,'en','LC subject headings for children''s literature. '),(6729,'en','Name in direct order'),(6730,'en','Medical Subject Headings. '),(6747,'en','National Agricultural Library subject authority file'),(6756,'en','Source not specified'),(6765,'en','Canadian Subject Headings'),(6774,'en','Repertoire de vedettes-matiere'),(6783,'en','Source specified in subfield $2'),(6792,'en','Nonfiling characters'),(6793,'en','Thesaurus'),(6810,'en','Number of nonfiling characters'),(6811,'en','Library of Congress Subject Headings'),(6828,'en','Number of nonfiling characters'),(6829,'en','LC subject headings for children''s literature. '),(6846,'en','Number of nonfiling characters'),(6847,'en','Medical Subject Headings. '),(6864,'en','Number of nonfiling characters'),(6865,'en','National Agricultural Library subject authority file'),(6882,'en','Number of nonfiling characters'),(6883,'en','Source not specified'),(6900,'en','Number of nonfiling characters'),(6901,'en','Canadian Subject Headings'),(6918,'en','Number of nonfiling characters'),(6919,'en','Repertoire de vedettes-matiere'),(6936,'en','Number of nonfiling characters'),(6937,'en','Source specified in subfield $2'),(6954,'en','Number of nonfiling characters'),(6963,'en','Number of nonfiling characters'),(6972,'en','Undefined'),(6973,'en','Thesaurus'),(6990,'en','Undefined'),(6991,'en','Library of Congress Subject Headings'),(7008,'en','LC subject headings for children''s literature. '),(7017,'en','Medical Subject Headings. '),(7026,'en','National Agricultural Library subject authority file'),(7035,'en','Source not specified'),(7044,'en','Canadian Subject Headings'),(7053,'en','Repertoire de vedettes-matiere'),(7062,'en','Source specified in subfield $2'),(7071,'en','Level of subject'),(7072,'en','Thesaurus'),(7089,'en','No information provided'),(7090,'en','Library of Congress Subject Headings'),(7107,'en','No level specified'),(7108,'en','LC subject headings for children''s literature. '),(7125,'en','Primary'),(7126,'en','Medical Subject Headings. '),(7143,'en','Secondary'),(7144,'en','National Agricultural Library subject authority file'),(7161,'en','Source not specified'),(7170,'en','Canadian Subject Headings'),(7179,'en','Repertoire de vedettes-matiere'),(7188,'en','Source specified in subfield $2'),(7197,'en','Undefined'),(7198,'en','Thesaurus'),(7215,'en','Undefined'),(7216,'en','Library of Congress Subject Headings'),(7233,'en','LC subject headings for children''s literature. '),(7242,'en','Medical Subject Headings. '),(7251,'en','National Agricultural Library subject authority file'),(7260,'en','Source not specified'),(7269,'en','Canadian Subject Headings'),(7278,'en','Repertoire de vedettes-matiere'),(7287,'en','Source specified in subfield $2'),(7296,'en','Level of index term'),(7297,'en','Type of term or name'),(7314,'en','No information provided'),(7315,'en','No information provided'),(7332,'en','No level specified'),(7333,'en','Topical term'),(7350,'en','Primary'),(7351,'en','Personal name'),(7368,'en','Secondary'),(7369,'en','Corporate name'),(7386,'en','Meeting name'),(7395,'en','Chronological term'),(7404,'en','Geographic name'),(7413,'en','Genre/form term'),(7422,'en','Level of subject'),(7423,'en','Undefined'),(7440,'en','No information provided'),(7441,'en','Undefined'),(7458,'en','No level specified'),(7467,'en','Primary'),(7476,'en','Secondary'),(7485,'en','Type of heading'),(7486,'en','Thesaurus'),(7503,'en','Basic'),(7504,'en','Library of Congress Subject Headings'),(7521,'en','Faceted'),(7522,'en','LC subject headings for children''s literature. '),(7539,'en','Medical Subject Headings. '),(7548,'en','National Agricultural Library subject authority file'),(7557,'en','Source not specified'),(7566,'en','Canadian Subject Headings'),(7575,'en','Repertoire de vedettes-matiere'),(7584,'en','Source specified in subfield $2'),(7593,'en','Undefined'),(7594,'en','Source of term'),(7611,'en','Undefined'),(7612,'en','Source specified in subfield $2'),(7629,'en','Undefined'),(7630,'en','Source of term'),(7647,'en','Undefined'),(7648,'en','Source specified in subfield $2'),(7665,'en','Undefined'),(7666,'en','Undefined'),(7683,'en','Undefined'),(7684,'en','Undefined'),(7701,'en','Undefined'),(7702,'en','Undefined'),(7719,'en','Undefined'),(7720,'en','Undefined'),(7737,'en','Type of personal name entry element'),(7738,'en','Type of added entry'),(7755,'en','Forename'),(7756,'en','No information provided'),(7773,'en','Surname.'),(7774,'en','Analytical entry'),(7791,'en','Family name'),(7800,'en','Type or corporate name entry element'),(7801,'en','Type of added entry'),(7818,'en','Inverted name'),(7819,'en','No information provided'),(7836,'en','Juridistion name'),(7837,'en','Analytical entry'),(7854,'en','Name in direct order'),(7863,'en','Type of meeting name entry element'),(7864,'en','Type of added entry'),(7881,'en','Inverted name'),(7882,'en','No information provided'),(7899,'en','Juridistion name'),(7900,'en','Analytical entry'),(7917,'en','Name in direct order'),(7926,'en','Type of name'),(7927,'en','Undefined'),(7944,'en','Not specified'),(7945,'en','Undefined'),(7962,'en','Personal'),(7971,'en','Other'),(7980,'en','Nonfiling characters'),(7981,'en','Type of added entry'),(7998,'en','Number of nonfiling characters'),(7999,'en','No information provided'),(8016,'en','Number of nonfiling characters'),(8017,'en','Analytical entry'),(8034,'en','Number of nonfiling characters'),(8043,'en','Number of nonfiling characters'),(8052,'en','Number of nonfiling characters'),(8061,'en','Number of nonfiling characters'),(8070,'en','Number of nonfiling characters'),(8079,'en','Number of nonfiling characters'),(8088,'en','Number of nonfiling characters'),(8097,'en','Number of nonfiling characters'),(8106,'en','Nonfiling characters'),(8107,'en','Type of added entry'),(8124,'en','No nonfiling characters'),(8125,'en','No information provided'),(8142,'en','Number of nonfiling characters'),(8143,'en','Analytical entry'),(8160,'en','Number of nonfiling characters'),(8169,'en','Number of nonfiling characters'),(8178,'en','Number of nonfiling characters'),(8187,'en','Number of nonfiling characters'),(8196,'en','Number of nonfiling characters'),(8205,'en','Number of nonfiling characters'),(8214,'en','Number of nonfiling characters'),(8223,'en','Number of nonfiling characters'),(8232,'en','Undefined'),(8233,'en','Undefined'),(8250,'en','Undefined'),(8251,'en','Undefined'),(8268,'en','Undefined'),(8269,'en','Undefined'),(8286,'en','Undefined'),(8287,'en','Undefined'),(8304,'en','Undefined'),(8305,'en','Undefined'),(8322,'en','Undefined'),(8323,'en','Undefined'),(8340,'en','Note controller'),(8341,'en','Display constant controller'),(8358,'en','Display note'),(8359,'en','Main series'),(8376,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8377,'en','No display constant generated'),(8394,'en','Note controller'),(8395,'en','Display constant controller'),(8412,'en','Display note'),(8413,'en','Has subseries'),(8430,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8431,'en','No display constant generated'),(8448,'en','Note controller'),(8449,'en','Display constant controller'),(8466,'en','Display note'),(8467,'en','Translation of'),(8484,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8485,'en','No display constant generated'),(8502,'en','Note controller'),(8503,'en','Display constant controller'),(8520,'en','Display note'),(8521,'en','Translated as'),(8538,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8539,'en','No display constant generated'),(8556,'en','Note controller'),(8557,'en','Display constant controller'),(8574,'en','Display note'),(8575,'en','Has supplement'),(8592,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8593,'en','No display constant generated'),(8610,'en','Note controller'),(8611,'en','Display constant controller'),(8628,'en','Display note'),(8629,'en','Supplement to'),(8646,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8647,'en','Parent'),(8664,'en','No display constant generated'),(8673,'en','Note controller'),(8674,'en','Display constant controller'),(8691,'en','Display note'),(8692,'en','In'),(8709,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8710,'en','No display constant generated'),(8727,'en','Note controller'),(8728,'en','Display constant controller'),(8745,'en','Display note'),(8746,'en','Constituent unit'),(8763,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8764,'en','No display constant generated'),(8781,'en','Note controller'),(8782,'en','Display constant controller'),(8799,'en','Display note'),(8800,'en','Other edition available'),(8817,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8818,'en','No display constant generated'),(8835,'en','Note controller'),(8836,'en','Display constant controller'),(8853,'en','Display note'),(8854,'en','Available in another form'),(8871,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8872,'en','No display constant generated'),(8889,'en','Note controller'),(8890,'en','Display constant controller'),(8907,'en','Display note'),(8908,'en','Issued with'),(8925,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8926,'en','No display constant generated'),(8943,'en','Note controller'),(8944,'en','Type of relationship'),(8961,'en','Display note'),(8962,'en','Continues'),(8979,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8980,'en','Continues in part'),(8997,'en','Supersedes'),(9006,'en','Supersedes in part'),(9015,'en','4 -Formed by the union of ... and ...'),(9024,'en','Absorbed'),(9033,'en','Absorbed in part'),(9042,'en','Separated from'),(9051,'en','Note controller'),(9052,'en','Type of relationship'),(9069,'en','Display note'),(9070,'en','Continued by'),(9087,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(9088,'en','Continued in part by'),(9105,'en','Superseded in part by'),(9114,'en','Superseded in part by'),(9123,'en','Absorbed by'),(9132,'en','Absorbed in part by'),(9141,'en','Split into... and ...'),(9150,'en','Merged with ... To form...'),(9159,'en','Changed back to'),(9168,'en','Note controller'),(9169,'en','Display constant controller'),(9186,'en','Display note'),(9187,'en','Data source'),(9204,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(9205,'en','No display constant generated'),(9222,'en','Note controller'),(9223,'en','Display constant controller'),(9240,'en','Display note'),(9241,'en','Related item'),(9258,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(9259,'en','No display constant generated'),(9276,'en','Type of personal name entry element'),(9277,'en','Undefined'),(9294,'en','Forename'),(9295,'en','Undefined'),(9312,'en','Surname.'),(9321,'en','Family Name'),(9330,'en','Type of corporate name entry element'),(9331,'en','Undefined'),(9348,'en','Inverted name'),(9349,'en','Undefined'),(9366,'en','Juridistion name'),(9375,'en','Name in direct order'),(9384,'en','Undefined'),(9393,'en','Inverted name'),(9394,'en','Undefined'),(9411,'en','Juridistion name'),(9420,'en','Name in direct order'),(9429,'en','Undefined'),(9430,'en','Nonfiling characters'),(9447,'en','Undefined'),(9448,'en','No nonfiling characters'),(9465,'en','Number of nonfiling characters'),(9474,'en','Number of nonfiling characters'),(9483,'en','Number of nonfiling characters'),(9492,'en','Number of nonfiling characters'),(9501,'en','Number of nonfiling characters'),(9510,'en','Number of nonfiling characters'),(9519,'en','Number of nonfiling characters'),(9528,'en','Number of nonfiling characters'),(9537,'en','Number of nonfiling characters'),(9546,'en','Undefined'),(9547,'en','Undefined'),(9564,'en','Undefined'),(9565,'en','Undefined'),(9582,'en','Undefined'),(9583,'en','Undefined'),(9600,'en','Undefined'),(9601,'en','# -Undefined'),(9618,'en','Undefined'),(9619,'en','Undefined'),(9636,'en','Undefined'),(9637,'en','Undefined'),(9654,'en','Undefined'),(9655,'en','Undefined'),(9672,'en','Undefined'),(9673,'en','Undefined'),(9690,'en','Undefined'),(9691,'en','Undefined'),(9708,'en','Undefined'),(9709,'en','# -Undefined'),(9726,'en','Undefined'),(9727,'en','Undefined'),(9744,'en','Undefined'),(9745,'en','Undefined'),(9762,'en','Shelving scheme'),(9763,'en','Shelving order'),(9780,'en','No information provided'),(9781,'en','No information provided'),(9798,'en','Library of Congress classification'),(9799,'en','Not enumeration'),(9816,'en','Dewey Decimal classification'),(9817,'en','Primary enumeration'),(9834,'en','National Library of Medicine classification'),(9835,'en','Alternative enumeration'),(9852,'en','Superintendent of Document classification'),(9861,'en','Shelving control number'),(9870,'en','Title'),(9879,'en','Shelved separately'),(9888,'en','Source specified in subfield $2'),(9897,'en','Other scheme'),(9906,'en','Compressibility and expandability'),(9907,'en','Caption evaluation'),(9924,'en','Cannot compress or expand'),(9925,'en','Captions verified; all levels present'),(9942,'en','Can compress but not expand'),(9943,'en','Captions verified; all levels may not be present'),(9960,'en','Can compress or expand'),(9961,'en','Captions unverified; all levels present'),(9978,'en','Unknown'),(9979,'en','Captions unverified; all levels may not be present'),(9996,'en','Compressibility and expandability'),(9997,'en','Caption evaluation'),(10014,'en','Cannot compress or expand'),(10015,'en','Captions verified; all levels present'),(10032,'en','Can compress but not expand'),(10033,'en','Captions verified; all levels may not be present'),(10050,'en','Can compress or expand'),(10051,'en','Captions unverified; all levels present'),(10068,'en','Unknown'),(10069,'en','Captions unverified; all levels may not be present'),(10086,'en','Undefined'),(10087,'en','Undefined'),(10104,'en','Undefined'),(10105,'en','Undefined'),(10122,'en','Access method'),(10123,'en','Relationship'),(10140,'en','No information provided'),(10141,'en','No information provided'),(10158,'en','E-mail'),(10159,'en','Resource'),(10176,'en','FTP'),(10177,'en','Version of resource'),(10194,'en','Remote login (Telnet)'),(10195,'en','Related resource'),(10212,'en','Dial-up'),(10213,'en','No display constant generated'),(10230,'en','HTTP'),(10239,'en','Method specidied in subfield $2.'),(10248,'en','Field encoding level'),(10249,'en','Form of holdings'),(10266,'en','No information provided'),(10267,'en','No information provided'),(10284,'en','Holdings level 3'),(10285,'en','Compressed'),(10302,'en','Holdings level 4'),(10303,'en','Uncompressed'),(10320,'en','Holdings level 4 with piece designation'),(10321,'en','Compressed, use textual display'),(10338,'en','Uncompressed, use textual display'),(10347,'en','Item (s) not published'),(10356,'en','Field encoding level'),(10357,'en','Form of holdings'),(10374,'en','No information provided'),(10375,'en','No information provided'),(10392,'en','Holdings level 3'),(10393,'en','Compressed'),(10410,'en','Holdings level 4'),(10411,'en','Uncompressed'),(10428,'en','Holdings level 4 with piece designation'),(10429,'en','Compressed, use textual display'),(10446,'en','Uncompressed, use textual display'),(10455,'en','Item (s) not published'),(10464,'en','Field encoding level'),(10465,'en','Form of holdings'),(10482,'en','No information provided'),(10483,'en','No information provided'),(10500,'en','Holdings level 4'),(10501,'en','Uncompressed'),(10518,'en','Holdings level 4 with piece designation'),(10519,'en','Uncompressed, use textual display'),(10536,'en','Field encoding level'),(10537,'en','Type of notation'),(10554,'en','No information provided'),(10555,'en','Non-stardard'),(10572,'en','Holdings level 3'),(10573,'en','ANSI/NISO Z39.71 or ISO 10324'),(10590,'en','Holdings level 4'),(10591,'en','ANSI Z39.42'),(10608,'en','Holdings level 4 with piece designation'),(10609,'en','Source specified in subfield $2'),(10626,'en','Field encoding level'),(10627,'en','Type of notation'),(10644,'en','No information provided'),(10645,'en','Non-stardard'),(10662,'en','Holdings level 3'),(10663,'en','ANSI/NISO Z39.71 or ISO 10324'),(10680,'en','Holdings level 4'),(10681,'en','ANSI Z39.42'),(10698,'en','Holdings level 4 with piece designation'),(10699,'en','Source specified in subfield $2'),(10716,'en','Field encoding level'),(10717,'en','Type of notation'),(10734,'en','No information provided'),(10735,'en','Non-stardard'),(10752,'en','Holdings level 3'),(10753,'en','ANSI/NISO Z39.71 or ISO 10324'),(10770,'en','Holdings level 4'),(10771,'en','ANSI Z39.42'),(10788,'en','Holdings level 4 with piece designation'),(10789,'en','Source specified in subfield $2'),(10806,'en','Undefined'),(10807,'en','Undefined'),(10824,'en','Undefined'),(10825,'en','Undefined'),(10842,'en','Undefined'),(10843,'en','Undefined'),(10860,'en','Undefined'),(10861,'en','Undefined'),(10878,'en','Undefined'),(10879,'en','Undefined'),(10896,'en','Undefined'),(10897,'en','Undefined'),(10914,'en','Appropriate indicator as available in associated field'),(10915,'en','Appropriate indicator as available in associated field'),(10932,'en','Type of field'),(10933,'en','Undefined'),(10950,'en','Leader'),(10951,'en','Undefined'),(10968,'en','Variable control fields (002 -009)'),(10977,'en','Variable data fields (010 - 999)'),(10986,'en','Undefined'),(10987,'en','Undefined'),(11004,'en','Undefined'),(11005,'en','Undefined');
83
84
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 (+58 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 '' REFERENCES biblio_framework (frameworkcode) ON DELETE CASCADE,
1682
  tagfield varchar(3) NOT NULL default ''
1683
);
1684
CREATE UNIQUE INDEX marc_indicators_frameworkcode ON marc_indicators (frameworkcode,tagfield);
1685
1686
1687
--
1688
-- Table structure for table marc_indicators_values
1689
--
1690
1691
DROP TABLE IF EXISTS marc_indicators_values CASCADE;
1692
CREATE TABLE marc_indicators_values (
1693
  ind_value char(1) NOT NULL default '' PRIMARY KEY
1694
);
1695
1696
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');
1697
1698
1699
--
1700
-- Table structure for table marc_indicators_value
1701
--
1702
1703
DROP TABLE IF EXISTS marc_indicators_value CASCADE;
1704
CREATE TABLE marc_indicators_value (
1705
  id_indicator_value SERIAL PRIMARY KEY,
1706
  id_indicator integer NOT NULL REFERENCES marc_indicators (id_indicator) ON DELETE CASCADE,
1707
  ind varchar(1) NOT NULL,
1708
  ind_value char(1) NOT NULL REFERENCES marc_indicators_values (ind_value) ON DELETE CASCADE,
1709
  CHECK ( ind IN ('1', '2'))
1710
);
1711
CREATE INDEX marc_indicators_value_id_indicator ON marc_indicators_value (id_indicator);
1712
CREATE INDEX marc_indicators_value_ind_value ON marc_indicators_value (ind_value);
1713
1714
1715
--
1716
-- Table structure for table marc_indicators_desc
1717
--
1718
1719
DROP TABLE IF EXISTS marc_indicators_desc CASCADE;
1720
CREATE TABLE marc_indicators_desc (
1721
  id_indicator_value integer NOT NULL REFERENCES marc_indicators_value (id_indicator_value) ON DELETE CASCADE,
1722
  lang varchar(25) NOT NULL default 'en',
1723
  ind_desc text,
1724
  PRIMARY KEY  (id_indicator_value,lang)
1725
);
1726
CREATE INDEX marc_indicators_desc_lang ON marc_indicators_desc (lang);
1727
1728
1729
1730
1673
--commit;
1731
--commit;
(-)a/installer/data/mysql/de-DE/mandatory/sysprefs.sql (+2 lines)
Lines 309-312 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
309
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
309
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
310
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
310
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
311
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
311
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
312
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
313
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');
312
314
(-)a/installer/data/mysql/en/mandatory/sysprefs.sql (-1 / +2 lines)
Lines 309-312 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
309
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
309
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
310
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
310
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
311
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
311
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
312
312
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
313
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/en/marcflavour/marc21/mandatory/marc21_indicators.sql (+106 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 '',
10
  `tagfield` varchar(3) NOT NULL default '',
11
  PRIMARY KEY  (`id_indicator`),
12
  UNIQUE KEY `frameworkcode` (`frameworkcode`,`tagfield`),
13
  CONSTRAINT `marc_indicators_ibfk_1` FOREIGN KEY (`frameworkcode`) REFERENCES `biblio_framework` (`frameworkcode`) ON DELETE CASCADE
14
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
15
16
17
--
18
-- Table structure for table `marc_indicators_values`
19
--
20
21
CREATE TABLE IF NOT EXISTS `marc_indicators_values` (
22
  `ind_value` char(1) NOT NULL default '',
23
  PRIMARY KEY  (`ind_value`)
24
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
25
26
27
TRUNCATE `marc_indicators_values`;
28
29
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');
30
31
32
--
33
-- Table structure for table `marc_indicators_value`
34
--
35
36
CREATE TABLE IF NOT EXISTS `marc_indicators_value` (
37
  `id_indicator_value` int(11) unsigned NOT NULL auto_increment,
38
  `id_indicator` int(11) unsigned NOT NULL,
39
  `ind` enum('1','2') NOT NULL,
40
  `ind_value` char(1) NOT NULL,
41
  PRIMARY KEY  (`id_indicator_value`),
42
  KEY `id_indicator` (`id_indicator`),
43
  KEY `ind_value` (`ind_value`),
44
  CONSTRAINT `marc_indicators_value_ibfk_2` FOREIGN KEY (`ind_value`) REFERENCES `marc_indicators_values` (`ind_value`) ON DELETE CASCADE,
45
  CONSTRAINT `marc_indicators_value_ibfk_1` FOREIGN KEY (`id_indicator`) REFERENCES `marc_indicators` (`id_indicator`) ON DELETE CASCADE
46
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
47
48
49
--
50
-- Table structure for table `marc_indicators_desc`
51
--
52
53
CREATE TABLE IF NOT EXISTS `marc_indicators_desc` (
54
  `id_indicator_value` int(11) unsigned NOT NULL,
55
  `lang` varchar(25) NOT NULL default 'en',
56
  `ind_desc` mediumtext,
57
  PRIMARY KEY  (`id_indicator_value`,`lang`),
58
  KEY `lang` (`lang`),
59
  CONSTRAINT `marc_indicators_desc_ibfk_2` FOREIGN KEY (`lang`) REFERENCES `language_descriptions` (`lang`) ON DELETE CASCADE,
60
  CONSTRAINT `marc_indicators_desc_ibfk_1` FOREIGN KEY (`id_indicator_value`) REFERENCES `marc_indicators_value` (`id_indicator_value`) ON DELETE CASCADE
61
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
62
63
64
-- ******************************************
65
-- Values for Indicators for Default Framework
66
-- ******************************************
67
68
TRUNCATE `marc_indicators_desc`;
69
TRUNCATE `marc_indicators_value`;
70
TRUNCATE `marc_indicators`;
71
72
73
--
74
-- Dumping data for table marc_indicators
75
--
76
77
LOCK TABLES marc_indicators WRITE;
78
/*!40000 ALTER TABLE marc_indicators DISABLE KEYS */;
79
INSERT INTO marc_indicators VALUES (1,'','010'),(11,'','013'),(20,'','015'),(29,'','016'),(38,'','017'),(47,'','018'),(56,'','020'),(66,'','022'),(76,'','024'),(85,'','025'),(94,'','026'),(103,'','027'),(112,'','028'),(121,'','030'),(130,'','031'),(139,'','032'),(148,'','033'),(157,'','034'),(166,'','035'),(175,'','036'),(184,'','037'),(193,'','038'),(202,'','040'),(211,'','041'),(220,'','042'),(229,'','043'),(238,'','044'),(247,'','045'),(256,'','046'),(265,'','047'),(274,'','048'),(283,'','050'),(293,'','051'),(302,'','052'),(311,'','055'),(320,'','060'),(329,'','061'),(338,'','066'),(347,'','070'),(356,'','071'),(365,'','072'),(374,'','074'),(383,'','080'),(392,'','082'),(401,'','084'),(410,'','086'),(419,'','088'),(428,'','100'),(438,'','110'),(447,'','111'),(456,'','130'),(465,'','210'),(474,'','222'),(483,'','240'),(492,'','242'),(501,'','245'),(511,'','246'),(520,'','247'),(529,'','250'),(539,'','254'),(548,'','255'),(557,'','256'),(566,'','257'),(575,'','258'),(584,'','260'),(594,'','263'),(603,'','270'),(612,'','300'),(622,'','306'),(631,'','307'),(640,'','310'),(649,'','321'),(658,'','340'),(667,'','342'),(676,'','343'),(685,'','351'),(694,'','352'),(703,'','355'),(712,'','357'),(721,'','362'),(730,'','365'),(739,'','366'),(748,'','490'),(757,'','500'),(767,'','501'),(776,'','502'),(785,'','504'),(794,'','505'),(803,'','506'),(812,'','507'),(821,'','508'),(830,'','510'),(839,'','511'),(848,'','513'),(857,'','514'),(866,'','515'),(875,'','516'),(884,'','518'),(893,'','520'),(902,'','521'),(911,'','522'),(920,'','524'),(929,'','525'),(938,'','526'),(947,'','530'),(956,'','533'),(965,'','534'),(974,'','535'),(983,'','536'),(992,'','538'),(1001,'','540'),(1010,'','541'),(1019,'','544'),(1028,'','546'),(1037,'','547'),(1046,'','550'),(1055,'','552'),(1064,'','555'),(1073,'','556'),(1082,'','561'),(1091,'','562'),(1100,'','563'),(1109,'','565'),(1118,'','567'),(1127,'','580'),(1136,'','581'),(1145,'','583'),(1154,'','584'),(1163,'','585'),(1172,'','586'),(1181,'','600'),(1190,'','610'),(1199,'','611'),(1208,'','630'),(1217,'','648'),(1226,'','650'),(1235,'','651'),(1244,'','653'),(1253,'','654'),(1262,'','655'),(1271,'','656'),(1280,'','657'),(1289,'','658'),(1298,'','662'),(1307,'','700'),(1316,'','710'),(1325,'','711'),(1334,'','720'),(1343,'','730'),(1352,'','740'),(1361,'','752'),(1370,'','753'),(1379,'','754'),(1388,'','760'),(1397,'','762'),(1406,'','765'),(1415,'','767'),(1424,'','770'),(1433,'','772'),(1442,'','773'),(1451,'','774'),(1460,'','775'),(1469,'','776'),(1478,'','777'),(1487,'','780'),(1496,'','785'),(1505,'','786'),(1514,'','787'),(1523,'','800'),(1532,'','810'),(1541,'','811'),(1550,'','830'),(1559,'','841'),(1568,'','842'),(1577,'','843'),(1586,'','844'),(1595,'','845'),(1604,'','850'),(1613,'','852'),(1622,'','853'),(1631,'','854'),(1640,'','855'),(1649,'','856'),(1658,'','863'),(1667,'','864'),(1676,'','865'),(1685,'','866'),(1694,'','867'),(1703,'','868'),(1712,'','876'),(1721,'','877'),(1730,'','878'),(1739,'','880'),(1748,'','886'),(1757,'','887');
80
/*!40000 ALTER TABLE marc_indicators ENABLE KEYS */;
81
UNLOCK TABLES;
82
83
84
--
85
-- Dumping data for table marc_indicators_value
86
--
87
88
89
LOCK TABLES marc_indicators_value WRITE;
90
/*!40000 ALTER TABLE marc_indicators_value DISABLE KEYS */;
91
INSERT INTO marc_indicators_value VALUES (1,1,'1',''),(2,1,'2',''),(21,1,'1',''),(22,1,'2',''),(41,11,'1',''),(42,11,'2',''),(59,11,'1',''),(60,11,'2',''),(77,20,'1',''),(78,20,'2',''),(95,20,'1',''),(96,20,'2',''),(113,29,'1',''),(114,29,'2',''),(131,29,'1',''),(132,29,'2',''),(149,29,'1','7'),(158,38,'1',''),(159,38,'2',''),(176,38,'1',''),(177,38,'2',''),(194,47,'1',''),(195,47,'2',''),(212,47,'1',''),(213,47,'2',''),(230,56,'1',''),(231,56,'2',''),(250,56,'1',''),(251,56,'2',''),(270,66,'1',''),(271,66,'2',''),(290,66,'1',''),(291,66,'2',''),(310,66,'1','0'),(320,66,'1','1'),(330,76,'1',''),(331,76,'2',''),(348,76,'1','0'),(349,76,'2',''),(366,76,'1','1'),(367,76,'2','0'),(384,76,'1','2'),(385,76,'2','1'),(402,76,'1','3'),(411,76,'1','4'),(420,76,'1','7'),(429,76,'1','8'),(438,85,'1',''),(439,85,'2',''),(456,85,'1',''),(457,85,'2',''),(474,94,'1',''),(475,94,'2',''),(492,94,'1',''),(493,94,'2',''),(510,103,'1',''),(511,103,'2',''),(528,103,'1',''),(529,103,'2',''),(546,112,'1',''),(547,112,'2',''),(564,112,'1','0'),(565,112,'2','0'),(582,112,'1','1'),(583,112,'2','1'),(600,112,'1','2'),(601,112,'2','2'),(618,112,'1','3'),(619,112,'2','3'),(636,112,'1','4'),(645,112,'1','5'),(654,121,'1',''),(655,121,'2',''),(672,121,'1',''),(673,121,'2',''),(690,130,'1',''),(691,130,'2',''),(708,130,'1',''),(709,130,'2',''),(726,139,'1',''),(727,139,'2',''),(744,139,'1',''),(745,139,'2',''),(762,148,'1',''),(763,148,'2',''),(780,148,'1',''),(781,148,'2',''),(798,148,'1','0'),(799,148,'2','0'),(816,148,'1','1'),(817,148,'2','1'),(834,148,'1','2'),(835,148,'2','2'),(852,157,'1',''),(853,157,'2',''),(870,157,'1','0'),(871,157,'2',''),(888,157,'1','1'),(889,157,'2','0'),(906,157,'1','3'),(907,157,'2','1'),(924,166,'1',''),(925,166,'2',''),(942,166,'1',''),(943,166,'2',''),(960,175,'1',''),(961,175,'2',''),(978,175,'1',''),(979,175,'2',''),(996,184,'1',''),(997,184,'2',''),(1014,184,'1',''),(1015,184,'2',''),(1032,193,'1',''),(1033,193,'2',''),(1050,193,'1',''),(1051,193,'2',''),(1068,202,'1',''),(1069,202,'2',''),(1086,202,'1',''),(1087,202,'2',''),(1104,211,'1',''),(1105,211,'2',''),(1122,211,'1','0'),(1123,211,'2',''),(1140,211,'1','1'),(1141,211,'2','7'),(1158,220,'1',''),(1159,220,'2',''),(1176,220,'1',''),(1177,220,'2',''),(1194,229,'1',''),(1195,229,'2',''),(1212,229,'1',''),(1213,229,'2',''),(1230,238,'1',''),(1231,238,'2',''),(1248,238,'1',''),(1249,238,'2',''),(1266,247,'1',''),(1267,247,'2',''),(1284,247,'1',''),(1285,247,'2',''),(1302,247,'1','0'),(1311,247,'1','1'),(1320,247,'1','2'),(1329,256,'1',''),(1330,256,'2',''),(1347,256,'1',''),(1348,256,'2',''),(1365,265,'1',''),(1366,265,'2',''),(1383,265,'1',''),(1384,265,'2',''),(1401,274,'1',''),(1402,274,'2',''),(1419,274,'1',''),(1420,274,'2',''),(1437,283,'1',''),(1438,283,'2',''),(1457,283,'1',''),(1458,283,'2','0'),(1477,283,'1','0'),(1478,283,'2','4'),(1497,283,'1','1'),(1507,293,'1',''),(1508,293,'2',''),(1525,293,'1',''),(1526,293,'2',''),(1543,302,'1',''),(1544,302,'2',''),(1561,302,'1',''),(1562,302,'2',''),(1579,302,'1','1'),(1588,302,'1','7'),(1597,311,'1',''),(1598,311,'2',''),(1615,311,'1',''),(1616,311,'2','0'),(1633,311,'1','0'),(1634,311,'2','1'),(1651,311,'1','1'),(1652,311,'2','2'),(1669,311,'2','3'),(1678,311,'2',''),(1687,311,'2','5'),(1696,311,'2','6'),(1705,311,'2','7'),(1714,311,'2','8'),(1723,311,'2','9'),(1732,320,'1',''),(1733,320,'2',''),(1750,320,'1',''),(1751,320,'2','0'),(1768,320,'1','0'),(1769,320,'2','4'),(1786,320,'1','1'),(1795,329,'1',''),(1796,329,'2',''),(1813,329,'1',''),(1814,329,'2',''),(1831,338,'1',''),(1832,338,'2',''),(1849,338,'1',''),(1850,338,'2',''),(1867,347,'1',''),(1868,347,'2',''),(1885,347,'1','0'),(1886,347,'2',''),(1903,347,'1','1'),(1912,356,'1',''),(1913,356,'2',''),(1930,356,'1',''),(1931,356,'2',''),(1948,365,'1',''),(1949,365,'2',''),(1966,365,'1',''),(1967,365,'2',''),(1984,365,'2','7'),(1993,374,'1',''),(1994,374,'2',''),(2011,374,'1',''),(2012,374,'2',''),(2029,383,'1',''),(2030,383,'2',''),(2047,383,'1',''),(2048,383,'2',''),(2065,392,'1',''),(2066,392,'2',''),(2083,392,'1','0'),(2084,392,'2',''),(2101,392,'1','1'),(2102,392,'2','0'),(2119,392,'2','4'),(2128,401,'1',''),(2129,401,'2',''),(2146,401,'1',''),(2147,401,'2',''),(2164,410,'1',''),(2165,410,'2',''),(2182,410,'1',''),(2183,410,'2',''),(2200,410,'1','0'),(2209,410,'1','1'),(2218,419,'1',''),(2219,419,'2',''),(2236,419,'1',''),(2237,419,'2',''),(2254,428,'1',''),(2255,428,'2',''),(2274,428,'1','0'),(2275,428,'2',''),(2294,428,'1','1'),(2304,428,'1','3'),(2314,438,'1',''),(2315,438,'2',''),(2332,438,'1','0'),(2333,438,'2',''),(2350,438,'1',''),(2359,438,'1','2'),(2368,447,'1',''),(2369,447,'2',''),(2386,447,'1','0'),(2387,447,'2',''),(2404,447,'1',''),(2413,447,'1','2'),(2422,456,'1',''),(2423,456,'2',''),(2440,456,'1','0'),(2441,456,'2',''),(2458,456,'1','1'),(2467,456,'1','2'),(2476,456,'1','3'),(2485,456,'1','4'),(2494,456,'1','5'),(2503,456,'1','6'),(2512,456,'1','7'),(2521,456,'1','8'),(2530,456,'1','9'),(2539,465,'1',''),(2540,465,'2',''),(2557,465,'1','0'),(2558,465,'2',''),(2575,465,'1','1'),(2576,465,'2','0'),(2593,474,'1',''),(2594,474,'2',''),(2611,474,'1',''),(2612,474,'2','0'),(2629,474,'2','1'),(2638,474,'2','2'),(2647,474,'2','3'),(2656,474,'2','4'),(2665,474,'2','5'),(2674,474,'2','6'),(2683,474,'2','7'),(2692,474,'2','8'),(2701,474,'2','9'),(2710,483,'1',''),(2711,483,'2',''),(2728,483,'1','0'),(2729,483,'2','0'),(2746,483,'1','1'),(2747,483,'2','1'),(2764,483,'2','2'),(2773,483,'2','3'),(2782,483,'2','4'),(2791,483,'2','5'),(2800,483,'2','6'),(2809,483,'2','7'),(2818,483,'2','8'),(2827,483,'2','9'),(2836,492,'1',''),(2837,492,'2',''),(2854,492,'1','0'),(2855,492,'2','0'),(2872,492,'1','1'),(2873,492,'2','1'),(2890,492,'2','2'),(2899,492,'2','3'),(2908,492,'2','4'),(2917,492,'2','5'),(2926,492,'2','6'),(2935,492,'2','7'),(2944,492,'2','8'),(2953,492,'2','9'),(2962,501,'1',''),(2963,501,'2',''),(2982,501,'1','0'),(2983,501,'2','0'),(3002,501,'1','1'),(3003,501,'2','1'),(3022,501,'2','2'),(3032,501,'2','3'),(3042,501,'2','4'),(3052,501,'2','5'),(3062,501,'2','6'),(3072,501,'2','7'),(3082,501,'2','8'),(3092,501,'2','9'),(3102,511,'1',''),(3103,511,'2',''),(3120,511,'1','0'),(3121,511,'2',''),(3138,511,'1','1'),(3139,511,'2','0'),(3156,511,'1','2'),(3157,511,'2','1'),(3174,511,'1','3'),(3175,511,'2','2'),(3192,511,'2','3'),(3201,511,'2','4'),(3210,511,'2','5'),(3219,511,'2','6'),(3228,511,'2','7'),(3237,511,'2','8'),(3246,520,'1',''),(3247,520,'2',''),(3264,520,'1','0'),(3265,520,'2','0'),(3282,520,'1','1'),(3283,520,'2','1'),(3300,529,'1',''),(3301,529,'2',''),(3320,529,'1',''),(3321,529,'2',''),(3340,539,'1',''),(3341,539,'2',''),(3358,539,'1',''),(3359,539,'2',''),(3376,548,'1',''),(3377,548,'2',''),(3394,548,'1',''),(3395,548,'2',''),(3412,557,'1',''),(3413,557,'2',''),(3430,557,'1',''),(3431,557,'2',''),(3448,566,'1',''),(3449,566,'2',''),(3466,566,'1',''),(3467,566,'2',''),(3484,575,'1',''),(3485,575,'2',''),(3502,575,'1',''),(3503,575,'2',''),(3520,584,'1',''),(3521,584,'2',''),(3540,584,'1',''),(3541,584,'2',''),(3560,584,'1','2'),(3570,584,'1',''),(3580,594,'1',''),(3581,594,'2',''),(3598,594,'1',''),(3599,594,'2',''),(3616,603,'1',''),(3617,603,'2',''),(3634,603,'1',''),(3635,603,'2',''),(3652,603,'1','1'),(3653,603,'2','0'),(3670,603,'1','2'),(3671,603,'2','7'),(3688,612,'1',''),(3689,612,'2',''),(3708,612,'1',''),(3709,612,'2',''),(3728,622,'1',''),(3729,622,'2',''),(3746,622,'1',''),(3747,622,'2',''),(3764,631,'1',''),(3765,631,'2',''),(3782,631,'1',''),(3783,631,'2',''),(3800,631,'1','8'),(3809,640,'1',''),(3810,640,'2',''),(3827,640,'1',''),(3828,640,'2',''),(3845,649,'1',''),(3846,649,'2',''),(3863,649,'1',''),(3864,649,'2',''),(3881,658,'1',''),(3882,658,'2',''),(3899,658,'1',''),(3900,658,'2',''),(3917,667,'1',''),(3918,667,'2',''),(3935,667,'1','0'),(3936,667,'2','0'),(3953,667,'1','1'),(3954,667,'2','1'),(3971,667,'2','2'),(3980,667,'2','3'),(3989,667,'2','4'),(3998,667,'2','5'),(4007,667,'2','6'),(4016,667,'2','7'),(4025,667,'2','8'),(4034,676,'1',''),(4035,676,'2',''),(4052,676,'1',''),(4053,676,'2',''),(4070,685,'1',''),(4071,685,'2',''),(4088,685,'1',''),(4089,685,'2',''),(4106,694,'1',''),(4107,694,'2',''),(4124,694,'1',''),(4125,694,'2',''),(4142,703,'1',''),(4143,703,'2',''),(4160,703,'1','0'),(4161,703,'2',''),(4178,703,'1','1'),(4187,703,'1','2'),(4196,703,'1','3'),(4205,703,'1','4'),(4214,703,'1','5'),(4223,703,'1','8'),(4232,712,'1',''),(4233,712,'2',''),(4250,712,'1',''),(4251,712,'2',''),(4268,721,'1',''),(4269,721,'2',''),(4286,721,'1','0'),(4287,721,'2',''),(4304,721,'1','1'),(4313,730,'1',''),(4314,730,'2',''),(4331,730,'1',''),(4332,730,'2',''),(4349,739,'1',''),(4350,739,'2',''),(4367,739,'1',''),(4368,739,'2',''),(4385,748,'1',''),(4386,748,'2',''),(4403,748,'1','0'),(4404,748,'2',''),(4421,748,'1','1'),(4430,757,'1',''),(4431,757,'2',''),(4450,757,'1',''),(4451,757,'2',''),(4470,767,'1',''),(4471,767,'2',''),(4488,767,'1',''),(4489,767,'2',''),(4506,776,'1',''),(4507,776,'2',''),(4524,776,'1',''),(4525,776,'2',''),(4542,785,'1',''),(4543,785,'2',''),(4560,785,'1',''),(4561,785,'2',''),(4578,794,'1',''),(4579,794,'2',''),(4596,794,'1','0'),(4597,794,'2',''),(4614,794,'1','1'),(4615,794,'2','0'),(4632,794,'1','2'),(4641,794,'1','8'),(4650,803,'1',''),(4651,803,'2',''),(4668,803,'1',''),(4669,803,'2',''),(4686,803,'1','0'),(4695,803,'1','1'),(4704,812,'1',''),(4705,812,'2',''),(4722,812,'1',''),(4723,812,'2',''),(4740,821,'1',''),(4741,821,'2',''),(4758,821,'1',''),(4759,821,'2',''),(4776,830,'1',''),(4777,830,'2',''),(4794,830,'1','0'),(4795,830,'2',''),(4812,830,'1','1'),(4821,830,'1','2'),(4830,830,'1','3'),(4839,830,'1','4'),(4848,839,'1',''),(4849,839,'2',''),(4866,839,'1','0'),(4867,839,'2',''),(4884,839,'1','1'),(4893,848,'1',''),(4894,848,'2',''),(4911,848,'1',''),(4912,848,'2',''),(4929,857,'1',''),(4930,857,'2',''),(4947,857,'1',''),(4948,857,'2',''),(4965,866,'1',''),(4966,866,'2',''),(4983,866,'1',''),(4984,866,'2',''),(5001,875,'1',''),(5002,875,'2',''),(5019,875,'1',''),(5020,875,'2',''),(5037,875,'1','8'),(5046,884,'1',''),(5047,884,'2',''),(5064,884,'1',''),(5065,884,'2',''),(5082,893,'1',''),(5083,893,'2',''),(5100,893,'1',''),(5101,893,'2',''),(5118,893,'1','0'),(5127,893,'1','1'),(5136,893,'1','2'),(5145,893,'1','4'),(5154,893,'1','3'),(5163,893,'1','8'),(5172,902,'1',''),(5173,902,'2',''),(5190,902,'1',''),(5191,902,'2',''),(5208,902,'1','0'),(5217,902,'1','1'),(5226,902,'1','2'),(5235,902,'1','3'),(5244,902,'1','4'),(5253,902,'1','8'),(5262,911,'1',''),(5263,911,'2',''),(5280,911,'1',''),(5281,911,'2',''),(5298,911,'1','8'),(5307,920,'1',''),(5308,920,'2',''),(5325,920,'1',''),(5326,920,'2',''),(5343,920,'1','8'),(5352,929,'1',''),(5353,929,'2',''),(5370,929,'1',''),(5371,929,'2',''),(5388,938,'1',''),(5389,938,'2',''),(5406,938,'1','0'),(5407,938,'2',''),(5424,938,'1','8'),(5433,947,'1',''),(5434,947,'2',''),(5451,947,'1',''),(5452,947,'2',''),(5469,956,'1',''),(5470,956,'2',''),(5487,956,'1',''),(5488,956,'2',''),(5505,965,'1',''),(5506,965,'2',''),(5523,965,'1',''),(5524,965,'2',''),(5541,974,'1',''),(5542,974,'2',''),(5559,974,'1','1'),(5560,974,'2',''),(5577,974,'1','2'),(5586,983,'1',''),(5587,983,'2',''),(5604,983,'1',''),(5605,983,'2',''),(5622,992,'1',''),(5623,992,'2',''),(5640,992,'1',''),(5641,992,'2',''),(5658,1001,'1',''),(5659,1001,'2',''),(5676,1001,'1',''),(5677,1001,'2',''),(5694,1010,'1',''),(5695,1010,'2',''),(5712,1010,'1',''),(5713,1010,'2',''),(5730,1019,'1',''),(5731,1019,'2',''),(5748,1019,'1',''),(5749,1019,'2',''),(5766,1019,'1','0'),(5775,1019,'1','1'),(5784,1028,'1',''),(5785,1028,'2',''),(5802,1028,'1',''),(5803,1028,'2',''),(5820,1037,'1',''),(5821,1037,'2',''),(5838,1037,'1',''),(5839,1037,'2',''),(5856,1046,'1',''),(5857,1046,'2',''),(5874,1046,'1',''),(5875,1046,'2',''),(5892,1055,'1',''),(5893,1055,'2',''),(5910,1055,'1',''),(5911,1055,'2',''),(5928,1064,'1',''),(5929,1064,'2',''),(5946,1064,'2',''),(5955,1064,'1','8'),(5964,1073,'1',''),(5965,1073,'2',''),(5982,1073,'2',''),(5991,1073,'1','8'),(6000,1082,'1',''),(6001,1082,'2',''),(6018,1082,'1',''),(6019,1082,'2',''),(6036,1091,'1',''),(6037,1091,'2',''),(6054,1091,'1',''),(6055,1091,'2',''),(6072,1100,'1',''),(6073,1100,'2',''),(6090,1100,'1',''),(6091,1100,'2',''),(6108,1109,'1',''),(6109,1109,'2',''),(6126,1109,'1',''),(6127,1109,'2',''),(6144,1109,'1','0'),(6153,1109,'1','8'),(6162,1118,'1',''),(6163,1118,'2',''),(6180,1118,'1',''),(6181,1118,'2',''),(6198,1118,'1','8'),(6207,1127,'1',''),(6208,1127,'2',''),(6225,1127,'1',''),(6226,1127,'2',''),(6243,1136,'1',''),(6244,1136,'2',''),(6261,1136,'1',''),(6262,1136,'2',''),(6279,1136,'1','8'),(6288,1145,'1',''),(6289,1145,'2',''),(6306,1145,'1',''),(6307,1145,'2',''),(6324,1154,'1',''),(6325,1154,'2',''),(6342,1154,'1',''),(6343,1154,'2',''),(6360,1163,'1',''),(6361,1163,'2',''),(6378,1163,'1',''),(6379,1163,'2',''),(6396,1172,'1',''),(6397,1172,'2',''),(6414,1172,'1',''),(6415,1172,'2',''),(6432,1172,'1','8'),(6441,1181,'1',''),(6442,1181,'2',''),(6459,1181,'1','0'),(6460,1181,'2',''),(6477,1181,'1','1'),(6478,1181,'2','1'),(6495,1181,'1','2'),(6496,1181,'2','2'),(6513,1181,'2','3'),(6522,1181,'2','4'),(6531,1181,'2','5'),(6540,1181,'2','6'),(6549,1181,'2','7'),(6558,1190,'1',''),(6559,1190,'2',''),(6576,1190,'1','0'),(6577,1190,'2','0'),(6594,1190,'1','1'),(6595,1190,'2','1'),(6612,1190,'1','2'),(6613,1190,'2','2'),(6630,1190,'2','3'),(6639,1190,'2','4'),(6648,1190,'2','5'),(6657,1190,'2','6'),(6666,1190,'2','7'),(6675,1199,'1',''),(6676,1199,'2',''),(6693,1199,'1','0'),(6694,1199,'2','0'),(6711,1199,'1','1'),(6712,1199,'2','1'),(6729,1199,'1','2'),(6730,1199,'2','2'),(6747,1199,'2','3'),(6756,1199,'2','4'),(6765,1199,'2','5'),(6774,1199,'2','6'),(6783,1199,'2','7'),(6792,1208,'1',''),(6793,1208,'2',''),(6810,1208,'1','0'),(6811,1208,'2','0'),(6828,1208,'1','1'),(6829,1208,'2','1'),(6846,1208,'1','2'),(6847,1208,'2','2'),(6864,1208,'1','3'),(6865,1208,'2','3'),(6882,1208,'1','4'),(6883,1208,'2','4'),(6900,1208,'1','5'),(6901,1208,'2','5'),(6918,1208,'1','6'),(6919,1208,'2','6'),(6936,1208,'1','7'),(6937,1208,'2','7'),(6954,1208,'1','8'),(6963,1208,'1','9'),(6972,1217,'1',''),(6973,1217,'2',''),(6990,1217,'1',''),(6991,1217,'2','0'),(7008,1217,'2','1'),(7017,1217,'2','2'),(7026,1217,'2','3'),(7035,1217,'2','4'),(7044,1217,'2','5'),(7053,1217,'2','6'),(7062,1217,'2','7'),(7071,1226,'1',''),(7072,1226,'2',''),(7089,1226,'1',''),(7090,1226,'2','0'),(7107,1226,'1','0'),(7108,1226,'2','1'),(7125,1226,'1','1'),(7126,1226,'2','2'),(7143,1226,'1','2'),(7144,1226,'2','3'),(7161,1226,'2','4'),(7170,1226,'2','5'),(7179,1226,'2','6'),(7188,1226,'2','7'),(7197,1235,'1',''),(7198,1235,'2',''),(7215,1235,'1',''),(7216,1235,'2','0'),(7233,1235,'2','1'),(7242,1235,'2','2'),(7251,1235,'2','3'),(7260,1235,'2','4'),(7269,1235,'2','5'),(7278,1235,'2','6'),(7287,1235,'2','7'),(7296,1244,'1',''),(7297,1244,'2',''),(7314,1244,'1',''),(7315,1244,'2',''),(7332,1244,'1','0'),(7333,1244,'2','0'),(7350,1244,'1','1'),(7351,1244,'2','1'),(7368,1244,'1','2'),(7369,1244,'2','2'),(7386,1244,'2','3'),(7395,1244,'2','4'),(7404,1244,'2','5'),(7413,1244,'2','6'),(7422,1253,'1',''),(7423,1253,'2',''),(7440,1253,'1',''),(7441,1253,'2',''),(7458,1253,'1','0'),(7467,1253,'1','1'),(7476,1253,'1','2'),(7485,1262,'1',''),(7486,1262,'2',''),(7503,1262,'1',''),(7504,1262,'2','0'),(7521,1262,'1','0'),(7522,1262,'2','1'),(7539,1262,'2','2'),(7548,1262,'2','3'),(7557,1262,'2','4'),(7566,1262,'2','5'),(7575,1262,'2','6'),(7584,1262,'2','7'),(7593,1271,'1',''),(7594,1271,'2',''),(7611,1271,'1',''),(7612,1271,'2','7'),(7629,1280,'1',''),(7630,1280,'2',''),(7647,1280,'1',''),(7648,1280,'2','7'),(7665,1289,'1',''),(7666,1289,'2',''),(7683,1289,'1',''),(7684,1289,'2',''),(7701,1298,'1',''),(7702,1298,'2',''),(7719,1298,'1',''),(7720,1298,'2',''),(7737,1307,'1',''),(7738,1307,'2',''),(7755,1307,'1','0'),(7756,1307,'2',''),(7773,1307,'1','1'),(7774,1307,'2','2'),(7791,1307,'1','3'),(7800,1316,'1',''),(7801,1316,'2',''),(7818,1316,'1','0'),(7819,1316,'2',''),(7836,1316,'1','1'),(7837,1316,'2','2'),(7854,1316,'1','2'),(7863,1325,'1',''),(7864,1325,'2',''),(7881,1325,'1','0'),(7882,1325,'2',''),(7899,1325,'1','1'),(7900,1325,'2','2'),(7917,1325,'1','2'),(7926,1334,'1',''),(7927,1334,'2',''),(7944,1334,'1',''),(7945,1334,'2',''),(7962,1334,'1','1'),(7971,1334,'1','2'),(7980,1343,'1',''),(7981,1343,'2',''),(7998,1343,'1','0'),(7999,1343,'2',''),(8016,1343,'1','1'),(8017,1343,'2','2'),(8034,1343,'1','2'),(8043,1343,'1','3'),(8052,1343,'1','4'),(8061,1343,'1','5'),(8070,1343,'1','6'),(8079,1343,'1','7'),(8088,1343,'1','8'),(8097,1343,'1','9'),(8106,1352,'1',''),(8107,1352,'2',''),(8124,1352,'1','0'),(8125,1352,'2',''),(8142,1352,'1','1'),(8143,1352,'2','2'),(8160,1352,'1','2'),(8169,1352,'1','3'),(8178,1352,'1','4'),(8187,1352,'1','5'),(8196,1352,'1','6'),(8205,1352,'1','7'),(8214,1352,'1','8'),(8223,1352,'1','9'),(8232,1361,'1',''),(8233,1361,'2',''),(8250,1361,'1',''),(8251,1361,'2',''),(8268,1370,'1',''),(8269,1370,'2',''),(8286,1370,'1',''),(8287,1370,'2',''),(8304,1379,'1',''),(8305,1379,'2',''),(8322,1379,'1',''),(8323,1379,'2',''),(8340,1388,'1',''),(8341,1388,'2',''),(8358,1388,'1','0'),(8359,1388,'2',''),(8376,1388,'1','1'),(8377,1388,'2','8'),(8394,1397,'1',''),(8395,1397,'2',''),(8412,1397,'1','0'),(8413,1397,'2',''),(8430,1397,'1','1'),(8431,1397,'2','8'),(8448,1406,'1',''),(8449,1406,'2',''),(8466,1406,'1','0'),(8467,1406,'2',''),(8484,1406,'1','1'),(8485,1406,'2','8'),(8502,1415,'1',''),(8503,1415,'2',''),(8520,1415,'1','0'),(8521,1415,'2',''),(8538,1415,'1','1'),(8539,1415,'2','8'),(8556,1424,'1',''),(8557,1424,'2',''),(8574,1424,'1','0'),(8575,1424,'2',''),(8592,1424,'1','1'),(8593,1424,'2','8'),(8610,1433,'1',''),(8611,1433,'2',''),(8628,1433,'1','0'),(8629,1433,'2',''),(8646,1433,'1','1'),(8647,1433,'2','0'),(8664,1433,'2','8'),(8673,1442,'1',''),(8674,1442,'2',''),(8691,1442,'1','0'),(8692,1442,'2',''),(8709,1442,'1','1'),(8710,1442,'2','8'),(8727,1451,'1',''),(8728,1451,'2',''),(8745,1451,'1','0'),(8746,1451,'2',''),(8763,1451,'1','1'),(8764,1451,'2','8'),(8781,1460,'1',''),(8782,1460,'2',''),(8799,1460,'1','0'),(8800,1460,'2',''),(8817,1460,'1','1'),(8818,1460,'2','8'),(8835,1469,'1',''),(8836,1469,'2',''),(8853,1469,'1','0'),(8854,1469,'2',''),(8871,1469,'1','1'),(8872,1469,'2','8'),(8889,1478,'1',''),(8890,1478,'2',''),(8907,1478,'1','0'),(8908,1478,'2',''),(8925,1478,'1','1'),(8926,1478,'2','8'),(8943,1487,'1',''),(8944,1487,'2',''),(8961,1487,'1','0'),(8962,1487,'2','0'),(8979,1487,'1','1'),(8980,1487,'2','1'),(8997,1487,'2','2'),(9006,1487,'2','3'),(9015,1487,'2',''),(9024,1487,'2','5'),(9033,1487,'2','6'),(9042,1487,'2','7'),(9051,1496,'1',''),(9052,1496,'2',''),(9069,1496,'1','0'),(9070,1496,'2','0'),(9087,1496,'1','1'),(9088,1496,'2','1'),(9105,1496,'2','2'),(9114,1496,'2','3'),(9123,1496,'2','4'),(9132,1496,'2','5'),(9141,1496,'2','6'),(9150,1496,'2','7'),(9159,1496,'2','8'),(9168,1505,'1',''),(9169,1505,'2',''),(9186,1505,'1','0'),(9187,1505,'2',''),(9204,1505,'1','1'),(9205,1505,'2','8'),(9222,1514,'1',''),(9223,1514,'2',''),(9240,1514,'1','0'),(9241,1514,'2',''),(9258,1514,'1','1'),(9259,1514,'2','8'),(9276,1523,'1',''),(9277,1523,'2',''),(9294,1523,'1','0'),(9295,1523,'2',''),(9312,1523,'1','1'),(9321,1523,'1','2'),(9330,1532,'1',''),(9331,1532,'2',''),(9348,1532,'1','0'),(9349,1532,'2',''),(9366,1532,'1','1'),(9375,1532,'1','2'),(9384,1541,'2',''),(9393,1541,'1','0'),(9394,1541,'2',''),(9411,1541,'1','1'),(9420,1541,'1','2'),(9429,1550,'1',''),(9430,1550,'2',''),(9447,1550,'1',''),(9448,1550,'2','0'),(9465,1550,'2','1'),(9474,1550,'2','2'),(9483,1550,'2','3'),(9492,1550,'2','4'),(9501,1550,'2','5'),(9510,1550,'2','6'),(9519,1550,'2','7'),(9528,1550,'2','8'),(9537,1550,'2','9'),(9546,1559,'1',''),(9547,1559,'2',''),(9564,1559,'1',''),(9565,1559,'2',''),(9582,1568,'1',''),(9583,1568,'2',''),(9600,1568,'1',''),(9601,1568,'2',''),(9618,1577,'1',''),(9619,1577,'2',''),(9636,1577,'1',''),(9637,1577,'2',''),(9654,1586,'1',''),(9655,1586,'2',''),(9672,1586,'1',''),(9673,1586,'2',''),(9690,1595,'1',''),(9691,1595,'2',''),(9708,1595,'1',''),(9709,1595,'2',''),(9726,1604,'1',''),(9727,1604,'2',''),(9744,1604,'1',''),(9745,1604,'2',''),(9762,1613,'1',''),(9763,1613,'2',''),(9780,1613,'1',''),(9781,1613,'2',''),(9798,1613,'1','0'),(9799,1613,'2','0'),(9816,1613,'1','1'),(9817,1613,'2','1'),(9834,1613,'1','2'),(9835,1613,'2','2'),(9852,1613,'1','3'),(9861,1613,'1','4'),(9870,1613,'1','5'),(9879,1613,'1','6'),(9888,1613,'1','7'),(9897,1613,'1','8'),(9906,1622,'1',''),(9907,1622,'2',''),(9924,1622,'1','0'),(9925,1622,'2','0'),(9942,1622,'1','1'),(9943,1622,'2','1'),(9960,1622,'1','2'),(9961,1622,'2','2'),(9978,1622,'1','3'),(9979,1622,'2','3'),(9996,1631,'1',''),(9997,1631,'2',''),(10014,1631,'1','0'),(10015,1631,'2','0'),(10032,1631,'1','1'),(10033,1631,'2','1'),(10050,1631,'1','2'),(10051,1631,'2','2'),(10068,1631,'1','3'),(10069,1631,'2','3'),(10086,1640,'1',''),(10087,1640,'2',''),(10104,1640,'1',''),(10105,1640,'2',''),(10122,1649,'1',''),(10123,1649,'2',''),(10140,1649,'1',''),(10141,1649,'2',''),(10158,1649,'1','0'),(10159,1649,'2','0'),(10176,1649,'1','1'),(10177,1649,'2','1'),(10194,1649,'1','2'),(10195,1649,'2','2'),(10212,1649,'1','3'),(10213,1649,'2','8'),(10230,1649,'1','4'),(10239,1649,'1','7'),(10248,1658,'1',''),(10249,1658,'2',''),(10266,1658,'1',''),(10267,1658,'2',''),(10284,1658,'1','3'),(10285,1658,'2','0'),(10302,1658,'1','4'),(10303,1658,'2','1'),(10320,1658,'1','5'),(10321,1658,'2','2'),(10338,1658,'2','3'),(10347,1658,'2','4'),(10356,1667,'1',''),(10357,1667,'2',''),(10374,1667,'1',''),(10375,1667,'2',''),(10392,1667,'1','3'),(10393,1667,'2','0'),(10410,1667,'1','4'),(10411,1667,'2','1'),(10428,1667,'1','5'),(10429,1667,'2','2'),(10446,1667,'2','3'),(10455,1667,'2','4'),(10464,1676,'1',''),(10465,1676,'2',''),(10482,1676,'1',''),(10483,1676,'2',''),(10500,1676,'1','4'),(10501,1676,'2','1'),(10518,1676,'1','5'),(10519,1676,'2','3'),(10536,1685,'1',''),(10537,1685,'2',''),(10554,1685,'1',''),(10555,1685,'2','0'),(10572,1685,'1','3'),(10573,1685,'2','1'),(10590,1685,'1','4'),(10591,1685,'2','2'),(10608,1685,'1','5'),(10609,1685,'2','7'),(10626,1694,'1',''),(10627,1694,'2',''),(10644,1694,'1',''),(10645,1694,'2','0'),(10662,1694,'1','3'),(10663,1694,'2','1'),(10680,1694,'1','4'),(10681,1694,'2','2'),(10698,1694,'1','5'),(10699,1694,'2','7'),(10716,1703,'1',''),(10717,1703,'2',''),(10734,1703,'1',''),(10735,1703,'2','0'),(10752,1703,'1','3'),(10753,1703,'2','1'),(10770,1703,'1','4'),(10771,1703,'2','2'),(10788,1703,'1','5'),(10789,1703,'2','7'),(10806,1712,'1',''),(10807,1712,'2',''),(10824,1712,'1',''),(10825,1712,'2',''),(10842,1721,'1',''),(10843,1721,'2',''),(10860,1721,'1',''),(10861,1721,'2',''),(10878,1730,'1',''),(10879,1730,'2',''),(10896,1730,'1',''),(10897,1730,'2',''),(10914,1739,'1',''),(10915,1739,'2',''),(10932,1748,'1',''),(10933,1748,'2',''),(10950,1748,'1','0'),(10951,1748,'2',''),(10968,1748,'1','1'),(10977,1748,'1','2'),(10986,1757,'1',''),(10987,1757,'2',''),(11004,1757,'1',''),(11005,1757,'2','');
92
/*!40000 ALTER TABLE marc_indicators_value ENABLE KEYS */;
93
UNLOCK TABLES;
94
95
96
--
97
-- Dumping data for table marc_indicators_desc
98
--
99
100
LOCK TABLES marc_indicators_desc WRITE;
101
/*!40000 ALTER TABLE marc_indicators_desc DISABLE KEYS */;
102
INSERT INTO marc_indicators_desc VALUES (1,'en','Undefined'),(2,'en','Undefined'),(21,'en','Undefined'),(22,'en','Undefined'),(41,'en','Undefined'),(42,'en','Undefined'),(59,'en','Undefined'),(60,'en','Undefined'),(77,'en','Undefined'),(78,'en','Undefined'),(95,'en','Undefined'),(96,'en','Undefined'),(113,'en','National bibliographic agency'),(114,'en','Undefined'),(131,'en','Library and Archives Canada'),(132,'en','Undefined'),(149,'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'),(158,'en','Undefined'),(159,'en','Undefined'),(176,'en','Undefined'),(177,'en','Undefined'),(194,'en','Undefined'),(195,'en','Undefined'),(212,'en','Undefined'),(213,'en','Undefined'),(230,'en','Undefined'),(231,'en','Undefined'),(250,'en','Undefined'),(251,'en','Undefined'),(270,'en','Level of international interest'),(271,'en','Undefined'),(290,'en','No level specified'),(291,'en','Undefined'),(310,'en','Continuing resource of international interest'),(320,'en','Continuing resource not of international interest'),(330,'en','Type of standard number or code'),(331,'en','Difference indicator'),(348,'en','International Standard Recording Code'),(349,'en','No information provided'),(366,'en','Universal Product Code'),(367,'en','No difference'),(384,'en','International Standard Music Number'),(385,'en','Difference'),(402,'en','International Article Number'),(411,'en','Serial Item and Contribution Identifier'),(420,'en','Source specified in sufield $2'),(429,'en','Unspecified type of starndard number or code'),(438,'en','Undefined'),(439,'en','Undefined'),(456,'en','Undefined'),(457,'en','Undefined'),(474,'en','Undefined'),(475,'en','Undefined'),(492,'en','Undefined'),(493,'en','Undefined'),(510,'en','Undefined'),(511,'en','Undefined'),(528,'en','Undefined'),(529,'en','Undefined'),(546,'en','Type of publisher number'),(547,'en','Note/added entry controller'),(564,'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.'),(565,'en','No note, no added entry'),(582,'en','Matrix number. Master from witch the specific recording was pressed.'),(583,'en','Note, added entry'),(600,'en','Plate number. Assigned by a publisher to a specific music publication.'),(601,'en','Note, no added entry'),(618,'en','Other music number'),(619,'en','No note, added entry'),(636,'en','Videorecording number'),(645,'en','Other publisher number'),(654,'en','Undefined'),(655,'en','Undefined'),(672,'en','Undefined'),(673,'en','Undefined'),(690,'en','Undefined'),(691,'en','Undefined'),(708,'en','Undefined'),(709,'en','#- Undefined'),(726,'en','Undefined'),(727,'en','Undefined'),(744,'en','# -Undefined'),(745,'en','Undefined'),(762,'en','Type of date in subfield $a'),(763,'en','Type of event'),(780,'en','No date information'),(781,'en','No information provided'),(798,'en','Single date'),(799,'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'),(816,'en','Multiple single dates'),(817,'en','Broadcast. Pertains to the broadcasting (i.e., transmission) or re-boardcasting of sound or visual images.'),(834,'en','Range of dates'),(835,'en','Finding. Pertains to the finding of a naturally ocurring object.'),(852,'en','Type of scale Specifies the type of scale information given'),(853,'en','Type of ring'),(870,'en','Scale indeterminable/No scale recorded. Used when no representative fraction is given in field 255.'),(871,'en','Not applicable'),(888,'en','Single scale'),(889,'en','Outer ring'),(906,'en','Range of scales'),(907,'en','Exclusion ring'),(924,'en','Undefined'),(925,'en','Undefined'),(942,'en','Undefined'),(943,'en','Undefined'),(960,'en','Undefined'),(961,'en','Undefined'),(978,'en','Undefined'),(979,'en','Undefined'),(996,'en','Undefined'),(997,'en','Undefined'),(1014,'en','# -Undefined'),(1015,'en','Undefined'),(1032,'en','Undefined'),(1033,'en','Undefined'),(1050,'en','# -Undefined'),(1051,'en','Undefined'),(1068,'en','Undefined'),(1069,'en','Undefined'),(1086,'en','Undefined'),(1087,'en','Undefined'),(1104,'en','Translation indication'),(1105,'en','Source of code'),(1122,'en','Item not a translation/ does not include a translation'),(1123,'en','MARC language code'),(1140,'en','Item is or includes a translation'),(1141,'en','Source specified in subfield $2'),(1158,'en','Undefined'),(1159,'en','Undefined'),(1176,'en','Undefined'),(1177,'en','Undefined'),(1194,'en','Undefined'),(1195,'en','Undefined'),(1212,'en','Undefined'),(1213,'en','Undefined'),(1230,'en','Undefined'),(1231,'en','Undefined'),(1248,'en','Undefined'),(1249,'en','Undefined'),(1266,'en','Type of time period in subfield $b or $c'),(1267,'en','Undefined'),(1284,'en','Subfield $b or $c not present'),(1285,'en','Undefined'),(1302,'en','Single date/time'),(1311,'en','Multiple sigle dates/times. Multiple $b and/or $c subfields are present, each containing a date/time.'),(1320,'en','Range of dates/times. Two $b and/or $c subfields are present and contain a range of dates/times'),(1329,'en','Undefined'),(1330,'en','Undefined'),(1347,'en','Undefined'),(1348,'en','Undefined'),(1365,'en','Undefined'),(1366,'en','Undefined'),(1383,'en','# -Undefined'),(1384,'en','Undefined'),(1401,'en','Undefined'),(1402,'en','Undefined'),(1419,'en','Undefined'),(1420,'en','Undefined'),(1437,'en','Existence in LC collection'),(1438,'en','Source of call number'),(1457,'en','No information provided. Used for all call numbers assigned by agencies other than the Library of Congress'),(1458,'en','Assigned by LC. Used when an institution is transcribing from lC cataloging copy.'),(1477,'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'),(1478,'en','Assigned by agency other than LC.'),(1497,'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.'),(1507,'en','Undefined'),(1508,'en','Undefined'),(1525,'en','Undefined'),(1526,'en','Undefined'),(1543,'en','Code source'),(1544,'en','Undefined'),(1561,'en','Library of Congress Classification'),(1562,'en','Undefined'),(1579,'en','U.S. Dept. of Defense Classification'),(1588,'en','Source specified in subfield $2'),(1597,'en','Existence in LAC collection'),(1598,'en','Type, completeness, source of class/call number'),(1615,'en','Information not provided. Used in any record input by an institution other than LAC.'),(1616,'en','LC - based call number assigned by LAC'),(1633,'en','Work held by LAC'),(1634,'en','Complete LC class number assigned by LAC'),(1651,'en','Work not held by LAC'),(1652,'en','Incomplete LC class number asigned by LAC'),(1669,'en','LC- based call number assigned by the contibuting library'),(1678,'en','4 -Complete LC class number assigned by the contributing library'),(1687,'en','Incomplete LC class number assigned by de contributing library'),(1696,'en','Other call number assigned by LAC'),(1705,'en','Other class number assigned by LAC'),(1714,'en','Other call number assigned by the contributing library'),(1723,'en','Other class number assigned by the contributing library'),(1732,'en','Existence in NLM collection'),(1733,'en','Source of call number'),(1750,'en','# -No information provided. Used for call numbers assigned by an organization other than NLM'),(1751,'en','Assigned by NLM'),(1768,'en','Item is in NLM'),(1769,'en','Assigned by agency other than NLM'),(1786,'en','Item is not in NLM'),(1795,'en','Undefined'),(1796,'en','Undefined'),(1813,'en','Undefined'),(1814,'en','Undefined'),(1831,'en','Undefined'),(1832,'en','Undefined'),(1849,'en','# -Undefined'),(1850,'en','Undefined'),(1867,'en','Existence in NAL collection'),(1868,'en','Undefined'),(1885,'en','Item is in NAL'),(1886,'en','Undefined'),(1903,'en','Item is not in NAL'),(1912,'en','Undefined'),(1913,'en','Undefined'),(1930,'en','Undefined'),(1931,'en','# -Undefined'),(1948,'en','Undefined'),(1949,'en','Code source'),(1966,'en','Undefined'),(1967,'en','0 -NAL subject category code list'),(1984,'en','Source specified in subfield $2'),(1993,'en','Undefined'),(1994,'en','Undefined'),(2011,'en','Undefined'),(2012,'en','# -Undefined'),(2029,'en','Undefined'),(2030,'en','Undefined'),(2047,'en','Undefined'),(2048,'en','Undefined'),(2065,'en','Type of edition'),(2066,'en','Source of classification number'),(2083,'en','Full edition'),(2084,'en','No information provided'),(2101,'en','Abridged edition'),(2102,'en','Assigned by LC. May be used by organizations transcribing from LC copy'),(2119,'en','Assigned by agency other than LC'),(2128,'en','Undefined'),(2129,'en','Undefined'),(2146,'en','Undefined'),(2147,'en','Undefined'),(2164,'en','Number source'),(2165,'en','Undefined'),(2182,'en','Source specified in subfield $2. Classification number other than the U.S. or Canadian scheme'),(2183,'en','Undefined'),(2200,'en','Superintendent of Documents Classification System. Assigned by the U.S. Government Printing Office. Supt.of Docs.no.: may be generated for display'),(2209,'en','Government of Canada Publications: Outline of Classification'),(2218,'en','Undefined'),(2219,'en','Undefined'),(2236,'en','Undefined'),(2237,'en','# -Undefined'),(2254,'en','Type of personal name entry element'),(2255,'en','Undefined'),(2274,'en','Forename. Forename or a name consisting of words, initials, letters,etc., that are formatted in direc order'),(2275,'en','Undefined'),(2294,'en','Surname. Single or multiple surname formatted in inverted order or a single name without forenames that is known to be a surname.'),(2304,'en','Family name. Name represents a family, clan, dynasty, house, or other such group and may be formatted in direct or inverted order.'),(2314,'en','Type of corporate name entry element'),(2315,'en','Undefined'),(2332,'en','Inverted name. Corporate name begins with a personal name in inverted order.'),(2333,'en','Undefined'),(2350,'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.'),(2359,'en','Name in direct order.'),(2368,'en','Type of meeting name entry element'),(2369,'en','Undefined'),(2386,'en','Inverted name. Meeting name begins with a personal name in inverted order.'),(2387,'en','Undefined'),(2404,'en','1 -Jurisdiction name. Jurisdiction name under which a meeting name is entered'),(2413,'en','Name in direct order'),(2422,'en','Nonfiling characters'),(2423,'en','Undefined'),(2440,'en','Number of nonfiling characters'),(2441,'en','Undefined'),(2458,'en','Number of nonfiling characters'),(2467,'en','Number of nonfiling characters'),(2476,'en','Number of nonfiling characters'),(2485,'en','Number of nonfiling characters'),(2494,'en','Number of nonfiling characters'),(2503,'en','Number of nonfiling characters'),(2512,'en','Number of nonfiling characters'),(2521,'en','Number of nonfiling characters'),(2530,'en','Number of nonfiling characters'),(2539,'en','Title added entry'),(2540,'en','Type'),(2557,'en','No added entry'),(2558,'en','Abbreviated key title'),(2575,'en','Added entry'),(2576,'en','Other abbreviated title'),(2593,'en','Undefined'),(2594,'en','Nonfiling characters'),(2611,'en','Undefined'),(2612,'en','No nonfiling characters'),(2629,'en','Number of nonfiling characters'),(2638,'en','Number of nonfiling characters'),(2647,'en','Number of nonfiling characters'),(2656,'en','Number of nonfiling characters'),(2665,'en','Number of nonfiling characters'),(2674,'en','Number of nonfiling characters'),(2683,'en','Number of nonfiling characters'),(2692,'en','Number of nonfiling characters'),(2701,'en','Number of nonfiling characters'),(2710,'en','Uniform title printed or displayed'),(2711,'en','Nonfiling characters'),(2728,'en','Not printed or displayed'),(2729,'en','Number of nonfiling characters'),(2746,'en','Printed or displayed'),(2747,'en','Number of nonfiling characters'),(2764,'en','Number of nonfiling characters'),(2773,'en','Number of nonfiling characters'),(2782,'en','Number of nonfiling characters'),(2791,'en','Number of nonfiling characters'),(2800,'en','Number of nonfiling characters'),(2809,'en','Number of nonfiling characters'),(2818,'en','Number of nonfiling characters'),(2827,'en','Number of nonfiling characters'),(2836,'en','Title added entry'),(2837,'en','Nonfiling characters'),(2854,'en','No added entry'),(2855,'en','No nonfiling characters'),(2872,'en','Added entry'),(2873,'en','Number of nonfiling characters'),(2890,'en','Number of nonfiling characters'),(2899,'en','Number of nonfiling characters'),(2908,'en','Number of nonfiling characters'),(2917,'en','Number of nonfiling characters'),(2926,'en','Number of nonfiling characters'),(2935,'en','Number of nonfiling characters'),(2944,'en','Number of nonfiling characters'),(2953,'en','Number of nonfiling characters'),(2962,'en','Title added entry'),(2963,'en','Nonfiling characters'),(2982,'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'),(2983,'en','No nonfiling characters'),(3002,'en','Added entry. Desired title added entry is the same as the title in field 245'),(3003,'en','Number of nonfiling characters'),(3022,'en','Number of nonfiling characters'),(3032,'en','Number of nonfiling characters'),(3042,'en','Number of nonfiling characters'),(3052,'en','Number of nonfiling characters'),(3062,'en','Number of nonfiling characters'),(3072,'en','Number of nonfiling characters'),(3082,'en','Number of nonfiling characters'),(3092,'en','Number of nonfiling characters'),(3102,'en','Note/added entry controller'),(3103,'en','Type of title'),(3120,'en','Note, no added entry'),(3121,'en','No type specified'),(3138,'en','Note, added entry'),(3139,'en','Portion of title'),(3156,'en','No note, no added entry'),(3157,'en','Parallel title'),(3174,'en','No note, added entry'),(3175,'en','Distintictive title'),(3192,'en','Other title'),(3201,'en','Cover title'),(3210,'en','Added title page title'),(3219,'en','Caption title'),(3228,'en','Running title'),(3237,'en','Spine title'),(3246,'en','Title added entry'),(3247,'en','Note controller'),(3264,'en','No added entry'),(3265,'en','Display note'),(3282,'en','Added entry'),(3283,'en','Do not display note'),(3300,'en','Undefined'),(3301,'en','Undefined'),(3320,'en','Undefined'),(3321,'en','Undefined'),(3340,'en','Undefined'),(3341,'en','Undefined'),(3358,'en','Undefined'),(3359,'en','Undefined'),(3376,'en','Undefined'),(3377,'en','Undefined'),(3394,'en','Undefined'),(3395,'en','Undefined'),(3412,'en','Undefined'),(3413,'en','Undefined'),(3430,'en','Undefined'),(3431,'en','Undefined'),(3448,'en','Undefined'),(3449,'en','Undefined'),(3466,'en','Undefined'),(3467,'en','Undefined'),(3484,'en','Undefined'),(3485,'en','Undefined'),(3502,'en','Undefined'),(3503,'en','Undefined'),(3520,'en','Sequence of publishing statements'),(3521,'en','Undefined'),(3540,'en','Not applicable/ No information provided/ Earliest available publisher'),(3541,'en','Undefined'),(3560,'en','Intervening publisher'),(3570,'en','3- Current/latest publisher'),(3580,'en','Undefined'),(3581,'en','Undefined'),(3598,'en','# -Undefined'),(3599,'en','# -Undefined'),(3616,'en','Level'),(3617,'en','Type of address'),(3634,'en','No level specified'),(3635,'en','No type specified'),(3652,'en','Primary'),(3653,'en','Mailing'),(3670,'en','Secondary'),(3671,'en','Type specified in subfield $i'),(3688,'en','Undefined'),(3689,'en','Undefined'),(3708,'en','# -Undefined'),(3709,'en','# -Undefined'),(3728,'en','Undefined'),(3729,'en','Undefined'),(3746,'en','Undefined'),(3747,'en','Undefined'),(3764,'en','Display constant controller'),(3765,'en','Undefined'),(3782,'en','Hours'),(3783,'en','Undefined'),(3800,'en','No display constant generated'),(3809,'en','Undefined'),(3810,'en','Undefined'),(3827,'en','Undefined'),(3828,'en','Undefined'),(3845,'en','Undefined'),(3846,'en','Undefined'),(3863,'en','Undefined'),(3864,'en','Undefined'),(3881,'en','Undefined'),(3882,'en','Undefined'),(3899,'en','Undefined'),(3900,'en','Undefined'),(3917,'en','Geospatial reference dimension'),(3918,'en','Geospatial reference method'),(3935,'en','Horizontal coordinate system'),(3936,'en','Geographic'),(3953,'en','Vertical coordinate system'),(3954,'en','Map projection'),(3971,'en','Grid coordinate system'),(3980,'en','Local planar'),(3989,'en','Local'),(3998,'en','Geodentic model'),(4007,'en','Altitude'),(4016,'en','Method specified in $2'),(4025,'en','Depth'),(4034,'en','Undefined'),(4035,'en','Undefined'),(4052,'en','# -Undefined'),(4053,'en','# -Undefined'),(4070,'en','Undefined'),(4071,'en','Undefined'),(4088,'en','Undefined'),(4089,'en','Undefined'),(4106,'en','Undefined'),(4107,'en','Undefined'),(4124,'en','Undefined'),(4125,'en','# -Undefined'),(4142,'en','Controlled element'),(4143,'en','Undefined'),(4160,'en','Document'),(4161,'en','Undefined'),(4178,'en','Títle'),(4187,'en','Abstract'),(4196,'en','Contents note'),(4205,'en','Author'),(4214,'en','Record'),(4223,'en','None of the above'),(4232,'en','Undefined'),(4233,'en','Undefined'),(4250,'en','# -Undefined'),(4251,'en','Undefined'),(4268,'en','Format of date'),(4269,'en','Undefined'),(4286,'en','Formatted style'),(4287,'en','Undefined'),(4304,'en','Unformatted note'),(4313,'en','Undefined'),(4314,'en','Undefined'),(4331,'en','Undefined'),(4332,'en','Undefined'),(4349,'en','Undefined'),(4350,'en','Undefined'),(4367,'en','Undefined'),(4368,'en','Undefined'),(4385,'en','Series tracing policy'),(4386,'en','Undefined'),(4403,'en','Series not traced'),(4404,'en','Undefined'),(4421,'en','Series traced'),(4430,'en','Undefined'),(4431,'en','Undefined'),(4450,'en','Undefined'),(4451,'en','Undefined'),(4470,'en','Undefined'),(4471,'en','Undefined'),(4488,'en','Undefined'),(4489,'en','Undefined'),(4506,'en','Undefined'),(4507,'en','Undefined'),(4524,'en','Undefined'),(4525,'en','Undefined'),(4542,'en','Undefined'),(4543,'en','Undefined'),(4560,'en','Undefined'),(4561,'en','Undefined'),(4578,'en','Display constant controller'),(4579,'en','Level of content designation'),(4596,'en','Contents'),(4597,'en','Basic'),(4614,'en','Incomplete contents'),(4615,'en','Enhanced'),(4632,'en','Partial contents'),(4641,'en','No display constant generated'),(4650,'en','Restriction'),(4651,'en','Undefined'),(4668,'en','No information provided'),(4669,'en','Undefined'),(4686,'en','No restrictions'),(4695,'en','Restrictions apply'),(4704,'en','Undefined'),(4705,'en','Undefined'),(4722,'en','Undefined'),(4723,'en','Undefined'),(4740,'en','Undefined'),(4741,'en','Undefined'),(4758,'en','Undefined'),(4759,'en','Undefined'),(4776,'en','Coverage/location in source'),(4777,'en','Undefined'),(4794,'en','Coverage unknown'),(4795,'en','Undefined'),(4812,'en','Coverage complete'),(4821,'en','Coverage is selective'),(4830,'en','Location in source not given'),(4839,'en','Location in source given'),(4848,'en','Display constant controller'),(4849,'en','Undefined'),(4866,'en','No display constant generated'),(4867,'en','Undefined'),(4884,'en','Cast'),(4893,'en','Undefined'),(4894,'en','Undefined'),(4911,'en','# -Undefined'),(4912,'en','Undefined'),(4929,'en','Undefined'),(4930,'en','Undefined'),(4947,'en','Undefined'),(4948,'en','Undefined'),(4965,'en','Undefined'),(4966,'en','Undefined'),(4983,'en','Undefined'),(4984,'en','Undefined'),(5001,'en','Display constant controller'),(5002,'en','Undefined'),(5019,'en','Type of file'),(5020,'en','Undefined'),(5037,'en','No display constant generated'),(5046,'en','Undefined'),(5047,'en','Undefined'),(5064,'en','Undefined'),(5065,'en','Undefined'),(5082,'en','Display constant controller'),(5083,'en','Undefined'),(5100,'en','Summary'),(5101,'en','Undefined'),(5118,'en','Subject'),(5127,'en','Review'),(5136,'en','Scope and content'),(5145,'en','Content advice'),(5154,'en','Abstract'),(5163,'en','No display constant generated'),(5172,'en','Display constant controller'),(5173,'en','Undefined'),(5190,'en','Audience'),(5191,'en','Undefined'),(5208,'en','Reading grade level'),(5217,'en','Interest age level'),(5226,'en','Interest grade level'),(5235,'en','Special audience characteristics'),(5244,'en','Motivation/interest level'),(5253,'en','No display constant generated'),(5262,'en','Display constant controller'),(5263,'en','Undefined'),(5280,'en','Geographic coverage'),(5281,'en','Undefined'),(5298,'en','No display constant generated'),(5307,'en','Display constant controller'),(5308,'en','Undefined'),(5325,'en','Cite as'),(5326,'en','Undefined'),(5343,'en','No display constant generated'),(5352,'en','Undefined'),(5353,'en','Undefined'),(5370,'en','# -Undefined'),(5371,'en','Undefined'),(5388,'en','Display constant controller'),(5389,'en','Undefined'),(5406,'en','Reading program'),(5407,'en','Undefined'),(5424,'en','No display constant generated'),(5433,'en','Undefined'),(5434,'en','Undefined'),(5451,'en','Undefined'),(5452,'en','Undefined'),(5469,'en','Undefined'),(5470,'en','Undefined'),(5487,'en','# -Undefined'),(5488,'en','Undefined'),(5505,'en','Undefined'),(5506,'en','Undefined'),(5523,'en','Undefined'),(5524,'en','Undefined'),(5541,'en','Custodial role'),(5542,'en','Undefined'),(5559,'en','Holder of originals'),(5560,'en','Undefined'),(5577,'en','Holder of duplicates'),(5586,'en','Undefined'),(5587,'en','Undefined'),(5604,'en','# -Undefined'),(5605,'en','Undefined'),(5622,'en','Undefined'),(5623,'en','Undefined'),(5640,'en','Undefined'),(5641,'en','Undefined'),(5658,'en','Undefined'),(5659,'en','Undefined'),(5676,'en','Undefined'),(5677,'en','Undefined'),(5694,'en','Undefined'),(5695,'en','Undefined'),(5712,'en','# -Undefined'),(5713,'en','Undefined'),(5730,'en','Relationship'),(5731,'en','Undefined'),(5748,'en','No information provided'),(5749,'en','Undefined'),(5766,'en','Associated materials. Other materials identified in the note  have the same provenance but reside in a different repository'),(5775,'en','Related materials. Other materials identified in the note share of activity, reside in the same repository, but have different provenance.'),(5784,'en','Undefined'),(5785,'en','Undefined'),(5802,'en','Undefined'),(5803,'en','Undefined'),(5820,'en','Undefined'),(5821,'en','Undefined'),(5838,'en','Undefined'),(5839,'en','Undefined'),(5856,'en','Undefined'),(5857,'en','Undefined'),(5874,'en','Undefined'),(5875,'en','Undefined'),(5892,'en','Undefined'),(5893,'en','Undefined'),(5910,'en','Undefined'),(5911,'en','Undefined'),(5928,'en','Display constant controller'),(5929,'en','Undefined'),(5946,'en','Undefined'),(5955,'en','No display constant generated'),(5964,'en','Display constant controller'),(5965,'en','Undefined'),(5982,'en','Undefined'),(5991,'en','No display constant generated'),(6000,'en','Undefined'),(6001,'en','Undefined'),(6018,'en','# -Undefined'),(6019,'en','Undefined'),(6036,'en','Undefined'),(6037,'en','Undefined'),(6054,'en','# -Undefined'),(6055,'en','Undefined'),(6072,'en','Undefined'),(6073,'en','Undefined'),(6090,'en','Undefined'),(6091,'en','Undefined'),(6108,'en','Display constant controller'),(6109,'en','Undefined'),(6126,'en','File size'),(6127,'en','Undefined'),(6144,'en','Case file characteristics'),(6153,'en','No display constant generated'),(6162,'en','Display constant controller'),(6163,'en','Undefined'),(6180,'en','Methodology'),(6181,'en','# -Undefined'),(6198,'en','No display constant generated'),(6207,'en','Undefined'),(6208,'en','Undefined'),(6225,'en','# -Undefined'),(6226,'en','Undefined'),(6243,'en','Display constant controller'),(6244,'en','Undefined'),(6261,'en','Publications'),(6262,'en','Undefined'),(6279,'en','No display constant generated'),(6288,'en','Undefined'),(6289,'en','Undefined'),(6306,'en','# -Undefined'),(6307,'en','Undefined'),(6324,'en','Undefined'),(6325,'en','Undefined'),(6342,'en','Undefined'),(6343,'en','Undefined'),(6360,'en','Undefined'),(6361,'en','Undefined'),(6378,'en','Undefined'),(6379,'en','# -Undefined'),(6396,'en','Display constant controller'),(6397,'en','Undefined'),(6414,'en','Awards'),(6415,'en','Undefined'),(6432,'en','No display constant generated'),(6441,'en','Type of personal name entry element'),(6442,'en','Thesaurus'),(6459,'en','Forename'),(6460,'en','0 -Library of Congress Subject Headings'),(6477,'en','Surname.'),(6478,'en','LC subject headings for children\'s literature.'),(6495,'en','Family Name'),(6496,'en','Medical Subject Headings. '),(6513,'en','National Agricultural Library subject authority file'),(6522,'en','Source not specified'),(6531,'en','Canadian Subject Headings'),(6540,'en','Répertoire de vedettes-matière'),(6549,'en','Source specified in subfield $2'),(6558,'en','Type of corporate name entry element'),(6559,'en','Thesaurus'),(6576,'en','Inverted name'),(6577,'en','Library of Congress Subject Headings'),(6594,'en','Juridistion name'),(6595,'en','LC subject headings for children\'s literature.'),(6612,'en','Name in direct order'),(6613,'en','Medical Subject Headings.'),(6630,'en','National Agricultural Library subject authority file'),(6639,'en','Source not specified'),(6648,'en','Canadian Subject Headings'),(6657,'en','Répertoire de vedettes-matière. '),(6666,'en','Source specified in subfield $2'),(6675,'en','Type of meeting name entry element'),(6676,'en','Thesaurus'),(6693,'en','Inverted name'),(6694,'en','Library of Congress Subject Headings'),(6711,'en','Juridistion name'),(6712,'en','LC subject headings for children\'s literature. '),(6729,'en','Name in direct order'),(6730,'en','Medical Subject Headings. '),(6747,'en','National Agricultural Library subject authority file'),(6756,'en','Source not specified'),(6765,'en','Canadian Subject Headings'),(6774,'en','Répertoire de vedettes-matière'),(6783,'en','Source specified in subfield $2'),(6792,'en','Nonfiling characters'),(6793,'en','Thesaurus'),(6810,'en','Number of nonfiling characters'),(6811,'en','Library of Congress Subject Headings'),(6828,'en','Number of nonfiling characters'),(6829,'en','LC subject headings for children\'s literature. '),(6846,'en','Number of nonfiling characters'),(6847,'en','Medical Subject Headings. '),(6864,'en','Number of nonfiling characters'),(6865,'en','National Agricultural Library subject authority file'),(6882,'en','Number of nonfiling characters'),(6883,'en','Source not specified'),(6900,'en','Number of nonfiling characters'),(6901,'en','Canadian Subject Headings'),(6918,'en','Number of nonfiling characters'),(6919,'en','Répertoire de vedettes-matière'),(6936,'en','Number of nonfiling characters'),(6937,'en','Source specified in subfield $2'),(6954,'en','Number of nonfiling characters'),(6963,'en','Number of nonfiling characters'),(6972,'en','Undefined'),(6973,'en','Thesaurus'),(6990,'en','Undefined'),(6991,'en','Library of Congress Subject Headings'),(7008,'en','LC subject headings for children\'s literature. '),(7017,'en','Medical Subject Headings. '),(7026,'en','National Agricultural Library subject authority file'),(7035,'en','Source not specified'),(7044,'en','Canadian Subject Headings'),(7053,'en','Répertoire de vedettes-matière'),(7062,'en','Source specified in subfield $2'),(7071,'en','Level of subject'),(7072,'en','Thesaurus'),(7089,'en','No information provided'),(7090,'en','Library of Congress Subject Headings'),(7107,'en','No level specified'),(7108,'en','LC subject headings for children\'s literature. '),(7125,'en','Primary'),(7126,'en','Medical Subject Headings. '),(7143,'en','Secondary'),(7144,'en','National Agricultural Library subject authority file'),(7161,'en','Source not specified'),(7170,'en','Canadian Subject Headings'),(7179,'en','Répertoire de vedettes-matière'),(7188,'en','Source specified in subfield $2'),(7197,'en','Undefined'),(7198,'en','Thesaurus'),(7215,'en','Undefined'),(7216,'en','Library of Congress Subject Headings'),(7233,'en','LC subject headings for children\'s literature. '),(7242,'en','Medical Subject Headings. '),(7251,'en','National Agricultural Library subject authority file'),(7260,'en','Source not specified'),(7269,'en','Canadian Subject Headings'),(7278,'en','Répertoire de vedettes-matière'),(7287,'en','Source specified in subfield $2'),(7296,'en','Level of index term'),(7297,'en','Type of term or name'),(7314,'en','No information provided'),(7315,'en','No information provided'),(7332,'en','No level specified'),(7333,'en','Topical term'),(7350,'en','Primary'),(7351,'en','Personal name'),(7368,'en','Secondary'),(7369,'en','Corporate name'),(7386,'en','Meeting name'),(7395,'en','Chronological term'),(7404,'en','Geographic name'),(7413,'en','Genre/form term'),(7422,'en','Level of subject'),(7423,'en','Undefined'),(7440,'en','No information provided'),(7441,'en','Undefined'),(7458,'en','No level specified'),(7467,'en','Primary'),(7476,'en','Secondary'),(7485,'en','Type of heading'),(7486,'en','Thesaurus'),(7503,'en','Basic'),(7504,'en','Library of Congress Subject Headings'),(7521,'en','Faceted'),(7522,'en','LC subject headings for children\'s literature. '),(7539,'en','Medical Subject Headings. '),(7548,'en','National Agricultural Library subject authority file'),(7557,'en','Source not specified'),(7566,'en','Canadian Subject Headings'),(7575,'en','Répertoire de vedettes-matière'),(7584,'en','Source specified in subfield $2'),(7593,'en','Undefined'),(7594,'en','Source of term'),(7611,'en','Undefined'),(7612,'en','Source specified in subfield $2'),(7629,'en','Undefined'),(7630,'en','Source of term'),(7647,'en','Undefined'),(7648,'en','Source specified in subfield $2'),(7665,'en','Undefined'),(7666,'en','Undefined'),(7683,'en','Undefined'),(7684,'en','Undefined'),(7701,'en','Undefined'),(7702,'en','Undefined'),(7719,'en','Undefined'),(7720,'en','Undefined'),(7737,'en','Type of personal name entry element'),(7738,'en','Type of added entry'),(7755,'en','Forename'),(7756,'en','No information provided'),(7773,'en','Surname.'),(7774,'en','Analytical entry'),(7791,'en','Family name'),(7800,'en','Type or corporate name entry element'),(7801,'en','Type of added entry'),(7818,'en','Inverted name'),(7819,'en','No information provided'),(7836,'en','Juridistion name'),(7837,'en','Analytical entry'),(7854,'en','Name in direct order'),(7863,'en','Type of meeting name entry element'),(7864,'en','Type of added entry'),(7881,'en','Inverted name'),(7882,'en','No information provided'),(7899,'en','Juridistion name'),(7900,'en','Analytical entry'),(7917,'en','Name in direct order'),(7926,'en','Type of name'),(7927,'en','Undefined'),(7944,'en','Not specified'),(7945,'en','Undefined'),(7962,'en','Personal'),(7971,'en','Other'),(7980,'en','Nonfiling characters'),(7981,'en','Type of added entry'),(7998,'en','Number of nonfiling characters'),(7999,'en','No information provided'),(8016,'en','Number of nonfiling characters'),(8017,'en','Analytical entry'),(8034,'en','Number of nonfiling characters'),(8043,'en','Number of nonfiling characters'),(8052,'en','Number of nonfiling characters'),(8061,'en','Number of nonfiling characters'),(8070,'en','Number of nonfiling characters'),(8079,'en','Number of nonfiling characters'),(8088,'en','Number of nonfiling characters'),(8097,'en','Number of nonfiling characters'),(8106,'en','Nonfiling characters'),(8107,'en','Type of added entry'),(8124,'en','No nonfiling characters'),(8125,'en','No information provided'),(8142,'en','Number of nonfiling characters'),(8143,'en','Analytical entry'),(8160,'en','Number of nonfiling characters'),(8169,'en','Number of nonfiling characters'),(8178,'en','Number of nonfiling characters'),(8187,'en','Number of nonfiling characters'),(8196,'en','Number of nonfiling characters'),(8205,'en','Number of nonfiling characters'),(8214,'en','Number of nonfiling characters'),(8223,'en','Number of nonfiling characters'),(8232,'en','Undefined'),(8233,'en','Undefined'),(8250,'en','Undefined'),(8251,'en','Undefined'),(8268,'en','Undefined'),(8269,'en','Undefined'),(8286,'en','Undefined'),(8287,'en','Undefined'),(8304,'en','Undefined'),(8305,'en','Undefined'),(8322,'en','Undefined'),(8323,'en','Undefined'),(8340,'en','Note controller'),(8341,'en','Display constant controller'),(8358,'en','Display note'),(8359,'en','Main series'),(8376,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8377,'en','No display constant generated'),(8394,'en','Note controller'),(8395,'en','Display constant controller'),(8412,'en','Display note'),(8413,'en','Has subseries'),(8430,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8431,'en','No display constant generated'),(8448,'en','Note controller'),(8449,'en','Display constant controller'),(8466,'en','Display note'),(8467,'en','Translation of'),(8484,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8485,'en','No display constant generated'),(8502,'en','Note controller'),(8503,'en','Display constant controller'),(8520,'en','Display note'),(8521,'en','Translated as'),(8538,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8539,'en','No display constant generated'),(8556,'en','Note controller'),(8557,'en','Display constant controller'),(8574,'en','Display note'),(8575,'en','Has supplement'),(8592,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8593,'en','No display constant generated'),(8610,'en','Note controller'),(8611,'en','Display constant controller'),(8628,'en','Display note'),(8629,'en','Supplement to'),(8646,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8647,'en','Parent'),(8664,'en','No display constant generated'),(8673,'en','Note controller'),(8674,'en','Display constant controller'),(8691,'en','Display note'),(8692,'en','In'),(8709,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8710,'en','No display constant generated'),(8727,'en','Note controller'),(8728,'en','Display constant controller'),(8745,'en','Display note'),(8746,'en','Constituent unit'),(8763,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8764,'en','No display constant generated'),(8781,'en','Note controller'),(8782,'en','Display constant controller'),(8799,'en','Display note'),(8800,'en','Other edition available'),(8817,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8818,'en','No display constant generated'),(8835,'en','Note controller'),(8836,'en','Display constant controller'),(8853,'en','Display note'),(8854,'en','Available in another form'),(8871,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8872,'en','No display constant generated'),(8889,'en','Note controller'),(8890,'en','Display constant controller'),(8907,'en','Display note'),(8908,'en','Issued with'),(8925,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8926,'en','No display constant generated'),(8943,'en','Note controller'),(8944,'en','Type of relationship'),(8961,'en','Display note'),(8962,'en','Continues'),(8979,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(8980,'en','Continues in part'),(8997,'en','Supersedes'),(9006,'en','Supersedes in part'),(9015,'en','4 -Formed by the union of ... and …'),(9024,'en','Absorbed'),(9033,'en','Absorbed in part'),(9042,'en','Separated from'),(9051,'en','Note controller'),(9052,'en','Type of relationship'),(9069,'en','Display note'),(9070,'en','Continued by'),(9087,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(9088,'en','Continued in part by'),(9105,'en','Superseded in part by'),(9114,'en','Superseded in part by'),(9123,'en','Absorbed by'),(9132,'en','Absorbed in part by'),(9141,'en','Split into… and …'),(9150,'en','Merged with ... To form...'),(9159,'en','Changed back to'),(9168,'en','Note controller'),(9169,'en','Display constant controller'),(9186,'en','Display note'),(9187,'en','Data source'),(9204,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(9205,'en','No display constant generated'),(9222,'en','Note controller'),(9223,'en','Display constant controller'),(9240,'en','Display note'),(9241,'en','Related item'),(9258,'en','Do not display note. Textual note is contained in field 580 (Linking Entry Complexity Note)'),(9259,'en','No display constant generated'),(9276,'en','Type of personal name entry element'),(9277,'en','Undefined'),(9294,'en','Forename'),(9295,'en','Undefined'),(9312,'en','Surname.'),(9321,'en','Family Name'),(9330,'en','Type of corporate name entry element'),(9331,'en','Undefined'),(9348,'en','Inverted name'),(9349,'en','Undefined'),(9366,'en','Juridistion name'),(9375,'en','Name in direct order'),(9384,'en','Undefined'),(9393,'en','Inverted name'),(9394,'en','Undefined'),(9411,'en','Juridistion name'),(9420,'en','Name in direct order'),(9429,'en','Undefined'),(9430,'en','Nonfiling characters'),(9447,'en','Undefined'),(9448,'en','No nonfiling characters'),(9465,'en','Number of nonfiling characters'),(9474,'en','Number of nonfiling characters'),(9483,'en','Number of nonfiling characters'),(9492,'en','Number of nonfiling characters'),(9501,'en','Number of nonfiling characters'),(9510,'en','Number of nonfiling characters'),(9519,'en','Number of nonfiling characters'),(9528,'en','Number of nonfiling characters'),(9537,'en','Number of nonfiling characters'),(9546,'en','Undefined'),(9547,'en','Undefined'),(9564,'en','Undefined'),(9565,'en','Undefined'),(9582,'en','Undefined'),(9583,'en','Undefined'),(9600,'en','Undefined'),(9601,'en','# -Undefined'),(9618,'en','Undefined'),(9619,'en','Undefined'),(9636,'en','Undefined'),(9637,'en','Undefined'),(9654,'en','Undefined'),(9655,'en','Undefined'),(9672,'en','Undefined'),(9673,'en','Undefined'),(9690,'en','Undefined'),(9691,'en','Undefined'),(9708,'en','Undefined'),(9709,'en','# -Undefined'),(9726,'en','Undefined'),(9727,'en','Undefined'),(9744,'en','Undefined'),(9745,'en','Undefined'),(9762,'en','Shelving scheme'),(9763,'en','Shelving order'),(9780,'en','No information provided'),(9781,'en','No information provided'),(9798,'en','Library of Congress classification'),(9799,'en','Not enumeration'),(9816,'en','Dewey Decimal classification'),(9817,'en','Primary enumeration'),(9834,'en','National Library of Medicine classification'),(9835,'en','Alternative enumeration'),(9852,'en','Superintendent of Document classification'),(9861,'en','Shelving control number'),(9870,'en','Title'),(9879,'en','Shelved separately'),(9888,'en','Source specified in subfield $2'),(9897,'en','Other scheme'),(9906,'en','Compressibility and expandability'),(9907,'en','Caption evaluation'),(9924,'en','Cannot compress or expand'),(9925,'en','Captions verified; all levels present'),(9942,'en','Can compress but not expand'),(9943,'en','Captions verified; all levels may not be present'),(9960,'en','Can compress or expand'),(9961,'en','Captions unverified; all levels present'),(9978,'en','Unknown'),(9979,'en','Captions unverified; all levels may not be present'),(9996,'en','Compressibility and expandability'),(9997,'en','Caption evaluation'),(10014,'en','Cannot compress or expand'),(10015,'en','Captions verified; all levels present'),(10032,'en','Can compress but not expand'),(10033,'en','Captions verified; all levels may not be present'),(10050,'en','Can compress or expand'),(10051,'en','Captions unverified; all levels present'),(10068,'en','Unknown'),(10069,'en','Captions unverified; all levels may not be present'),(10086,'en','Undefined'),(10087,'en','Undefined'),(10104,'en','Undefined'),(10105,'en','Undefined'),(10122,'en','Access method'),(10123,'en','Relationship'),(10140,'en','No information provided'),(10141,'en','No information provided'),(10158,'en','E-mail'),(10159,'en','Resource'),(10176,'en','FTP'),(10177,'en','Version of resource'),(10194,'en','Remote login (Telnet)'),(10195,'en','Related resource'),(10212,'en','Dial-up'),(10213,'en','No display constant generated'),(10230,'en','HTTP'),(10239,'en','Method specidied in subfield $2.'),(10248,'en','Field encoding level'),(10249,'en','Form of holdings'),(10266,'en','No information provided'),(10267,'en','No information provided'),(10284,'en','Holdings level 3'),(10285,'en','Compressed'),(10302,'en','Holdings level 4'),(10303,'en','Uncompressed'),(10320,'en','Holdings level 4 with piece designation'),(10321,'en','Compressed, use textual display'),(10338,'en','Uncompressed, use textual display'),(10347,'en','Item (s) not published'),(10356,'en','Field encoding level'),(10357,'en','Form of holdings'),(10374,'en','No information provided'),(10375,'en','No information provided'),(10392,'en','Holdings level 3'),(10393,'en','Compressed'),(10410,'en','Holdings level 4'),(10411,'en','Uncompressed'),(10428,'en','Holdings level 4 with piece designation'),(10429,'en','Compressed, use textual display'),(10446,'en','Uncompressed, use textual display'),(10455,'en','Item (s) not published'),(10464,'en','Field encoding level'),(10465,'en','Form of holdings'),(10482,'en','No information provided'),(10483,'en','No information provided'),(10500,'en','Holdings level 4'),(10501,'en','Uncompressed'),(10518,'en','Holdings level 4 with piece designation'),(10519,'en','Uncompressed, use textual display'),(10536,'en','Field encoding level'),(10537,'en','Type of notation'),(10554,'en','No information provided'),(10555,'en','Non-stardard'),(10572,'en','Holdings level 3'),(10573,'en','ANSI/NISO Z39.71 or ISO 10324'),(10590,'en','Holdings level 4'),(10591,'en','ANSI Z39.42'),(10608,'en','Holdings level 4 with piece designation'),(10609,'en','Source specified in subfield $2'),(10626,'en','Field encoding level'),(10627,'en','Type of notation'),(10644,'en','No information provided'),(10645,'en','Non-stardard'),(10662,'en','Holdings level 3'),(10663,'en','ANSI/NISO Z39.71 or ISO 10324'),(10680,'en','Holdings level 4'),(10681,'en','ANSI Z39.42'),(10698,'en','Holdings level 4 with piece designation'),(10699,'en','Source specified in subfield $2'),(10716,'en','Field encoding level'),(10717,'en','Type of notation'),(10734,'en','No information provided'),(10735,'en','Non-stardard'),(10752,'en','Holdings level 3'),(10753,'en','ANSI/NISO Z39.71 or ISO 10324'),(10770,'en','Holdings level 4'),(10771,'en','ANSI Z39.42'),(10788,'en','Holdings level 4 with piece designation'),(10789,'en','Source specified in subfield $2'),(10806,'en','Undefined'),(10807,'en','Undefined'),(10824,'en','Undefined'),(10825,'en','Undefined'),(10842,'en','Undefined'),(10843,'en','Undefined'),(10860,'en','Undefined'),(10861,'en','Undefined'),(10878,'en','Undefined'),(10879,'en','Undefined'),(10896,'en','Undefined'),(10897,'en','Undefined'),(10914,'en','Appropriate indicator as available in associated field'),(10915,'en','Appropriate indicator as available in associated field'),(10932,'en','Type of field'),(10933,'en','Undefined'),(10950,'en','Leader'),(10951,'en','Undefined'),(10968,'en','Variable control fields (002 -009)'),(10977,'en','Variable data fields (010 - 999)'),(10986,'en','Undefined'),(10987,'en','Undefined'),(11004,'en','Undefined'),(11005,'en','Undefined');
103
/*!40000 ALTER TABLE marc_indicators_desc ENABLE KEYS */;
104
UNLOCK TABLES;
105
106
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/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql (+2 lines)
Lines 311-314 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
311
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('UseControlNumber',0,'If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','','YesNo');
311
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('UseControlNumber',0,'If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','','YesNo');
312
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
312
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
313
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
313
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
314
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
315
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');
314
316
(-)a/installer/data/mysql/it-IT/necessari/sysprefs.sql (-2 / +5 lines)
Lines 1-6 Link Here
1
*
1
*
2
SQLyog Enterprise - MySQL GUI
2
SQLyog Enterprise - MySQL GUI
3
MySQL - 5.0.51a-24+lenny2+spu1 
3
MySQL - 5.0.51a-24+lenny2+spu1
4
*********************************************************************
4
*********************************************************************
5
*/
5
*/
6
/*!40101 SET NAMES utf8 */;
6
/*!40101 SET NAMES utf8 */;
Lines 295-298 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
295
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
295
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
296
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('UseControlNumber',0,'If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','','YesNo');
296
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('UseControlNumber',0,'If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','','YesNo');
297
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
297
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
298
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
298
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
299
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
300
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');
301
(-)a/installer/data/mysql/kohastructure.sql (+71 lines)
Lines 433-438 CREATE TABLE `categories` ( Link Here
433
--
433
--
434
-- Table: collections
434
-- Table: collections
435
--
435
--
436
DROP TABLE IF EXISTS `collections`;
436
CREATE TABLE collections (
437
CREATE TABLE collections (
437
  colId integer(11) NOT NULL auto_increment,
438
  colId integer(11) NOT NULL auto_increment,
438
  colTitle varchar(100) NOT NULL DEFAULT '',
439
  colTitle varchar(100) NOT NULL DEFAULT '',
Lines 444-449 CREATE TABLE collections ( Link Here
444
--
445
--
445
-- Table: collections_tracking
446
-- Table: collections_tracking
446
--
447
--
448
DROP TABLE IF EXISTS `collections_tracking`;
447
CREATE TABLE collections_tracking (
449
CREATE TABLE collections_tracking (
448
  ctId integer(11) NOT NULL auto_increment,
450
  ctId integer(11) NOT NULL auto_increment,
449
  colId integer(11) NOT NULL DEFAULT 0 comment 'collections.colId',
451
  colId integer(11) NOT NULL DEFAULT 0 comment 'collections.colId',
Lines 2611-2616 CREATE TABLE `fieldmapping` ( Link Here
2611
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2613
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2612
2614
2613
2615
2616
--
2617
-- Table structure for table `marc_indicators`
2618
--
2619
2620
DROP TABLE IF EXISTS `marc_indicators`;
2621
CREATE TABLE `marc_indicators` (
2622
  `id_indicator` int(11) unsigned NOT NULL auto_increment,
2623
  `frameworkcode` varchar(4) default '',
2624
  `tagfield` varchar(3) NOT NULL default '',
2625
  PRIMARY KEY  (`id_indicator`),
2626
  UNIQUE KEY `frameworkcode` (`frameworkcode`,`tagfield`),
2627
  CONSTRAINT `marc_indicators_ibfk_1` FOREIGN KEY (`frameworkcode`) REFERENCES `biblio_framework` (`frameworkcode`) ON DELETE CASCADE
2628
) ENGINE=InnoDB AUTO_INCREMENT=1775 DEFAULT CHARSET=utf8;
2629
2630
--
2631
-- Table structure for table `marc_indicators_desc`
2632
--
2633
2634
DROP TABLE IF EXISTS `marc_indicators_desc`;
2635
CREATE TABLE `marc_indicators_desc` (
2636
  `id_indicator_value` int(11) unsigned NOT NULL,
2637
  `lang` varchar(25) NOT NULL default 'en',
2638
  `ind_desc` mediumtext,
2639
  PRIMARY KEY  (`id_indicator_value`,`lang`),
2640
  KEY `lang` (`lang`),
2641
  CONSTRAINT `marc_indicators_desc_ibfk_2` FOREIGN KEY (`lang`) REFERENCES `language_descriptions` (`lang`) ON DELETE CASCADE,
2642
  CONSTRAINT `marc_indicators_desc_ibfk_1` FOREIGN KEY (`id_indicator_value`) REFERENCES `marc_indicators_value` (`id_indicator_value`) ON DELETE CASCADE
2643
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2644
2645
--
2646
-- Table structure for table `marc_indicators_value`
2647
--
2648
2649
DROP TABLE IF EXISTS `marc_indicators_value`;
2650
CREATE TABLE `marc_indicators_value` (
2651
  `id_indicator_value` int(11) unsigned NOT NULL auto_increment,
2652
  `id_indicator` int(11) unsigned NOT NULL,
2653
  `ind` enum('1','2') NOT NULL,
2654
  `ind_value` char(1) NOT NULL,
2655
  PRIMARY KEY  (`id_indicator_value`),
2656
  KEY `id_indicator` (`id_indicator`),
2657
  KEY `ind_value` (`ind_value`),
2658
  CONSTRAINT `marc_indicators_value_ibfk_2` FOREIGN KEY (`ind_value`) REFERENCES `marc_indicators_values` (`ind_value`) ON DELETE CASCADE,
2659
  CONSTRAINT `marc_indicators_value_ibfk_1` FOREIGN KEY (`id_indicator`) REFERENCES `marc_indicators` (`id_indicator`) ON DELETE CASCADE
2660
) ENGINE=InnoDB AUTO_INCREMENT=22196 DEFAULT CHARSET=utf8;
2661
2662
--
2663
-- Table structure for table `marc_indicators_values`
2664
--
2665
2666
DROP TABLE IF EXISTS `marc_indicators_values`;
2667
CREATE TABLE `marc_indicators_values` (
2668
  `ind_value` char(1) NOT NULL default '',
2669
  PRIMARY KEY  (`ind_value`)
2670
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2671
2672
2673
--
2674
-- Dumping data for table `marc_indicators_values`
2675
--
2676
2677
LOCK TABLES `marc_indicators_values` WRITE;
2678
/*!40000 ALTER TABLE `marc_indicators_values` DISABLE KEYS */;
2679
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');
2680
/*!40000 ALTER TABLE `marc_indicators_values` ENABLE KEYS */;
2681
UNLOCK TABLES;
2682
2683
2684
2614
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
2685
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
2615
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
2686
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
2616
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
2687
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
(-)a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql (+3 lines)
Lines 308-310 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
308
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
308
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
309
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
309
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
310
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
310
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
311
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
312
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');
313
(-)a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql (+3 lines)
Lines 363-365 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
363
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
363
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
364
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
364
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
365
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
365
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
366
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
367
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');
368
(-)a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql (-1 / +5 lines)
Lines 387-390 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
387
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACDisplay856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','OFF|Details|Results|Both','Choice');
387
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACDisplay856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','OFF|Details|Results|Both','Choice');
388
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
388
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Display856uAsImage','OFF','Display the URI in the 856u field as an image, the corresponding Staff Client XSLT option must be on','OFF|Details|Results|Both','Choice');
389
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
389
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free');
390
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
390
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
391
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free');
392
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');
393
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');
394
(-)a/installer/data/mysql/updatedatabase.pl (+57 lines)
Lines 4209-4214 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4209
    SetVersion ($DBversion);
4209
    SetVersion ($DBversion);
4210
}
4210
}
4211
4211
4212
4212
$DBversion = '3.03.00.042';
4213
$DBversion = '3.03.00.042';
4213
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4214
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4214
    $dbh->do("ALTER TABLE `items` DROP INDEX `itemsstocknumberidx`;");
4215
    $dbh->do("ALTER TABLE `items` DROP INDEX `itemsstocknumberidx`;");
Lines 4285-4290 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
4285
    SetVersion($DBversion);
4286
    SetVersion($DBversion);
4286
}
4287
}
4287
4288
4289
$DBversion = '3.03.00.XXX'; #FIXME
4290
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4291
    my %info;
4292
    $info{'dbname'} = C4::Context->config("database");
4293
    $info{'dbms'} = (   C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql" );
4294
    $info{'hostname'} = C4::Context->config("hostname");
4295
    $info{'port'}     = C4::Context->config("port");
4296
    $info{'user'}     = C4::Context->config("user");
4297
    $info{'password'} = C4::Context->config("pass");
4298
4299
    my $intranetdir = C4::Context->intranetdir;
4300
    my $path = ($intranetdir =~ /^(.+?)\/intranet\/cgi-bin/)?$1:$intranetdir;
4301
    $path .= "/installer/data/$info{dbms}/en/marcflavour/marc21/";
4302
    my $filename;
4303
    my $error;
4304
    my $strcmd;
4305
    if ( $info{'dbms'} eq 'mysql' ) {
4306
        my $cmd = qx(which mysql 2>/dev/null || whereis mysql 2>/dev/null);
4307
        chomp($cmd);
4308
        $cmd = $1 if ($cmd && $cmd =~ /^(.+)[\r\n]+$/);
4309
        $cmd = 'mysql' if (!$cmd || !-x $cmd);
4310
        $strcmd = "$cmd "
4311
            . ( $info{'hostname'} ? " -h $info{hostname} " : "" )
4312
            . ( $info{'port'}     ? " -P $info{port} "     : "" )
4313
            . ( $info{'user'}     ? " -u $info{user} "     : "" )
4314
            . ( $info{'password'} ? " -p'$info{password}'"   : "" )
4315
            . ' ' . $info{dbname} . ' ';
4316
        $filename = $path . 'mandatory/marc21_indicators.sql';
4317
        $error = qx($strcmd --default-character-set=utf8 <$filename 2>&1 1>/dev/null) if (-r $filename);
4318
    } elsif ( $info{'dbms'} eq 'Pg' ) {
4319
        my $cmd = qx(which psql 2>/dev/null || whereis psql 2>/dev/null);
4320
        chomp($cmd);
4321
        $cmd = $1 if ($cmd && $cmd =~ /^(.+)[\r\n]+$/);
4322
        $cmd = 'psql' if (!$cmd || !-x $cmd);
4323
        $strcmd = "$cmd "
4324
            . ( $info{'hostname'} ? " -h $info{hostname} " : "" )
4325
            . ( $info{'port'}     ? " -p $info{port} "     : "" )
4326
            . ( $info{'user'}     ? " -U $info{user} "     : "" )
4327
            . ' ' . $info{dbname} . ' ';
4328
        $filename = $path . 'mandatory/marc21_indicators.sql';
4329
        $error = qx($strcmd -f $filename 2>&1 1>/dev/null);
4330
    }
4331
    unless ($error) {
4332
        print "Upgrade to $DBversion done (New tables and data from $path for indicators functionality)\n";
4333
        $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CheckValueIndicators','0','Check the values of the indicators in cataloguing','','YesNo');");
4334
        print "Upgrade to $DBversion done (Add syspref to check the values of the indicators)\n";
4335
        $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');");
4336
        print "Upgrade to $DBversion done (Add syspref to display a plugin with the allowed values of indicators)\n";
4337
        SetVersion ($DBversion);
4338
    } else {
4339
        print "Error executing: $strcmd upon $filename $error";
4340
    }
4341
}
4342
4343
4344
4288
=head1 FUNCTIONS
4345
=head1 FUNCTIONS
4289
4346
4290
=head2 DropAllForeignKeys($table)
4347
=head2 DropAllForeignKeys($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (-1 / +13 lines)
Lines 1988-1991 fieldset.rows+h3 {clear:both;padding-top:.5em;} Link Here
1988
.importing .importing_msg {
1988
.importing .importing_msg {
1989
    padding-left: 10px;
1989
    padding-left: 10px;
1990
    padding-bottom: 10px;
1990
    padding-bottom: 10px;
1991
}
1991
}
1992
form#f_pop  ul {
1993
    list-style-type: none;
1994
}
1995
form#f_pop ul li {
1996
    list-style-type: none;
1997
    padding-top: 10px;
1998
    font-family: tahoma, verdana, arial;
1999
    font-size: 12px;
2000
}
2001
form#f_pop table {
2002
    float: left;
2003
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/indicators.js (+442 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 ok = false;
14
        var okBoth = 0;
15
        var form = obj.closest("form");
16
        var $inputs = form.find("input:hidden");
17
        if ($inputs.length > 0) {
18
            var i = 0;
19
            $inputs.each(function() {
20
                if ($(this).attr('name').indexOf(name) >= 0 && valueInd == $(this).val()) {
21
                    ok = true;
22
                    okBoth++;
23
                    i++;
24
                } else if ($(this).attr('name').indexOf(nameOther) >= 0 && valueIndOther == $(this).val()) {
25
                    i++;
26
                    okBoth++;
27
                }
28
                if (i == 2) return;
29
            });
30
            var a_usevalue = $("#" + field + "_btn_usevalue_" + ind);
31
            var a_usevalue_3 = $("#" + field + "_btn_usevalue_3");
32
            if (ok) {
33
                obj.prev("label").attr("title", "User Value for Indicator " + ind + " is valid");
34
                obj.attr("title", "User Value for Indicator " + ind + " is valid");
35
                obj.css("backgroundColor", "");
36
                if (a_usevalue && a_usevalue_3) {
37
                    a_usevalue.attr('title', "Use this value and close the window");
38
                    a_usevalue.val("Use and Close");
39
                    if (okBoth == 2) {
40
                        a_usevalue_3.attr('title', 'Use these values and close the window');
41
                        a_usevalue_3.val('Use both and Close');
42
                    } else {
43
                        a_usevalue_3.attr('title', "Can't Use these values until they're correct");
44
                        a_usevalue_3.val("Can't Use these values until they're correct");
45
                    }
46
                }
47
            } else {
48
                obj.prev("label").attr("title", "User Value for Indicator " + ind + " not is valid");
49
                obj.attr("title", "User Value for Indicator " + ind + " is not valid");
50
                obj.css("backgroundColor", "yellow");
51
                if (a_usevalue && a_usevalue_3) {
52
                    a_usevalue.attr('title', "Can't Use this value until is correct");
53
                    a_usevalue.val("Can't Use this value until is correct");
54
                    a_usevalue_3.attr('title', "Can't Use these values until they're correct");
55
                    a_usevalue_3.val("Can't Use these values until they're correct");
56
                }
57
            }
58
        } else ok = true;
59
        return ok;
60
    }//checkValueInd
61
62
63
    // Change the value on the opener windows
64
    function changeValueInd(value, ind, field, openerField1, openerField2)
65
    {
66
        var openerField = (ind == 1)?openerField1:openerField2;
67
        var name = field + "_ind" + ind;
68
        var form = $("#f_pop");
69
        var $inputs = $('#f_pop input:text[name=' + name + ']');
70
        $inputs.each(function() {
71
            $(this).val(value);
72
            if (checkValueInd($(this).attr("id"), ind, field) && opener) {
73
                for (var j=0; j < opener.document.f.elements.length; j++) {
74
                    if (opener.document.f.elements[j].name == openerField) {
75
                        opener.document.f.elements[j].value = value;
76
                        opener.document.f.elements[j].style.backgroundColor = "";
77
                        break;
78
                    }
79
                }
80
            }
81
            return;
82
        });
83
    }//changeValueInd
84
85
86
    // Fill in the opener form the value of the indicator
87
    function useValue(ind, field, openerField, close)
88
    {
89
        var obj = $("#" + field + "_ind" + ind);
90
        if (obj) {
91
            var value = obj.val();
92
            if (checkValueInd(obj.attr("id"), ind, field)) {
93
                if (opener) {
94
                    for (var j=0; j < opener.document.f.elements.length; j++) {
95
                        if (opener.document.f.elements[j].name == openerField) {
96
                            opener.document.f.elements[j].value = value;
97
                            break;
98
                        }
99
                    }
100
                    if (close) window.close();
101
                }
102
                return true;
103
            } else {
104
                var obja = $("#" + field + "_btn_usevalue_" + ind);
105
                if (obja) obja.attr('title', "Value " + value + " invalid for indicator " + ind);
106
                alert("Value " + value + " invalid for indicator " + ind);
107
            }
108
        }
109
        return false;
110
    }//useValue
111
112
113
    // Fill in the opener form the values
114
    function useValues(field, openerField1, openerField2)
115
    {
116
        if (useValue(1, field, openerField1, false) && useValue(2, field, openerField2, false)) {
117
            if (opener) window.close();
118
        }
119
    }//useValues
120
121
122
    // Launch the popup for the field with the current values
123
    function launchPopupValueIndicators(frameworkcode, tag, index, random)
124
    {
125
        var ind1 = "tag_" + tag + "_indicator1_" + index + random;
126
        var ind2 = "tag_" + tag + "_indicator2_" + index + random;
127
        var objInd1 = $("input:text[name^='" + ind1 + "']");
128
        var objInd2 = $("input:text[name^='" + ind2 + "']");
129
        if (objInd1 || objInd2) {
130
            var strParam = "";
131
            if (objInd1 != undefined) strParam += "&" + ind1 + "=" + ((objInd1.val())?objInd1.val():escape("#"));
132
            if (objInd2 != undefined) strParam += "&" + ind2 + "=" + ((objInd2.val())?objInd2.val():escape("#"));
133
            if (arguments.length == 5) {
134
                window.open("/cgi-bin/koha/cataloguing/marc21_indicators.pl?biblionumber=" + arguments[4] + "&frameworkcode=" + frameworkcode + strParam, "valueindicators",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
135
            } else {
136
                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');
137
            }
138
        }
139
    }//launchPopupValueIndicators
140
141
142
    var xmlDocInd;
143
    var tagFields;
144
    var errorAjax = false;
145
146
    // Look for the value indicator for a frameworkcode
147
    function send_ajax_indicators(frameworkcode)
148
    {
149
        $.ajax({
150
            type: "POST",
151
            url: "/cgi-bin/koha/cataloguing/indicators_ajax.pl",
152
            dataType: "xml",
153
            async: true,
154
            "data": {frameworkcode: frameworkcode},
155
            "success": (arguments.length == 1)?receive_ok_indicators:receive_ok_indicators_for_opener
156
        });
157
        $("*").ajaxError(function(evt, request, settings){
158
            if (!errorAjax) {
159
                alert("AJAX error: receiving data from " + settings.url);
160
                errorAjax = true;
161
            }
162
        });
163
    }//send_ajax_indicators
164
165
166
    function receive_ok_indicators(data, textStatus)
167
    {
168
        xmlDocInd = data.documentElement;
169
        getTagFields();
170
    }//receive_ok_indicators
171
172
173
    // Called from the plugin to reload the xml data in the opener, so you can make changes in the framework's indicators
174
    // and validate the biblio record without reloading the page and losing the data of the form.
175
    function receive_ok_indicators_for_opener(data, textStatus)
176
    {
177
        window.opener.xmlDocInd = data.documentElement;
178
        getTagFields(true);
179
        window.opener.tagFields = tagFields;
180
        location.reload();
181
    }//receive_ok_indicators
182
183
184
    // Get all input elements for indicators and store them on associative array for rapid accessing
185
    function getTagFields()
186
    {
187
        tagFields = new Array();
188
        var form = (arguments.length == 1)?window.opener.document.f:document.f;
189
        var name;
190
        var tag;
191
        for (var i=0; i < form.elements.length; i++) {
192
            name = form.elements[i].name;
193
            if (name.indexOf("tag_") == 0 && name.indexOf("_indicator") > 0) {
194
                tag = name.substr(4,3);
195
                tagFields[tag] = true;
196
            }
197
        }
198
    }//getTagFields
199
200
201
    // Traverse the indicators xml data to check against fields in the form
202
    function checkValidIndFramework()
203
    {
204
        var strErrorInd = "";
205
        var numError = -1;
206
        if (xmlDocInd != undefined) {
207
            if (xmlDocInd.nodeName == "Error") {
208
            } else {
209
                if (xmlDocInd.nodeName == "Framework" && xmlDocInd.nodeType == 1 && xmlDocInd.hasChildNodes()) {
210
                    var nodeFields = xmlDocInd.getElementsByTagName('Fields')[0];
211
                    if (nodeFields && nodeFields.nodeType == 1 && nodeFields.hasChildNodes()) {
212
                        var nodeField = nodeFields.firstChild;
213
                        var tag;
214
                        var i = 1;
215
                        while (nodeField != null) {
216
                            if (nodeField.nodeType == 1) {
217
                                tag = nodeField.attributes.getNamedItem("tag").nodeValue;
218
                                if (nodeField.hasChildNodes()) {
219
                                    var objFieldsInd;
220
                                    var arrObj = search_koha_field(tag);
221
                                    if (arrObj != undefined && arrObj.length > 0) {
222
                                        for (var z = 0; z < arrObj.length; z++) {
223
                                            objFieldsInd = arrObj[z];
224
                                            if (objFieldsInd != undefined && (objFieldsInd.ind1 != undefined || objFieldsInd.ind2 != undefined)) {
225
                                                for (var j = 1; j <= 2; j++) {
226
                                                    var objInd;
227
                                                    if (j == 1 && objFieldsInd.ind1 != undefined) objInd = objFieldsInd.ind1;
228
                                                    else if (j == 2 && objFieldsInd.ind2 != undefined) objInd = objFieldsInd.ind2;
229
                                                    if (objInd != undefined) {
230
                                                        var valueInd = objInd.val();
231
                                                        if (!checkValidIndField(j, valueInd, nodeField)) {
232
                                                            strErrorInd += "The value \"" + valueInd + "\" is not valid for indicator " + j + " on tag " + tag + ". ";
233
                                                            numError++;
234
                                                            if (numError > 0 && (numError + 1) % 2 == 0) strErrorInd += "\n";
235
                                                            objInd.css("backgroundColor", "yellow");
236
                                                        } else {
237
                                                            objInd.css("backgroundColor" ,"");
238
                                                        }
239
                                                    }
240
                                                }
241
                                            }
242
                                        }
243
                                    }
244
                                }
245
                            }
246
                            nodeField = nodeField.nextSibling;
247
                            i++;
248
                        }
249
                    }
250
                }
251
            }
252
        }
253
        return strErrorInd;
254
    }//checkValidIndFramework
255
256
257
    // Check a value from an indicator against a node from the xml
258
    function checkValidIndField(ind, valueInd, nodeField)
259
    {
260
        try {
261
            var hasNodeInd = false;
262
            var nodeInd = nodeField.firstChild;
263
            while (nodeInd != null) {
264
                if (nodeInd.nodeType == 1 && (nodeInd.getAttributeNode("ind") || nodeInd.hasAttribute("ind"))) {
265
                    if (nodeInd.getAttribute("ind") == ind) {
266
                        hasNodeInd = true;
267
                        // return as valid if value is ok or is empty or is a blank
268
                        if (nodeInd.hasChildNodes() && nodeInd.firstChild.nodeValue == valueInd) return true;
269
                        else if (valueInd == "" || valueInd == " ") return true;
270
                    }
271
                }
272
                nodeInd = nodeInd.nextSibling;
273
            }
274
            // Return as valid if there's not a set of values for this indicator in this field
275
            if (!hasNodeInd) return true;
276
        } catch (e) {
277
            //alert("An exception occurred in the script. Error name: " + e.name + ". Error message: " + e.message);
278
        }
279
        return false;
280
    }//checkValidIndField
281
282
283
    // Class for store both indicators values
284
    function FieldIndicatorObject()
285
    {
286
    }//IndicatorObject
287
288
    FieldIndicatorObject.prototype = {
289
        ind1: undefined,
290
        ind2: undefined
291
    }
292
293
    // Search for the input text of the indicators for a tag in the form
294
    function search_koha_field(tag)
295
    {
296
        var resArr;
297
        if (tagFields != undefined && (tagFields[tag] == undefined || !tagFields[tag])) {
298
            return resArr;
299
        }
300
        resArr = new Array();
301
        var indTag = "tag_" + tag + "_indicator";
302
        var lengthIndTag = indTag.length;
303
        var pos;
304
        var ind1 = false;
305
        var ind2 = false;
306
        var obj;
307
        var name;
308
        var $inputs = $('input:text[name^="' + indTag + '"]');
309
        $inputs.each(function() {
310
            name = $(this).attr('name');
311
            if ((pos = name.indexOf(indTag)) >= 0) {
312
                if (!ind1 && !ind2) {
313
                    obj = new FieldIndicatorObject();
314
                }
315
                if (name.charAt(pos + lengthIndTag) == 1) {
316
                    ind1 = true;
317
                    obj.ind1 = $(this);
318
                } else {
319
                    ind2 = true;
320
                    obj.ind2 = $(this);
321
                }
322
                if (ind1 && ind2 && obj.ind1 != undefined && obj.ind2 != undefined) {
323
                    ind1 = false;
324
                    ind2 = false;
325
                    resArr.push(obj);
326
                }
327
            }
328
        });
329
        return resArr;
330
    }//search_koha_field
331
332
333
334
    // Block for dynamic HTML management of value indicators
335
336
337
    // Delete indicator block
338
    function delete_ind_value(id)
339
    {
340
        $('#ul_' + id).remove();
341
    }//delete_ind_value
342
343
344
    // Hide or show the indicator block
345
    function hideShowBlock(a, ind)
346
    {
347
        var ul_in = $("#ul_in_" + ind);
348
        if (ul_in.css('display') == "none") {
349
            ul_in.css('display', "block");
350
            a.title = "Hide: " + a.innerHTML;
351
        } else {
352
            ul_in.css('display', "none");
353
            a.title = "Show: " + a.innerHTML;
354
        }
355
    }//hideShowBlock
356
357
358
    // Change label to indicate whether is indicator 1 or 2
359
    function changeLabelInd(ind, obj)
360
    {
361
        var a_in = $('#a_in_' + ind);
362
        if (!(obj.value == '1' || obj.value == '2')) {
363
            obj.value = '';
364
            a_in.html(ind + ' - Indicator ' + obj.value);
365
        }
366
        a_in.html(ind + ' - Indicator ' + obj.value);
367
    }//changeLabelInd
368
369
370
    // Check whether the value is correct
371
    function checkValueIndCompleteSet(ind, obj)
372
    {
373
        var rege = new RegExp("^[abcdefghijklmnopqrstuvwxyz0123456789 ]$");
374
        if (rege.test(obj.value) || obj.value == "") {
375
            obj.title = "Value \"" + obj.value + "\" for Indicator " + ind + " is valid";
376
            obj.style.backgroundColor = "";
377
        } else {
378
            obj.title = "Value \"" + obj.value + "\"  for Indicator " + ind + " is not valid (abcdefghijklmnopqrstuvwxyz0123456789 )";
379
            obj.style.backgroundColor = "yellow";
380
        }
381
    }//checkValueIndCompleteSet
382
383
384
    // Add indicator block
385
    function add_ind_value()
386
    {
387
        var list = $('#marc_indicators_structure');
388
        if (list) {
389
            numInd++;
390
            var ul = $("<ol id='ul_" + numInd + "' style='width:590px' />");
391
392
            var li = $('<li />');
393
            li.text('\u00a0');
394
            ul.append(li);
395
396
            lli = $('<li />');
397
            var bold = $('<strong />');
398
            li.append(bold);
399
            var a = $("<a id='a_in_" + numInd + "' href='javascript:void(0)' onclick='hideShowBlock(this, " + numInd + ")' />");
400
            a.text(numInd + " - Indicator");
401
            bold.append(a);
402
            ul.append(li);
403
404
            li = $("<li id='ul_in_" + numInd + "' style='display:block' />");
405
            ul.append(li);
406
            var ul2 = $("<ol />");
407
            li.append(ul2);
408
409
            var li2 = $('<li />');
410
            label = $("<label for='ind_" + numInd + "' title='Type of indicator: 1 or 2' />");
411
            label.text('Type of indicator');
412
            li2.append(label);
413
            input = $("<input type='text' size='1' maxlength='1' name='ind_" + numInd + "' id='ind_" + numInd + "' onkeyup='changeLabelInd(" + numInd + ", this)' />");
414
            li2.append(input);
415
            ul2.append(li2);
416
417
            li2 = $('<li />');
418
            label = $("<label for='ind_value_" + numInd + "' title='Value: only one char allowed' />");
419
            label.text('Value');
420
            li2.append(label);
421
            input = $("<input type='text' size='1' maxlength='1' name='ind_value_" + numInd + "' id='ind_value_" + numInd + "' onkeyup='checkValueIndCompleteSet(" + numInd + ", this)' />");
422
            li2.append(input);
423
            ul2.append(li2);
424
425
            li2 = $('<li />');
426
            label = $("<label for='ind_desc_" + numInd + "' />");
427
            label.text('Description');
428
            li2.append(label);
429
            input = $("<textarea cols='80' rows='4' name='ind_desc_" + numInd + "' id='ind_desc_" + numInd + "' />");
430
            li2.append(input);
431
            ul2.append(li2);
432
433
            var del = $("<input type='button' value='Delete' onclick='delete_ind_value(" + numInd + ")' />");
434
            li2 = $('<li />');
435
            li2.append(del);
436
            ul2.append(li2);
437
438
            list.append(ul);
439
        }
440
    }//add_ind_value
441
442
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tmpl (-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
	<!-- /TMPL_IF -->
162
	<!-- /TMPL_IF -->
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="<!-- TMPL_VAR NAME="frameworktext" ESCAPE="HTML" -->" /></li></ol></fieldset>
164
        <input type="text" name="frameworktext" id="description" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="frameworktext" ESCAPE="HTML" -->" /></li>
165
    <!-- TMPL_IF NAME="frameworkloop" -->
166
    <!-- TMPL_IF NAME="frameworkcode" -->
167
        <li><label for="indicators">Clone indicators using</label>
168
        <select name="indicators" id="indicators">
169
            <option value="">Don't clone</option>
170
        <!-- TMPL_LOOP NAME="frameworkloop" -->
171
            <option value="<!-- TMPL_VAR NAME="frameworkcode" -->"><!-- TMPL_VAR NAME="frameworktext" --></option>
172
        <!-- /TMPL_LOOP -->
173
        </select>
174
        </li>
175
    <!-- /TMPL_IF -->
176
    <!-- /TMPL_IF -->
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
<!-- /TMPL_IF -->
180
<!-- /TMPL_IF -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_indicators_structure.tmpl (+86 lines)
Line 0 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
    <title>Koha &rsaquo; Administration &rsaquo; Indicators Set - Framework <!-- TMPL_VAR NAME="frameworkcode" --> - Tag
3
<!-- TMPL_VAR NAME="tagfield" --></title>
4
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5
    <script type="text/javascript">
6
        var numInd = <!-- TMPL_VAR name="numInd" -->;
7
    </script>
8
    <script type="text/javascript" src='<!-- TMPL_VAR name="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
<!-- TMPL_INCLUDE NAME="header.inc" -->
31
<!-- TMPL_INCLUDE NAME="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; <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC Frameworks</a> &rsaquo; <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->&amp;searchfield=<!-- TMPL_VAR name="tagfield" -->"><!-- TMPL_VAR NAME="frameworkcode" --> Framework Structure</a> &rsaquo; Indicators Structure - Tag <!-- TMPL_VAR NAME="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="<!-- TMPL_VAR NAME="op" -->" />
44
                <input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" />
45
                <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
46
                <input type="hidden" name="lang" value="<!-- TMPL_VAR NAME="lang" -->" />
47
                <fieldset class="rows" id="marc_indicators_structure"><legend id="marc_indicators_structure"><!-- TMPL_IF EXPR="op eq 'mod'" -->Edit value indicators<!-- TMPL_ELSE -->Add value indicators<!-- /TMPL_IF --></legend>
48
                <!-- TMPL_LOOP name="BIG_LOOP" -->
49
                <ol id='ul_<!-- TMPL_VAR name="numInd" -->'>
50
                    <input type="hidden" name="id_indicator_<!-- TMPL_VAR name="numInd" -->" value="<!-- TMPL_VAR name="id_indicator_value" -->" />
51
                    <li>&nbsp;</li>
52
                    <li><b><a href="javascript:void(0)" id="a_in_<!-- TMPL_VAR name="numInd" -->" class="ul_in"><!-- TMPL_VAR name="numInd" --> - Indicator <!-- TMPL_VAR name="ind" --></a></b></li>
53
                    <li id='ul_in_<!-- TMPL_VAR name="numInd" -->' style="display:block">
54
                        <ol>
55
                            <li>
56
                                <label for="ind_<!-- TMPL_VAR name="numInd" -->" title="Type of indicator: 1 or 2">Type of indicator</label>
57
                                <input type="text" size="1" maxlength="1" name="ind_<!-- TMPL_VAR name="numInd" -->" id="ind_<!-- TMPL_VAR name="numInd" -->" value="<!-- TMPL_VAR name="ind" -->" onkeyup="changeLabelInd(<!-- TMPL_VAR name="numInd" -->, this)" />
58
                            </li>
59
                            <li>
60
                                <label for="ind_value_<!-- TMPL_VAR name="numInd" -->" title="Value: only one char allowed">Value</label>
61
                                <input type="text" size="1" maxlength="1" name="ind_value_<!-- TMPL_VAR name="numInd" -->" id="ind_value_<!-- TMPL_VAR name="numInd" -->" value="<!-- TMPL_VAR name="ind_value" -->" onkeyup="checkValueIndCompleteSet(<!-- TMPL_VAR name="numInd" -->, this)" />
62
                            </li>
63
                            <li>
64
                                <label for="ind_desc_<!-- TMPL_VAR name="numInd" -->">Description</label>
65
                                <textarea cols="80" rows="4" name="ind_desc_<!-- TMPL_VAR name="numInd" -->" id="ind_desc_<!-- TMPL_VAR name="numInd" -->"><!-- TMPL_VAR name="ind_desc" --></textarea>
66
                            </li>
67
                            <li>
68
                                <input type="button" value="Delete" onclick="delete_ind_value(<!-- TMPL_VAR name="numInd" -->)" />
69
                            </li>
70
                        </ol>
71
                    </li>
72
                </ol>
73
                <!--  /TMPL_LOOP -->
74
                </fieldset>
75
                <fieldset class="action">
76
                    <input type="button" class="button" title="Add another value" value="Add another value" onclick="add_ind_value()" name="btn_add_ind" />
77
                    <input type="submit" class="button" title="Save Values" value="Save Values" name="btn_save" />
78
                </fieldset>
79
            </form>
80
81
            </div>
82
        </div>
83
    </div>
84
85
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
86
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tmpl (-1 / +6 lines)
Lines 127-132 $(document).ready(function() { Link Here
127
        <!-- /TMPL_LOOP -->
127
        <!-- /TMPL_LOOP -->
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
<!-- /TMPL_IF -->
133
<!-- /TMPL_IF -->
132
134
Lines 183-188 $(document).ready(function() { Link Here
183
        <th>Mandatory</th>
185
        <th>Mandatory</th>
184
        <th>Auth value</th>
186
        <th>Auth value</th>
185
        <th>Subfields</th>
187
        <th>Subfields</th>
188
        <th>Indicators</th>
186
        <th>Edit</th>
189
        <th>Edit</th>
187
        <th>Delete</th>
190
        <th>Delete</th>
188
	</thead>
191
	</thead>
Lines 196-207 $(document).ready(function() { Link Here
196
            <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
199
            <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
197
            <td><!-- TMPL_VAR NAME="authorised_value" --></td>
200
            <td><!-- TMPL_VAR NAME="authorised_value" --></td>
198
            <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
201
            <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">subfields</a></td>
202
            <td><!-- TMPL_IF NAME="indicator_link" --><a href="<!-- TMPL_VAR NAME="indicator_link" -->">indicators</a><!--/TMPL_IF --></td>
199
            <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
203
            <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
200
            <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
204
            <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
201
        </tr>
205
        </tr>
202
      <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
206
      <!-- TMPL_IF NAME="__odd__" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
203
            <td>&nbsp;</td>
207
            <td>&nbsp;</td>
204
            <td colspan="7">
208
            <td colspan="8">
205
                <!-- TMPL_LOOP NAME="subfields" -->
209
                <!-- TMPL_LOOP NAME="subfields" -->
206
                    <p>	Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
210
                    <p>	Tab:<!-- TMPL_VAR NAME="tab" --> | $<!-- TMPL_VAR NAME="tagsubfield" -->
207
                            <!-- TMPL_VAR NAME="liblibrarian" --> <!-- TMPL_IF NAME="kohafield" --><!-- TMPL_VAR NAME="kohafield" --><!--/TMPL_IF --><!-- TMPL_IF NAME="repeatable" -->, repeatable<!-- /TMPL_IF --><!-- TMPL_IF NAME="mandatory" -->, Mandatory<!-- /TMPL_IF --><!-- TMPL_IF NAME="seealso" -->, See <!-- TMPL_VAR name="seealso" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authorised_value" -->, <!-- TMPL_VAR NAME="authorised_value" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authtypecode" -->, <!-- TMPL_VAR NAME="authtypecode" --><!--/TMPL_IF --><!-- TMPL_IF NAME="value_builder" -->, <!-- TMPL_VAR NAME="value_builder" --><!--/TMPL_IF -->
211
                            <!-- TMPL_VAR NAME="liblibrarian" --> <!-- TMPL_IF NAME="kohafield" --><!-- TMPL_VAR NAME="kohafield" --><!--/TMPL_IF --><!-- TMPL_IF NAME="repeatable" -->, repeatable<!-- /TMPL_IF --><!-- TMPL_IF NAME="mandatory" -->, Mandatory<!-- /TMPL_IF --><!-- TMPL_IF NAME="seealso" -->, See <!-- TMPL_VAR name="seealso" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authorised_value" -->, <!-- TMPL_VAR NAME="authorised_value" --><!--/TMPL_IF --><!-- TMPL_IF NAME="authtypecode" -->, <!-- TMPL_VAR NAME="authtypecode" --><!--/TMPL_IF --><!-- TMPL_IF NAME="value_builder" -->, <!-- TMPL_VAR NAME="value_builder" --><!--/TMPL_IF -->
Lines 219-224 $(document).ready(function() { Link Here
219
        <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
223
        <td><!-- TMPL_IF NAME="mandatory" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
220
        <td><!-- TMPL_VAR NAME="authorised_value" --></td>
224
        <td><!-- TMPL_VAR NAME="authorised_value" --></td>
221
        <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
225
        <td><a href="<!-- TMPL_VAR NAME="subfield_link" -->">Subfields</a></td>
226
        <td><!-- TMPL_IF NAME="indicator_link" --><a href="<!-- TMPL_VAR NAME="indicator_link" -->">Indicators</a><!--/TMPL_IF --></td>
222
        <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
227
        <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
223
        <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
228
        <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
224
    </tr>
229
    </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+12 lines)
Lines 84-89 Cataloging: Link Here
84
                  annual: generated in the form &lt;year&gt;-0001, &lt;year&gt;-0002.
84
                  annual: generated in the form &lt;year&gt;-0001, &lt;year&gt;-0002.
85
                  hbyymmincr: generated in the form &lt;branchcode&gt;yymm0001.
85
                  hbyymmincr: generated in the form &lt;branchcode&gt;yymm0001.
86
                  "OFF": not generated automatically.
86
                  "OFF": not generated automatically.
87
        -
88
            - pref: CheckValueIndicators
89
              choices:
90
                  yes: Check
91
                  no: "Don't check"
92
            - the values of the indicators against the defined values of the indicators for a framework when saving a biblio record.
87
    Display:
93
    Display:
88
        -
94
        -
89
            - 'Separate multiple displayed authors, series or subjects with '
95
            - 'Separate multiple displayed authors, series or subjects with '
Lines 131-134 Cataloging: Link Here
131
                  yes: Hide
137
                  yes: Hide
132
                  no: "Don't hide"
138
                  no: "Don't hide"
133
            - items marked as suppressed from OPAC search results. Note that you must have the <code>Suppress</code> index set up in Zebra and at least one suppressed item, or your searches will be broken.
139
            - items marked as suppressed from OPAC search results. Note that you must have the <code>Suppress</code> index set up in Zebra and at least one suppressed item, or your searches will be broken.
140
        -
141
            - pref: DisplayPluginValueIndicators
142
              choices:
143
                  yes: "Don't hide"
144
                  no: Hide
145
            - 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.
134
146
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl (-1 / +98 lines)
Lines 2-7 Link Here
2
<title>Koha &rsaquo; Cataloging &rsaquo; <!-- TMPL_IF NAME="biblionumber" -->Editing <!-- TMPL_VAR NAME="title" escape="html" --> (Record Number <!-- TMPL_VAR name="biblionumber" -->)<!-- TMPL_ELSE -->Add MARC Record<!-- /TMPL_IF --></title>
2
<title>Koha &rsaquo; Cataloging &rsaquo; <!-- TMPL_IF NAME="biblionumber" -->Editing <!-- TMPL_VAR NAME="title" escape="html" --> (Record Number <!-- TMPL_VAR name="biblionumber" -->)<!-- TMPL_ELSE -->Add MARC Record<!-- /TMPL_IF --></title>
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/yui/plugins/bubbling-min.js"></script>
4
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/yui/plugins/bubbling-min.js"></script>
5
<!-- TMPL_IF NAME="CheckValueIndicators" -->
6
<script type="text/javascript" src='<!-- TMPL_VAR name="themelang" -->/js/indicators.js'></script>
7
<!-- /TMPL_IF -->
5
<script type="text/javascript">
8
<script type="text/javascript">
6
//<![CDATA[
9
//<![CDATA[
7
10
Lines 40-47 function confirmnotdup(redirect){ Link Here
40
 * 
43
 * 
41
 * 
44
 * 
42
 */
45
 */
46
47
// Get XML Document with values of indicators.
48
// Check if we come from an addbiblio operation with wrong values
49
// Check if the XML is ready
50
<!-- TMPL_IF NAME="CheckValueIndicators" -->
51
    // Get XML Document with values of indicators
52
    send_ajax_indicators('<!-- TMPL_VAR NAME="frameworkcode" -->');
53
    // check if we come from an addbiblio operation with wrong values
54
    <!-- TMPL_IF NAME="wrongInd" -->
55
        $(document).ready(function() {
56
            var form = document.f;
57
            var tagfield;
58
            var arrInd;
59
            var strIndError = "";
60
        <!-- TMPL_LOOP NAME="wrongInd" -->
61
            tagfield = '<!-- TMPL_VAR NAME="tagfield" -->';
62
            arrInd = search_koha_field(tagfield);
63
            if (arrInd != undefined && arrInd.length > 0) {
64
                for (var i=0; i < arrInd.length; i++) {
65
                    var ind1 = '<!-- TMPL_VAR NAME="ind1" -->';
66
                    var ind2 = '<!-- TMPL_VAR NAME="ind2" -->';
67
                    if (ind1 != '' && ind1 != ' ' && arrInd[i].ind1.val() == ind1) {
68
                        arrInd[i].ind1.css("backgroundColor", "yellow");
69
                        strIndError += "Field " + tagfield + " has wrong value \"" + ind1 + "\" on indicator 1.\n";
70
                    }
71
                    if (ind2 != '' && ind2 != ' ' && arrInd[i].ind2.val() == ind2) {
72
                        arrInd[i].ind2.css("backgroundColor", "yellow");
73
                        strIndError += "Field " + tagfield + " has wrong value \"" + ind2 + "\" on indicator 2.\n";
74
                    }
75
                }
76
            }
77
        <!-- /TMPL_LOOP -->
78
        if (strIndError != "") alert("Record not saved due to errors on indicators:\n\n" + strIndError);
79
        });
80
    <!-- /TMPL_IF -->
81
    var triesReadXmlDocInd = 1;
82
/**
83
 * this function waits a maximun ot 6s for xmlDocInd to be populated before giving up.
84
 */
85
    function CheckAgain()
86
    {
87
        Check();
88
    }
89
<!-- /TMPL_IF -->
90
43
function Check(){
91
function Check(){
44
    var StrAlert = AreMandatoriesNotOk();
92
    var StrAlert = AreMandatoriesNotOk();
93
    // check for indicator values
94
    <!-- TMPL_IF NAME="CheckValueIndicators" -->
95
    if (xmlDocInd != undefined) {
96
        var strInd = checkValidIndFramework();
97
        if (strInd != "") {
98
            if (StrAlert == 0) StrAlert = "";
99
            else StrAlert += "\n";
100
            StrAlert += strInd;
101
        }
102
    } else if (triesReadXmlDocInd <= 3 && !StrAlert) {
103
        triesReadXmlDocInd++;
104
        setTimeout(function(){CheckAgain()}, 2000);
105
    }
106
    <!-- /TMPL_IF -->
45
    if( ! StrAlert ){
107
    if( ! StrAlert ){
46
        document.f.submit();
108
        document.f.submit();
47
        return true;
109
        return true;
Lines 137-143 function AreMandatoriesNotOk(){ Link Here
137
        if( tabflag[tag+subfield+tagnumber][0] != 1 && (document.getElementById(mandatories[i]) != null && ! document.getElementById(mandatories[i]).value || document.getElementById(mandatories[i]) == null)){
199
        if( tabflag[tag+subfield+tagnumber][0] != 1 && (document.getElementById(mandatories[i]) != null && ! document.getElementById(mandatories[i]).value || document.getElementById(mandatories[i]) == null)){
138
            tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ;
200
            tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ;
139
            document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled');
201
            document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled');
140
            document.getElementById(mandatories[i]).focus();
202
            try {
203
                document.getElementById(mandatories[i]).focus();
204
            } catch (e) {}
141
            tabflag[tag+subfield+tagnumber][1]=label[i];
205
            tabflag[tag+subfield+tagnumber][1]=label[i];
142
            tabflag[tag+subfield+tagnumber][2]=tab[i];
206
            tabflag[tag+subfield+tagnumber][2]=tab[i];
143
        } else {
207
        } else {
Lines 307-312 function CloneField(index) { Link Here
307
            var indicator = clone.getElementsByTagName('input')[i];
371
            var indicator = clone.getElementsByTagName('input')[i];
308
            indicator.setAttribute('name',indicator.getAttribute('name')+new_key);
372
            indicator.setAttribute('name',indicator.getAttribute('name')+new_key);
309
        }
373
        }
374
        <!-- TMPL_IF NAME="DisplayPluginValueIndicators" -->
375
            var linksInd   = clone.getElementsByTagName('a');
376
            var tagInd = clone.getAttribute('id').substr(4,3);
377
            var indexInd = original.getAttribute('id').substring(8, original.getAttribute('id').length);
378
            for ( j = 0 ; j < linksInd.length ; j++ ) {
379
                if (linksInd[j].name == "a_ind1" || linksInd[j].name == "a_ind2") {
380
                    if (document.all)
381
                        linksInd[j].onclick = function() { launchPopupValueIndicators('<!-- TMPL_VAR NAME="frameworkcode"-->', tagInd, indexInd, new_key<!-- TMPL_IF NAME="biblionumber" -->,<!-- TMPL_VAR NAME='biblionumber'--><!-- /TMPL_IF -->)};
382
                    else
383
                        linksInd[j].setAttribute('onclick', "launchPopupValueIndicators('<!-- TMPL_VAR NAME="frameworkcode"-->', '" + tagInd + "', '" + indexInd + "', '" + new_key + "'<!-- TMPL_IF NAME="biblionumber" -->,<!-- TMPL_VAR NAME='biblionumber'--><!-- /TMPL_IF -->)");
384
                }
385
            }
386
            <!-- /TMPL_IF -->
310
    <!-- /TMPL_UNLESS -->
387
    <!-- /TMPL_UNLESS -->
311
        
388
        
312
    // settings all subfields
389
    // settings all subfields
Lines 796-802 function unHideSubfield(index,labelindex) { // FIXME :: is it used ? Link Here
796
	                <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator2" -->" />
873
	                <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator2" -->" />
797
                <!-- TMPL_ELSE -->
874
                <!-- TMPL_ELSE -->
798
        	        <input tabindex="1" class="indicator flat" type="text" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator1" -->" />
875
        	        <input tabindex="1" class="indicator flat" type="text" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator1" -->" />
876
                    <!-- TMPL_IF NAME="DisplayPluginValueIndicators" --><a href="javascript:void(0)" name="a_ind1"
877
onclick="launchPopupValueIndicators('<!-- TMPL_VAR NAME="frameworkcode"-->', '<!-- TMPL_VAR NAME="tag" -->', '<!--
878
TMPL_VAR NAME="index" -->', '<!-- TMPL_VAR name="random" -->'<!-- TMPL_IF NAME="biblionumber" -->,<!-- TMPL_VAR
879
NAME='biblionumber'--><!-- /TMPL_IF -->)" title="Show plugin with allowed values for indicator 1 on field <!-- TMPL_VAR
880
name="tag"-->">...</a><!-- /TMPL_IF -->
799
        	        <input tabindex="1" class="indicator flat" type="text" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator2" -->" />
881
        	        <input tabindex="1" class="indicator flat" type="text" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator2" -->" />
882
                    <!-- TMPL_IF NAME="DisplayPluginValueIndicators" --><a href="javascript:void(0)" name="a_ind2"
883
onclick="launchPopupValueIndicators('<!-- TMPL_VAR NAME="frameworkcode"-->', '<!-- TMPL_VAR NAME="tag" -->', '<!--
884
TMPL_VAR NAME="index" -->', '<!-- TMPL_VAR name="random" -->'<!-- TMPL_IF NAME="biblionumber" -->,<!-- TMPL_VAR
885
NAME='biblionumber'--><!-- /TMPL_IF -->)" title="Show plugin with allowed values for indicator 2 on field <!-- TMPL_VAR
886
name="tag"-->">...</a><!-- /TMPL_IF -->
800
                <!-- /TMPL_IF --> -
887
                <!-- /TMPL_IF --> -
801
            <!-- TMPL_ELSE -->
888
            <!-- TMPL_ELSE -->
802
                <!-- TMPL_IF NAME="fixedfield" -->
889
                <!-- TMPL_IF NAME="fixedfield" -->
Lines 804-810 function unHideSubfield(index,labelindex) { // FIXME :: is it used ? Link Here
804
                    <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator2" -->" />
891
                    <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator2" -->" />
805
                <!-- TMPL_ELSE -->
892
                <!-- TMPL_ELSE -->
806
                    <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator1" -->" />
893
                    <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator1" -->" />
894
                    <!-- TMPL_IF NAME="DisplayPluginValueIndicators" --><a href="javascript:void(0)" name="a_ind1"
895
onclick="launchPopupValueIndicators('<!-- TMPL_VAR NAME="frameworkcode"-->', '<!-- TMPL_VAR NAME="tag" -->', '<!--
896
TMPL_VAR NAME="index" -->', '<!-- TMPL_VAR name="random" -->'<!-- TMPL_IF NAME="biblionumber" -->,<!-- TMPL_VAR
897
NAME='biblionumber'--><!-- /TMPL_IF -->)" title="Show plugin with allowed values for indicator 1 on field <!-- TMPL_VAR
898
name="tag"-->">...</a><!-- /TMPL_IF -->
807
                    <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator2" -->" />
899
                    <input tabindex="1" type="hidden" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator2_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" value="<!-- TMPL_VAR NAME="indicator2" -->" />
900
                    <!-- TMPL_IF NAME="DisplayPluginValueIndicators" --><a href="javascript:void(0)" name="a_ind2"
901
onclick="launchPopupValueIndicators('<!-- TMPL_VAR NAME="frameworkcode"-->', '<!-- TMPL_VAR NAME="tag" -->', '<!--
902
TMPL_VAR NAME="index" -->', '<!-- TMPL_VAR name="random" -->'<!-- TMPL_IF NAME="biblionumber" -->,<!-- TMPL_VAR
903
NAME='biblionumber'--><!-- /TMPL_IF -->)" title="Show plugin with allowed values for indicator 2 on field <!-- TMPL_VAR
904
name="tag"-->">...</a><!-- /TMPL_IF -->
808
                <!-- /TMPL_IF -->
905
                <!-- /TMPL_IF -->
809
            <!-- /TMPL_UNLESS -->
906
            <!-- /TMPL_UNLESS -->
810
907
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/marc21_indicators.tmpl (-1 / +165 lines)
Line 0 Link Here
0
- 
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
        <title>Koha &rsaquo; Cataloging &rsaquo; <!-- TMPL_IF NAME="biblionumber" -->Editing Indicators for <!-- TMPL_VAR NAME="title" escape="html" --> (Record Number <!-- TMPL_VAR name="biblionumber" -->)<!-- TMPL_ELSE -->Editing Indicators for Add MARC Record<!-- /TMPL_IF --></title>
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
    <script type="text/javascript" src='<!-- TMPL_VAR name="themelang" -->/js/indicators.js'></script>
5
6
    <script type="text/javascript">
7
        var tagfieldArr = new Array();
8
        var tagfieldloop;
9
        <!-- TMPL_LOOP name="INDICATORS_LOOP" -->
10
        tagfieldloop = '<!--TMPL_VAR Name="tagfield"-->';
11
        tagfieldArr[tagfieldloop] = new Array();
12
        tagfieldArr[tagfieldloop]["current_field_1"] = '<!--TMPL_VAR Name="current_field_1"-->';
13
        tagfieldArr[tagfieldloop]["current_field_2"] = '<!--TMPL_VAR Name="current_field_2"-->';
14
        <!--/TMPL_LOOP-->
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
                changeValueInd($("#" + id + " option:selected").val(), ind, tagfield, tagfieldArr[tagfield]["current_field_1"], tagfieldArr[tagfield]["current_field_2"]);
63
            });
64
            $(".reload_xml_opener").click(function() {
65
                if (!sendingAjax) {
66
                    sendingAjax = true;
67
                    window.opener.errorAjax = false;
68
                    send_ajax_indicators('<!--TMPL_VAR Name="frameworkcode"-->', true);
69
                    if (navigator.userAgent.toLowerCase().indexOf('msie') != -1) {
70
                        var timestamp = new Date().getTime();
71
                        $('.reloading').find("img").attr('src', '/intranet-tmpl/prog/img/loading.gif' + '?' +timestamp);
72
                    }
73
                    $('.reloading').css('display', 'block');
74
                }
75
            });
76
        });
77
    </script>
78
    </head>
79
    <body>
80
        <div id="doc3" class="yui-t2">
81
        <div id="bd">
82
        <div id="yui-main">
83
        <div class="yui-b">
84
        <h1>Cataloging  &rsaquo; <!-- TMPL_IF NAME="biblionumber" -->Editing Indicators for <em><!-- TMPL_VAR NAME="title" escape="html" --></em> (Record Number <!-- TMPL_VAR name="biblionumber" -->)<!-- TMPL_ELSE -->Indicators for Add MARC Record<!-- /TMPL_IF --></h1>
85
        <form name="f_pop" id="f_pop" action="">
86
            <ul>
87
                <!-- TMPL_LOOP name="INDICATORS_LOOP" -->
88
                <li><h2>Field <!--TMPL_VAR Name="tagfield"-->: <!--TMPL_VAR Name="desc"--></h2></li>
89
90
                <li><label for="<!--TMPL_VAR Name="tagfield"-->_ind1">User Value for Indicator 1:</label>
91
                <input type="text" name="<!--TMPL_VAR Name="tagfield"-->_ind1" id="<!--TMPL_VAR Name="tagfield"-->_ind1" value="<!--TMPL_VAR Name="current_value_1"-->" size="1" maxlength="1" class="input_ind" />
92
                <input type="button" id="<!--TMPL_VAR Name="tagfield"-->_btn_usevalue_1" title="Use this  value and close the window" class="btn_usevalue" value="Use and Close" />
93
                </li>
94
                <li><label for="<!--TMPL_VAR Name="tagfield"-->_ind2">User Value for Indicator 2: </label>
95
                <input type="text" name="<!--TMPL_VAR Name="tagfield"-->_ind2" id="<!--TMPL_VAR Name="tagfield"-->_ind2" value="<!--TMPL_VAR Name="current_value_2"-->" size="1" maxlength="1" class="input_ind" />
96
97
                <input type="button" id="<!--TMPL_VAR Name="tagfield"-->_btn_usevalue_2" title="Use this  value and close the window" class="btn_usevalue" value="Use and Close" />
98
                </li>
99
                <li><input type="button" id="<!--TMPL_VAR Name="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>
100
                <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>
101
                <!-- TMPL_IF NAME="data" -->
102
                    <li><h3 style="text-decoration: underline">Predefined values</h3></li>
103
                    <li>
104
                    <ul>
105
                        <li><label for="<!--TMPL_VAR Name="tagfield"-->_select_ind1">Indicator 1</label>
106
                            <select name="<!--TMPL_VAR Name="tagfield"-->_select_ind1" id="<!--TMPL_VAR Name="tagfield"-->_select_ind1" title="Choose an option to change the value on indicator 1 for field <!--TMPL_VAR Name="tagfield"-->" class="select_ind">
107
                                <option value="">Choose an option to change the value</option>
108
                                <!-- TMPL_LOOP name="data" -->
109
                                    <!-- TMPL_IF EXPR="ind == 1" -->
110
                                    <option value="<!--TMPL_VAR Name="ind_value"-->">&quot;<!--TMPL_VAR Name="ind_value"-->&quot;: <!--TMPL_VAR Name="ind_desc"--></option>
111
                                    <!-- /TMPL_IF -->
112
                                <!--/TMPL_LOOP-->
113
                            </select>
114
                        </li>
115
                        <li>&nbsp;</li>
116
                        <li><label for="<!--TMPL_VAR Name="tagfield"-->_select_ind2">Indicator 2</label>
117
                            <select name="<!--TMPL_VAR Name="tagfield"-->_select_ind2" id="<!--TMPL_VAR Name="tagfield"-->_select_ind2" title="Choose an option to change the value on indicator 2 for field <!--TMPL_VAR Name="tagfield"-->" class="select_ind">
118
                                <option value="">Choose an option to change the value</option>
119
                                <!-- TMPL_LOOP name="data" -->
120
                                    <!-- TMPL_IF EXPR="ind == 2" -->
121
                                    <option value="<!--TMPL_VAR Name="ind_value"-->">&quot;<!--TMPL_VAR Name="ind_value"-->&quot;: <!--TMPL_VAR Name="ind_desc"--></option>
122
                                    <!-- /TMPL_IF -->
123
                                <!--/TMPL_LOOP-->
124
                            </select>
125
                        </li>
126
                        <li>&nbsp;</li>
127
                        <li><a href="#" id="<!--TMPL_VAR Name="tagfield"-->_view_table" class="view_table">View values as a table</a></li>
128
                        <li>&nbsp;</li>
129
                        <li>
130
                        <table id="<!--TMPL_VAR Name="tagfield"-->_table_ind_values" class="table_ind_values">
131
                            <thead>
132
                                <th>Indicator</th>
133
                                <th>Description</th>
134
                                <th>Value</th>
135
                                <th>Action</th>
136
                            </thead>
137
                            <tbody>
138
                            <!-- TMPL_LOOP name="data" -->
139
                                <tr>
140
                                    <td><!--TMPL_VAR Name="ind"--></td>
141
                                    <td><!--TMPL_VAR Name="ind_desc"--></td>
142
                                    <td>&quot;<!--TMPL_VAR Name="ind_value"-->&quot;</td>
143
                                    <td><a href="javascript:void(0)" onclick="changeValueInd('<!--TMPL_VAR Name="ind_value"-->', <!--TMPL_VAR Name="ind"-->, '<!--TMPL_VAR Name="tagfield"-->', '<!--TMPL_VAR Name="current_field_1"-->', '<!--TMPL_VAR Name="current_field_2"-->');" title="Use this value <!--TMPL_VAR Name="ind_value"--> on indicator <!--TMPL_VAR Name="ind"--> for field <!--TMPL_VAR Name="tagfield"-->">Use this value</a></td>
144
                                    <input type="hidden" name="<!--TMPL_VAR Name="tagfield"-->_<!--TMPL_VAR Name="ind"-->_<!--TMPL_VAR Name="id_indicator_value"-->" id="<!--TMPL_VAR Name="tagfield"-->_<!--TMPL_VAR Name="ind"-->_<!--TMPL_VAR Name="id_indicator_value"-->" value="<!--TMPL_VAR Name="ind_value"-->" />
145
                                </tr>
146
                            <!--/TMPL_LOOP-->
147
                            </tbody>
148
                        </table>
149
                        </li>
150
                    </ul>
151
                    </li>
152
                <!-- TMPL_ELSE -->
153
                <li>
154
                There aren't predefined values for this field
155
                </li>
156
                <!-- /TMPL_IF -->
157
                <!--/TMPL_LOOP-->
158
            </ul>
159
        </form>
160
        </div>
161
        </div>
162
        </div>
163
        </div>
164
    </body>
165
</html>

Return to bug 4888