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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 369-371 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
369
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo');
369
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo');
370
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo');
370
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo');
371
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free');
371
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free');
372
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 5370-5375 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5370
}
5370
}
5371
5371
5372
5372
5373
$DBversion = "3.09.00.XXX";
5374
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5375
    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('OPACShowUnusedAuthorities','1','','Show authorities that are not being used in the OPAC.','YesNo')");
5376
    print "Upgrade to $DBversion done (Add OPACShowUnusedAuthorities system preference)\n";
5377
    SetVersion ($DBversion);
5378
}
5379
5373
=head1 FUNCTIONS
5380
=head1 FUNCTIONS
5374
5381
5375
=head2 TableExists($table)
5382
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 79-84 OPAC: Link Here
79
                  no: "Don't include"
79
                  no: "Don't include"
80
            - "COinS / OpenURL / Z39.88 in OPAC search results.  <br/>Warning: Enabling this feature will slow OPAC search response times."
80
            - "COinS / OpenURL / Z39.88 in OPAC search results.  <br/>Warning: Enabling this feature will slow OPAC search response times."
81
        -
81
        -
82
            - pref: OPACShowUnusedAuthorities
83
              choices:
84
                  yes: Show
85
                  no: "Do not show"
86
            - unused authorities in the OPAC authority browser.
87
        -
82
            - pref: OPACShowHoldQueueDetails
88
            - pref: OPACShowHoldQueueDetails
83
              choices:
89
              choices:
84
                  none: "Don't show any hold details"
90
                  none: "Don't show any hold details"
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt (-1 / +5 lines)
Lines 29-35 Link Here
29
		</div>
29
		</div>
30
		<div id="results">
30
		<div id="results">
31
			[% IF ( total ) %]
31
			[% IF ( total ) %]
32
			<b>Results [% from %] to [% to %] of [% total %]</b>
32
                [% IF ( countfuzzy ) %]
33
                    <b>Showing [% resultcount %] of about [% total %] results</b>
34
                [% ELSE %]
35
                    <b>Results [% from %] to [% to %] of [% total %]</b>
36
                [% END %]
33
			[% ELSE %]
37
			[% ELSE %]
34
			No results found.
38
			No results found.
35
			[% END %]
39
			[% END %]
(-)a/opac/opac-authorities-home.pl (-1 / +6 lines)
Lines 127-132 if ( $op eq "do_search" ) { Link Here
127
    else {
127
    else {
128
        $to = ( ( $startfrom + 1 ) * $resultsperpage );
128
        $to = ( ( $startfrom + 1 ) * $resultsperpage );
129
    }
129
    }
130
    unless (C4::Context->preference('OPACShowUnusedAuthorities')) {
131
        my @usedauths = grep { $_->{used} > 0 } @$results;
132
        $results = \@usedauths;
133
    }
130
    $template->param( result => $results ) if $results;
134
    $template->param( result => $results ) if $results;
131
    $template->param( FIELDS => \@fields );
135
    $template->param( FIELDS => \@fields );
132
    $template->param( orderby => $orderby );
136
    $template->param( orderby => $orderby );
Lines 138-146 if ( $op eq "do_search" ) { Link Here
138
        startfromnext  => $startfrom + 1,
142
        startfromnext  => $startfrom + 1,
139
        startfromprev  => $startfrom - 1,
143
        startfromprev  => $startfrom - 1,
140
        searchdata     => \@field_data,
144
        searchdata     => \@field_data,
145
        countfuzzy     => !(C4::Context->preference('OPACShowUnusedAuthorities')),
141
        total          => $total,
146
        total          => $total,
142
        from           => $from,
147
        from           => $from,
143
        to             => $to,
148
        to             => $to,
149
        resultcount    => scalar @$results,
144
        numbers        => \@numbers,
150
        numbers        => \@numbers,
145
        authtypecode   => $authtypecode,
151
        authtypecode   => $authtypecode,
146
        authtypetext   => $authtypes->{$authtypecode}{'authtypetext'},
152
        authtypetext   => $authtypes->{$authtypecode}{'authtypetext'},
147
- 

Return to bug 8205