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

(-)a/C4/Search.pm (+1 lines)
Lines 1771-1776 sub searchResults { Link Here
1771
1771
1772
        # Pull out the items fields
1772
        # Pull out the items fields
1773
        my @fields = $marcrecord->field($itemtag);
1773
        my @fields = $marcrecord->field($itemtag);
1774
        $marcrecord->delete_fields( @fields ) unless C4::Context->preference('PassItemMarcToXSLT');
1774
        my $marcflavor = C4::Context->preference("marcflavour");
1775
        my $marcflavor = C4::Context->preference("marcflavour");
1775
1776
1776
        # adding linked items that belong to host records
1777
        # 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 506-511 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
506
('OverdueNoticeCalendar',0,NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
506
('OverdueNoticeCalendar',0,NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
507
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
507
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
508
('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'),
508
('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
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo'),
509
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
510
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
510
('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'),
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'),
511
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
512
('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