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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 365-367 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( Link Here
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
365
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo');
366
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
366
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer');
367
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice');
367
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice');
368
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowTagCloudWeight','1','Whether to show the weight of a tag when you hover over its name in the tag cloud',NULL,'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 5308-5313 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
5308
    SetVersion ($DBversion);
5308
    SetVersion ($DBversion);
5309
}
5309
}
5310
5310
5311
$DBversion = "3.09.00.XXX";
5312
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5313
    $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowTagCloudWeight','1','Whether to show the weight of a tag when you hover over its name in the tag cloud',NULL,'YesNo')");
5314
    print "Upgrade to $DBversion done (Add the 'OpacShowTagCloudWeight' system preference)\n";
5315
    SetVersion($DBversion);
5316
}
5317
5318
5311
=head1 FUNCTIONS
5319
=head1 FUNCTIONS
5312
5320
5313
=head2 TableExists($table)
5321
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 223-228 OPAC: Link Here
223
            - '<br />Note: Available options are: BIBTEX (<code>bibtex</code>), Dublin Core (<code>dc</code>),'
223
            - '<br />Note: Available options are: BIBTEX (<code>bibtex</code>), Dublin Core (<code>dc</code>),'
224
            - 'MARCXML (<code>marcxml</code>), MARC-8 encoded MARC (<code>marc8</code>), Unicode/UTF-8 encoded MARC (<code>utf8</code>),'
224
            - 'MARCXML (<code>marcxml</code>), MARC-8 encoded MARC (<code>marc8</code>), Unicode/UTF-8 encoded MARC (<code>utf8</code>),'
225
            - 'Unicode/UTF-8 encoded MARC without local use -9xx, x9x, xx9- fields and subfields (<code>marcstd</code>), MODS (<code>mods</code>), RIS (<code>ris</code>)'
225
            - 'Unicode/UTF-8 encoded MARC without local use -9xx, x9x, xx9- fields and subfields (<code>marcstd</code>), MODS (<code>mods</code>), RIS (<code>ris</code>)'
226
        -
227
            - pref: OpacShowTagCloudWeight
228
              choices:
229
                  yes: Show
230
                  no: "Don't show"
231
            - 'the numerical weight of a tag when you hover over its name in the tag cloud.'
226
    Features:
232
    Features:
227
        -
233
        -
228
            - pref: opacuserlogin
234
            - pref: opacuserlogin
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt (-1 / +6 lines)
Lines 90-96 Link Here
90
	[% IF ( TAGLOOP ) %]
90
	[% IF ( TAGLOOP ) %]
91
	<div id="tagcloud">
91
	<div id="tagcloud">
92
	[% FOREACH TAGLOO IN TAGLOOP %]
92
	[% FOREACH TAGLOO IN TAGLOOP %]
93
	<span class="tag" id="tag[% loop.count %]" title="[% TAGLOO.cloudweight %]">
93
	    [% IF (showweight) %]
94
                <span class="tag" id="tag[% loop.count %]" title="[% TAGLOO.cloudweight %]">
95
	    [% ELSE %]
96
                <span class="tag" id="tag[% loop.count %]" >
97
	    [% END %]
98
94
		<a href="/cgi-bin/koha/opac-search.pl?tag=[% TAGLOO.term |url %]&amp;q=[% TAGLOO.term |url %]">
99
		<a href="/cgi-bin/koha/opac-search.pl?tag=[% TAGLOO.term |url %]&amp;q=[% TAGLOO.term |url %]">
95
		[% TAGLOO.term |html %]</a>
100
		[% TAGLOO.term |html %]</a>
96
			<span class="tagweight">[% TAGLOO.weight_total %]</span>
101
			<span class="tagweight">[% TAGLOO.weight_total %]</span>
(-)a/opac/opac-tags.pl (-3 / +5 lines)
Lines 236-243 if ($loggedinuser) { Link Here
236
	}
236
	}
237
}
237
}
238
238
239
$template->param(tagsview => 1,
239
$template->param(
240
dateformat => C4::Context->preference("dateformat"));
240
    tagsview   => 1,
241
    dateformat => C4::Context->preference("dateformat"),
242
    showweight => C4::Context->preference("OpacShowTagCloudWeight")
243
);
241
244
242
if ($add_op) {
245
if ($add_op) {
243
	my $adds = 0;
246
	my $adds = 0;
244
- 

Return to bug 7642