Changes

Jump to navigation Jump to search
1,640 bytes added ,  13:51, 29 September 2020
no edit summary
php importImages.php /bulk/astarte/images --search-recursively
chown -R www-data:root /var/lib/mediawiki/images/
 
==Fixes==
 
Some of the old content, such as (~250) the article writeups, needed new templates. I added blank templates using [[Special:MassEditRegex]] and then populated them using the getText.php and edit.php maintenance scripts[https://www.mediawiki.org/wiki/Manual:Edit.php]. For instance, I generated the following to edit the author field, building the commands on the fly:
...
php getText.php "Winter (2003) - Understanding Dynamic Capabilities" | sed -e 's/|Has author=/|Has author=Winter/' | php edit.php "Winter (2003) - Understanding Dynamic Capabilities"
php getText.php "Ziedonis (2004) - Dont Fence Me In" | sed -e 's/|Has author=/|Has author=Ziedonis/' | php edit.php "Ziedonis (2004) - Dont Fence Me In"
 
Many of the article pages have a file(s) section, with links to files stored on the wiki. For example:
<nowiki>==File(s)==
*[[Media:EPO (2012) - Workshop on Patent Thickets.pdf|Download the PDF]]
*[[:Image:EPO (2012) - Workshop on Patent Thickets.pdf|Repository record]]</nowiki>
 
I could upload the files from the repository into the wiki using importImages.php, setting some SemanticACL in the summary field (I tested this, it seems to work just fine):
<nowiki>Access restricted to: [[Visible to::users]]</nowiki>
importImages.php /var/www/html/pdfs --summary="Loaded from local repository. Access restricted to: [[Visible to::users]]."
 
However, these do not seem to the files that are missing! On further inspection, it seems that the pdfs were never present. Those in the old images directory have been imported just fine. See, for example: [[Evans LayneFarrar (2004) - Software Patents And Open Source]].

Navigation menu