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

(-)a/cataloguing/addbiblio.pl (+1 lines)
Lines 997-1002 elsif ( $op eq "delete" ) { Link Here
997
997
998
$template->param( title => $record->title() ) if ( $record ne "-1" );
998
$template->param( title => $record->title() ) if ( $record ne "-1" );
999
$template->param(
999
$template->param(
1000
    marcfielddocurl => C4::Context->preference("MarcFieldDocURL"),
1000
    popup => $mode,
1001
    popup => $mode,
1001
    frameworkcode => $frameworkcode,
1002
    frameworkcode => $frameworkcode,
1002
    itemtype => $frameworkcode,
1003
    itemtype => $frameworkcode,
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 176-181 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
176
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
176
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
177
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
177
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
178
('MARCOrgCode','OSt','','Define MARC Organization Code for MARC21 records - http://www.loc.gov/marc/organizations/orgshome.html','free'),
178
('MARCOrgCode','OSt','','Define MARC Organization Code for MARC21 records - http://www.loc.gov/marc/organizations/orgshome.html','free'),
179
('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. "MARC21" or "UNIMARC". {FIELD} = field number, eg. "000" or "048". {LANG} = user language, eg. "en" or "fi-FI"', 'free'),
179
('MaxFine',NULL,'','Maximum fine a patron can have for all late returns at one moment. Single item caps are specified in the circulation rules matrix.','Integer'),
180
('MaxFine',NULL,'','Maximum fine a patron can have for all late returns at one moment. Single item caps are specified in the circulation rules matrix.','Integer'),
180
('MaxItemsForBatch','1000',NULL,'Max number of items record to process in a batch (modification or deletion)','Integer'),
181
('MaxItemsForBatch','1000',NULL,'Max number of items record to process in a batch (modification or deletion)','Integer'),
181
('maxItemsInSearchResults','20',NULL,'Specify the maximum number of items to display for each result on a page of results','free'),
182
('maxItemsInSearchResults','20',NULL,'Specify the maximum number of items to display for each result on a page of results','free'),
(-)a/installer/data/mysql/updatedatabase.pl (+10 lines)
Lines 8097-8102 if (CheckVersion($DBversion)) { Link Here
8097
    SetVersion($DBversion);
8097
    SetVersion($DBversion);
8098
}
8098
}
8099
8099
8100
$DBversion = "3.15.00.XXX";
8101
if ( CheckVersion($DBversion) ) {
8102
   $dbh->do("
8103
       INSERT INTO systempreferences (variable,value,options,explanation,type)
8104
       VALUES ('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. \"MARC21\" or \"UNIMARC\". {FIELD} = field number, eg. \"000\" or \"048\". {LANG} = user language, eg. \"en\" or \"fi-FI\"', 'free');
8105
    ");
8106
   print "Upgrade to $DBversion done (Bug 11674: Configuration for MARC field doc URLs)\n";
8107
   SetVersion ($DBversion);
8108
}
8109
8100
8110
8101
=head1 FUNCTIONS
8111
=head1 FUNCTIONS
8102
8112
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+7 lines)
Lines 120-125 Cataloging: Link Here
120
            - pref: URLLinkText
120
            - pref: URLLinkText
121
            - as the text of links embedded in MARC records.
121
            - as the text of links embedded in MARC records.
122
        -
122
        -
123
            - Use
124
            - pref: MarcFieldDocURL
125
            - as the URL for MARC field documentation.
126
            - Possible substitutions are <tt>{MARC}</tt> (marc flavour, eg. "MARC21" or "UNIMARC"), <tt>{FIELD}</tt> (field number, eg. "000" or "048"), <tt>{LANG}</tt> (user language, eg. "en" or "fi-FI").
127
            - If left empty, the format documentation on http://loc.gov (MARC21) or http://archive.ifla.org (UNIMARC) is used.
128
            - For example <tt>http://fielddoc.example.com/?marc={MARC}&field={FIELD}&language={LANG}</tt>
129
        -
123
            - pref: UseControlNumber
130
            - pref: UseControlNumber
124
              choices:
131
              choices:
125
                  yes: Use
132
                  yes: Use
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-2 / +7 lines)
Lines 135-141 function PopupZ3950() { Link Here
135
}
135
}
136
136
137
function PopupMARCFieldDoc(field) {
137
function PopupMARCFieldDoc(field) {
138
    [% IF ( marcflavour == 'MARC21' ) %]
138
    [% IF (marcfielddocurl) %]
139
       var docurl = "[% marcfielddocurl.replace('"','&quot;') %]";
140
       docurl = docurl.replace("{MARC}", "[% marcflavour %]");
141
       docurl = docurl.replace("{FIELD}", ""+field);
142
       docurl = docurl.replace("{LANG}", "[% lang %]");
143
       window.open(docurl);
144
    [% ELSIF ( marcflavour == 'MARC21' ) %]
139
        _MARC21FieldDoc(field);
145
        _MARC21FieldDoc(field);
140
    [% ELSIF ( marcflavour == 'UNIMARC' ) %]
146
    [% ELSIF ( marcflavour == 'UNIMARC' ) %]
141
        _UNIMARCFieldDoc(field);
147
        _UNIMARCFieldDoc(field);
142
- 

Return to bug 11674