Menu

#47 Add explicit Email and Phone fields to the Docinfo

Default
open
nobody
None
5
2015-09-24
2015-09-24
No

As a followon to Feature Request #46 I propose here that the 📧 and ☎️ become standard docinfo fields and be promoted to the docinfo node when found with other docinfo attributes.

The basic idea is a document of the form:

Test
====

:author: A\. A\. Milne
:email: winny.poo@robin.com
:phone: +33/12.34.56.78

Ispo facto

Would become:

<document ids="test" names="test" source="test.rst" title="Test">
    <title>
        Test
    <docinfo>
        <author>
            A. A. Milne
        <email>
            <reference refuri="mailto:winny.poo@robin.com">
                winny.poo@robin.com
        <phone>
            <reference refuri="tel:+33/12.34.56.78">
              +33/12.34.56.78
    <paragraph>
        Ispo facto

This proposal would preserve the Contact field for general, unformatted contact information but the Email and Phone fields would also be recognized as docinfo fields and additionally the Phone field would be recognized as an implicit phone number such that a refuri can be generated from it similar to email. This would be the only time a phone number without the tel: protocol would be recognized as such.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB