arpeggio in #848740: Phone Number Drupal 7 Port:

Support for RDFA (with customizable rel value, selection of phone number subaddress type: telephone/fax's extension number (ext), ISDN subaddress (isub), fax's T33 subaddress (tsub), modem's parameters (type) and recommended parameters (rec). Ref: http://tools.ietf.org/html/rfc2806)

CommentFileSizeAuthor
#1 cck_phone rdfa.patch567.4 KBarpeggio

Comments

arpeggio’s picture

StatusFileSize
new567.4 KB

This is an upgrade patch at http://drupal.org/node/849006, supporting RDFA. Drupal 7 embrace RDF system see: http://semantic-drupal.com/about. Supporting RDFA for phone numbers follows URL format of tel scheme. Using rel attribute of anchor tag as the property and href as the object. Example:

<a rel="foaf:phone" href="tel:+6312345678;ext:989" class="value">+63 (1) 234-5678 ext. 989</a>

Phone number module for D7 supports:
- customizable rel value
- selection of phone number subaddress type: telephone/fax's extension number (ext), ISDN subaddress (isub), fax's T33 subaddress (tsub), modem's parameters (type) and recommended parameters (rec)

ckng’s picture

Title: Support for RDFA » Support for RDFa

Node to self, check out hook_rdf_mapping. Does drupal_render already help generate the needed markup?

ckng’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Needs work

Let's get the D7 patch clean up and committed before we re-roll this patch.

arpeggio’s picture

Yes, I have checked hook_rdf_mapping(). Looking at its structure a module should have a defined entity, in our case Phone number module can be used in different entities such as node, user, taxonomy term, etc.

Additionally, we offer a flexible RDFA support for our module as the rel value can be customized, to allow users use different vocabularies other than FOAF which the additional vocabulary can be defined at hook_rdf_namespaces().

scor’s picture

subscribe

daffodilsoftware’s picture

This feature is required or not. Should anything done for this or wait for new version?