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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 364-366 INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( Link Here
364
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
364
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OpacStarRatings','all',NULL,'disable|all|details','Choice');
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,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 5284-5289 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5284
    SetVersion($DBversion);
5284
    SetVersion($DBversion);
5285
}
5285
}
5286
5286
5287
$DBversion = "XXX";
5288
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5289
    $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')");
5290
    print "Upgrade to $DBversion done (Add the 'OpacShowTagCloudWeight' system preference)\n";
5291
    SetVersion($DBversion);
5292
}
5293
5294
5287
=head1 FUNCTIONS
5295
=head1 FUNCTIONS
5288
5296
5289
=head2 TableExists($table)
5297
=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 234-241 if ($loggedinuser) { Link Here
234
	}
234
	}
235
}
235
}
236
236
237
$template->param(tagsview => 1,
237
$template->param(
238
dateformat => C4::Context->preference("dateformat"));
238
    tagsview   => 1,
239
    dateformat => C4::Context->preference("dateformat"),
240
    showweight => C4::Context->preference("OpacShowTagCloudWeight")
241
);
239
242
240
if ($add_op) {
243
if ($add_op) {
241
	my $adds = 0;
244
	my $adds = 0;
242
- 

Return to bug 7642