Add Copyright Info to PDF Books

30 views
Skip to first unread message

Ross

unread,
Nov 10, 2009, 10:54:27 AM11/10/09
to mwlib
Hi there,

I am using the Collection Extension for my MediaWiki 1.15.1 to
download PDFs or create books in PDF.

I really want to add my copyright info to the PDFs, but I can't find
any way to do it.
Do I need to do something with LocalSettings.php, or to create some
kind of template?

Thanks in advance.
Ross

Johannes Beigel

unread,
Nov 10, 2009, 10:57:50 AM11/10/09
to mw...@googlegroups.com
On 10.11.2009, at 16:54, Ross wrote:
> I really want to add my copyright info to the PDFs, but I can't find
> any way to do it.

From the README.txt of the Collection extension:

*$wgCollectionLicenseURL (string or null)*
HTTP URL of an article containing the full license text in wikitext format
for articles in this MediaWiki. E.g.

$wgCollectionLicenseURL = 'http://en.wikipedia.org/w/index.php?title=Wikipedia:Text_of_the_GNU_Free_Documentation_License&action=raw';

for the GFDL.
If set to null, the standard MediaWiki variables $wgRightsPage,
$wgRightsUrl and $wgRightsText are used for license information.

If your MediaWiki contains articles with different licenses, make sure
that each article contains the name of the license and set $wgCollectionLicenseURL
to an article that contains all needed licenses.

-- Johannes

Ross

unread,
Nov 10, 2009, 12:08:24 PM11/10/09
to mwlib
> From the README.txt of the Collection extension:
>
> *$wgCollectionLicenseURL (string or null)*
>    HTTP URL of an article containing the full license text in wikitext format
>    for articles in this MediaWiki. E.g.
>
>        $wgCollectionLicenseURL = 'http://en.wikipedia.org/w/index.php?title=Wikipedia:Text_of_the_GNU_F...
>
>    for the GFDL.
>    If set to null, the standard MediaWiki variables $wgRightsPage,
>    $wgRightsUrl and $wgRightsText are used for license information.
>
>    If your MediaWiki contains articles with different licenses, make sure
>    that each article contains the name of the license and set $wgCollectionLicenseURL
>    to an article that contains all needed licenses.
>
> -- Johannes

Thanks Johannes, but it doesn't work for me.
I have a wiki page called Copyright_notice which contains all my
copyright information. So, I added the line below to
LocalSettings.php:
$wgCollectionLicenseURL = 'http://myhostdotcom/kiwi/index.php?
title=Copyright_notice&action=raw';

So, I am expecting the copyright info would be added to the last page
(or the first page) of the downloaded PDF book, but I can't see it at
all.
Is it because that I am using the public render server?
Or, do I need to add more global variables (e.g. $wgRightsPage,
$wgRightsUrl and $wgRightsText) to the LocalSettings.php file? If yes,
what values should they be?
Or, do I need to mark each wiki page somewhere which is licensed?
Or, do I need to recofigure the entire MediaWiki site for some kind of
license method?

Thanks again,
Ross

Johannes Beigel

unread,
Nov 11, 2009, 9:10:01 AM11/11/09
to mw...@googlegroups.com
On 10.11.2009, at 18:08, Ross wrote:
> Thanks Johannes, but it doesn't work for me.
> I have a wiki page called Copyright_notice which contains all my
> copyright information. So, I added the line below to
> LocalSettings.php:
> $wgCollectionLicenseURL = 'http://myhostdotcom/kiwi/index.php?
> title=Copyright_notice&action=raw’;

This is strange: It works for me here.

Do you use a current version of the Collection extension?

If you enter the above URL in your browser, do you get the wikitext back?

Does anyone else have this problem and can give hints?

> So, I am expecting the copyright info would be added to the last page
> (or the first page) of the downloaded PDF book, but I can't see it at
> all.

Yes, the license should be at the end of the PDF.

> Is it because that I am using the public render server?

No, as long as your wiki is accessible from the render server (and it must be if you get PDFs back), this should make no difference.

> Or, do I need to add more global variables (e.g. $wgRightsPage,
> $wgRightsUrl and $wgRightsText) to the LocalSettings.php file? If yes,
> what values should they be?

No, setting $wgCollectionLicenseURL should be sufficient.

> Or, do I need to mark each wiki page somewhere which is licensed?

No. This is only needed if you use different licenses for different articles.

> Or, do I need to recofigure the entire MediaWiki site for some kind of
> license method?

No. Shouldn’t be needed.

-- Johannes

Ross

unread,
Nov 20, 2009, 11:41:03 AM11/20/09
to mwlib
On Nov 11, 9:10 am, Johannes Beigel <johannes.bei...@brainbot.com>
wrote:
> This is strange: It works for me here.
>
> Do you use a current version of the Collection extension?
>
> If you enter the above URL in your browser, do you get the wikitext back?
>
> Does anyone else have this problem and can give hints?
>
> No, setting $wgCollectionLicenseURL should be sufficient.
>

Hi Johannes,
I have tried to re-install the MW and the Collection extension with
newest versions, but it still doesn't work.

If I enter the URL in my browser, I can get the wikitext back without
any problem.

In addition, I have also tried URLs below:
http://myhostdotcom/kiwi/index.php/Copyright_notice&action=raw #
(default URL)
and
http://myhostdotcom/kiwi/Copyright_notice&action=raw # (Short URL,
or Pretty URL. I have changed my MW to make use of Short URL after re-
installation).

None of them works.

Any more idea is appreciated.
Ross

Ross

unread,
Dec 3, 2009, 9:48:20 AM12/3/09
to mwlib
Good news. It works now!

It doesn't work when anonymous users have no "read" permission.
For sure, I have set $wgCollectionMWServeCredentials for username and
password. Otherwise, the PDF book won't be created at all.
I don't why I still have to give anonymous users "read" permissoin to
get it work.

Cheers,
Ross Xu

Johannes Beigel

unread,
Dec 4, 2009, 9:36:25 AM12/4/09
to mw...@googlegroups.com
On 03.12.2009, at 15:48, Ross wrote:
> Good news. It works now!

Cool, good to hear!

> It doesn't work when anonymous users have no "read" permission.
> For sure, I have set $wgCollectionMWServeCredentials for username and
> password. Otherwise, the PDF book won't be created at all.
> I don't why I still have to give anonymous users "read" permissoin to
> get it work.

I would call this a bug. I’ve created a ticket:

http://code.pediapress.com/wiki/ticket/747

Thanks a lot for investigating on this issue!

Regards,
Johannes Beigel

Reply all
Reply to author
Forward
0 new messages