Collections: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{highlight| | {{highlight| | ||
text = The Collections extension has been in flux with the evolving situation with PDF handling in MediaWiki. The information here is retained for reference purposes. This notice will be removed and the information updated once a new Collection extension is available. | text = The Collections extension has been in flux with the evolving situation with PDF handling in MediaWiki. The information here is retained for reference purposes. This notice will be removed and the information updated once a new Collection extension is available. | ||
<br><br> | |||
The situation is not resolved as far as backend services, but as of 2025-03-27 there is a [https://gerrit.wikimedia.org/g/mediawiki/extensions/Collection.git/+/774fa83934791a23f6236cb65a26fc843ed86c0f commit] pending that at least makes some improvement: a new API module will give user feedback about the rendering of the collection. See Gerrit review to see where the patch lands... it started in [https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Collection/+/1131358 REL1_39], and looks like it's [https://gerrit.wikimedia.org/r/q/I37a0b1f46aba608f2d115ea244ad9738b6e7dc3f pending code review in master and REL1_43]. | |||
}} | }} | ||
| Line 22: | Line 24: | ||
== Installation == | == Installation == | ||
To get the MediaWiki Document server going locally, follow the guide on pediapress.com | To get the MediaWiki Document server going locally, follow the guide on pediapress.com | ||
< | <syntaxhighlight lang="bash"> | ||
cd | cd | ||
mkdir -p $HOME/lib/python2.7 | mkdir -p $HOME/lib/python2.7 | ||
| Line 51: | Line 53: | ||
make -f Makefile.Redhat > make.log 2>&1 | make -f Makefile.Redhat > make.log 2>&1 | ||
cp pdftk ~/bin/ | cp pdftk ~/bin/ | ||
</ | </syntaxhighlight> | ||
<pre> | <pre> | ||
Successfully installed mwlib pyparsing timelib bottle pyPdf apipkg qserve lxml py sqlite3dbm simplejson roman gevent odfpy Pillow greenlet | Successfully installed mwlib pyparsing timelib bottle pyPdf apipkg qserve lxml py sqlite3dbm simplejson roman gevent odfpy Pillow greenlet | ||
| Line 62: | Line 64: | ||
I needed to create a script similar to the following so that the service would be available after system restarts | I needed to create a script similar to the following so that the service would be available after system restarts | ||
(from http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/mw-serve/mw-serve.sh) | (from http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/mw-serve/mw-serve.sh) | ||
< | <syntaxhighlight lang="bash"> | ||
#! /bin/sh | #! /bin/sh | ||
# run this service automatically in run-levels 3 or 5 | # run this service automatically in run-levels 3 or 5 | ||
| Line 123: | Line 125: | ||
exit 0 | exit 0 | ||
</ | </syntaxhighlight> | ||