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

(-)a/C4/Search.pm (+1 lines)
Lines 1710-1715 sub searchResults { Link Here
1710
1710
1711
        # Pull out the items fields
1711
        # Pull out the items fields
1712
        my @fields = $marcrecord->field($itemtag);
1712
        my @fields = $marcrecord->field($itemtag);
1713
        $marcrecord->delete_fields( @fields ) unless C4::Context->preference('PassItemMarcToXSLT');
1713
        my $marcflavor = C4::Context->preference("marcflavour");
1714
        my $marcflavor = C4::Context->preference("marcflavour");
1714
1715
1715
        # adding linked items that belong to host records
1716
        # adding linked items that belong to host records
(-)a/installer/data/mysql/atomicupdate/bug28373_add_PassItemMarcToXSLT_preference.perl (+9 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( q{
4
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
5
        ('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo');
6
    });
7
8
    NewVersion( $DBversion, 28373, "Add PassItemMarcToXSLT system preference");
9
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 507-512 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
507
('OverdueNoticeCalendar',0,NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
507
('OverdueNoticeCalendar',0,NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
508
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
508
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
509
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
509
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
510
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo'),
510
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
511
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
511
('PatronAutoComplete','1','Try|Don\'t try','to guess the patron being entered while typing a patron search for circulation or patron search. Only returns the first 10 results at a time.','YesNo'),
512
('PatronAutoComplete','1','Try|Don\'t try','to guess the patron being entered while typing a patron search for circulation or patron search. Only returns the first 10 results at a time.','YesNo'),
512
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
513
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +7 lines)
Lines 273-278 Searching: Link Here
273
                  1: "Display"
273
                  1: "Display"
274
                  0: "Don't display"
274
                  0: "Don't display"
275
            - ' Koha record level itemtype info on detail and result pages in the OPAC and staff interface. This info also displays if the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=item-level_itypes">item-level_itypes</a> system preference is set to bibliographic record.'
275
            - ' Koha record level itemtype info on detail and result pages in the OPAC and staff interface. This info also displays if the <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=item-level_itypes">item-level_itypes</a> system preference is set to bibliographic record.'
276
        -
277
            - pref: PassItemMarcToXSLT
278
              type: boolean
279
              choices:
280
                  1: Do
281
                  0: "Don't"
282
            - "make item MARC tags available to XSLT stylesheets. Default is \"Don't\", items are disaplyed using other methods"
276
    Did you mean/spell checking:
283
    Did you mean/spell checking:
277
        -
284
        -
278
            - "Swedish service for spellchecking.<br/>"
285
            - "Swedish service for spellchecking.<br/>"
279
- 

Return to bug 28373