Add a website contact

Description

Almost all organisations now have websites. We should be able to record this information for supplier organisations, vets, customers, practices and practice locations

Environment

None

Attachments

1

Activity

Show:

Tim Anderson March 16, 2016 at 12:52 PM
Edited

(Note - its not enough to add the method to PartyRules - to expose it to jxpath, it needs to be added to PartyFunctions).

Changes applied in revision 6960.

A contact.website contact may now be added to:

  • party.customerperson

  • party.organisationLocation

  • party.organisationPractice

  • party.supplierManufacturer

  • party.supplierorganisation

  • party.supplierperson

  • party.supplierVeterinarian

  • party.supplierVeterinarianPractice

The website may be accessed in reports using:

E.g.

When viewing:

  • website contacts clicking the URL will open a new browser window..

  • any contact, the purposes node is now suppressed if it contains no purpose lookups.

Tim Gething March 15, 2016 at 7:40 PM

Need to add to party.customerperson, party.organisationLocation, party.organisationPractice, party.supplierManufacturer, party.supplierorganisation, party.supplierVeterinarian, and party.supplierVeterinaryPractice

Need to add to PartyRules.java

/**

  • Returns a website URL for a party.
    *

  • @param party the party

  • @return a website URL for a party. May be empty if

  • there is no corresponding <em>contact.website</em> contact

  • @throws ArchetypeServiceException for any archetype service error
    */
    public String getEmailAddress(Party party) {
    Contact contact = getContact(party, ContactArchetypes.WEBSITE, null);
    if (contact != null) {
    IMObjectBean bean = new IMObjectBean(contact, service);
    return bean.getString("website");
    }
    return "";
    }

and if we are good, add a test to PartRulesTestCase.java

Documentation: enhance http://www.openvpms.org/documentation/csh/1.9/concepts/contacts

Fixed

Details

Assignee

Reporter

Time tracking

2h logged

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created March 15, 2016 at 7:21 PM
Updated November 6, 2016 at 10:54 PM
Resolved March 16, 2016 at 12:52 PM
Who's Looking?