Last modified: 2013-06-18 16:58:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 25542 - Export: add namespace to page
Export: add namespace to page
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-16 20:11 UTC by Umherirrender
Modified: 2013-06-18 16:58 UTC (History)
1 user (show)

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


Attachments
add ns to title-tag (699 bytes, patch)
2010-10-17 14:19 UTC, Umherirrender
Details

Description Umherirrender 2010-10-16 20:11:01 UTC
Please add the namespace of a page when export.

It is very hard to determine the namespace of a title. It is better when MediaWiki can give the right number inside the export/dump.

function openPage in Export.php has the full row of page_table, so the namespace information is there. Please add the information to the output.

Thanks.
Comment 1 Umherirrender 2010-10-17 14:19:06 UTC
Created attachment 7740 [details]
add ns to title-tag

The attached patch add a "ns" attribute to the title tag.
Comment 2 Brion Vibber 2011-02-14 00:16:12 UTC
The dump preamble includes the full list of content namespace prefixes in the <siteinfo> section, which makes it a pretty straightforward string comparison. Adding a namespace attribute on the <page>'s <title> wouldn't hurt terribly, but would be redundant and could cause confusion if xml dump files are edited in some way such that the namespaces no longer match.

Would require update to the .xsd schema file as well.

May require updates to other dump processing infrastructure to maintain it through bulk data dumps, otherwise it's not of much use.
Comment 3 Umherirrender 2011-06-19 16:16:24 UTC
(In reply to comment #2)
> The dump preamble includes the full list of content namespace prefixes in the
> <siteinfo> section, which makes it a pretty straightforward string comparison.
> Adding a namespace attribute on the <page>'s <title> wouldn't hurt terribly,
> but would be redundant and could cause confusion if xml dump files are edited
> in some way such that the namespaces no longer match.
> Would require update to the .xsd schema file as well.
> May require updates to other dump processing infrastructure to maintain it
> through bulk data dumps, otherwise it's not of much use.

String comparison can be expensive (depends on language) and you have also to check with a colon after the namespace to avoid false namespace (a page named "Template Test" is not a template).

If you find, that this is redundant and each dump user can find the namespace himself, than WONTFIX this, it is only a idea for easy work with the dump.
Comment 4 Umherirrender 2011-11-18 10:32:49 UTC
fixed with r102575

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


Navigation
Links