Last modified: 2012-09-06 18:57:18 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 T40328, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38328 - Add the Philippines to the monuments database
Add the Philippines to the monuments database
Status: RESOLVED FIXED
Product: Wiki Loves Monuments
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: High enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 38314
  Show dependency treegraph
 
Reported: 2012-07-11 17:16 UTC by Maarten Dammers
Modified: 2012-09-06 18:57 UTC (History)
4 users (show)

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


Attachments

Description Maarten Dammers 2012-07-11 17:16:32 UTC
Not sure if it's possible.
Comment 1 Siebrand Mazeland 2012-08-22 11:36:57 UTC
Removing keyword i18n from all these issues. You don't have to tag with this relatively low volume. If you really need you, please create a component "Internationaliastion".
Comment 2 Effeietsanders 2012-08-25 15:08:03 UTC
Looks like they currently only work with category-structures. Arg! http://en.wikipedia.org/wiki/Philippine_Registry_of_Cultural_Property 

They do refer to an external website on http://www.nhcphistoricsites.blogspot.nl/ but that site says they are a work in progress.
Comment 3 Effeietsanders 2012-08-31 20:35:45 UTC
We have an excel file now, needs to be converted still. Quite easy (only 900 monuments) but first need more info.
Comment 4 Effeietsanders 2012-09-01 13:50:28 UTC
Can be imported now. See documentation on http://en.wikipedia.org/wiki/Template:Philippine_cultural_property_row/doc
Comment 5 Maarten Dammers 2012-09-01 21:54:24 UTC
I'll probably have a shot at it tomorrow (unless someone else beats me to it)
Comment 6 Effeietsanders 2012-09-03 21:38:48 UTC
Anything unclear which I can clarify?
Comment 7 Effeietsanders 2012-09-05 12:56:51 UTC
* project - wikipedia
* lang - en
* headerTemplate - Philippine cultural property header
* rowTemplate - Philippine cultural property row
* commonsTemplate - WMPH-ID
* commonsTrackerCategory - Cultural heritage monuments in the Philippines with known IDs
* commonsCategoryBase - ?
* autoGeocode - ?
* unusedImagesPage - ?
* imagesWithoutIdPage - ?
* registrantUrlBase - none
* namespaces - 0
* table - cultural_property_Philippines_(en) ?
* truncate - 10?
* primkey - ?
Comment 8 Maarten Dammers 2012-09-06 18:57:18 UTC
Done 

mysql> REPLACE INTO `monuments_all` (`country`, `lang`, `id`, `adm0`, `adm1`, `adm2`, `adm3`, `adm4`, `name`, `address`, `municipality`, `lat`, `lon`, `lat_int`, `lon_int`, `image`, `source`, `changed`, `monument_article`, `registrant_url` )
    -> SELECT 'ph' AS `country`,
    ->        'en' AS `lang`,
    ->         `cp-wmph-id` AS `id`,'ph' AS `adm0`,`region-iso` AS `adm1`,`province` AS `adm2`, /* province-iso is still empty, could be used later */`location` AS `adm3`,NULL AS `adm4`,
    ->         `site_name` AS `name`,
    -> `address` AS `address`,
    -> `location` AS `municipality`,
    -> `lat` AS `lat`,
    -> `lon` AS `lon`,
    -> ROUND(`lat` * @granularity) AS `lat_int`,
    -> ROUND(`lon` * @granularity) AS `lon_int`,
    -> `image` AS `image`,
    -> NULL AS `source`,
    -> `changed` AS `changed`,
    ->         NULL AS `monument_article`,
    ->         NULL AS `registrant_url`
    -> FROM `monuments_ph_(en)`;
Query OK, 687 rows affected, 2061 warnings (1 min 16.77 sec)
Records: 687  Duplicates: 0  Warnings: 2061

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


Navigation
Links