Last modified: 2008-11-10 16:35:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17982, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15982 - Styles ignored during printout
Styles ignored during printout
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Linux
: High major (vote)
: ---
Assigned To: Markus Krötzsch
http://sandbox.semantic-mediawiki.org...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-14 13:17 UTC by Roland Pons
Modified: 2008-11-10 16:35 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roland Pons 2008-10-14 13:17:20 UTC
If you try to print out the given page

http://sandbox.semantic-mediawiki.org/index.php?title=Property:Birthday

you will get some random numbers in front of the dates. The error alredy shows in the printing preview, but not in the printable version page.

Analysing the page source showed, that the random numbers come from the column sorting algorithm: "class="smwsortkey">-2147475600</span>14 December 1901". The smwsortkey class is defined in SMW_custom.css. But it seems, that it is not used for printing.

Workaround: on the server edit the file "mediawiki/skins/common/commonPrint.css" and add the following code:

/*hide keys for sorting table entries*/
span.smwsortkey{
      display: none;
}

This works for me but obviously there should be implemented a cleaner solution.

The bug has been reproduced on Internet Explorer 7.0, Firefoy 3.0.1 and Epiphany 2.14.3.

Regards

Roland Pons
.
Comment 1 Markus Krötzsch 2008-10-15 07:55:44 UTC
The numbers you see are sorting keys for ordering the table rows properly. They are normally hidden with a suitable style. Apparently, while the "printable version" shows the styles, the actual printout uses different styles (this can be observed for all styling SMW adds, but it is not as problematic in many cases).

The problem occurs since we specify our styles only for media "screen" and "projection", but not for print. This will be rectified in the next version.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links