Functional Requirements
Rqmt. No. Requirement
FR-001 A visitor can browse through all paintings for sale at the gallery.
FR-002 A visitor can search for paintings by entering an artist's name in a search box. All paintings by that artist will then be displayed. If there are no paintings by that artist, the message "No paintings found" will be displayed.
FR-003 A visitor can search for paintings by selecting one of the following genres from a list: Landscape, Still Life, Portrait, Abstract. All paintings in the selected genre will then be displayed. If there are no paintings in that genre, the message "No paintings found" will be displayed.
FR-004 By default, any list of paintings when first displayed will be in alphabetical order by the author's name.
FR-005 A visitor can elect to sort any list of paintings by one of the following: artist's name; title of painting; date acquired by gallery (oldest first); date acquired by gallery (newest first).
FR-006 For each painting, the following will be displayed: a thumbnail image (approximately 100x100 pixels); title; artist; date acquired by the gallery; price; and a "Reserve It" button.
FR-007 A visitor can click on the thumbnail for a painting to display a large image (approximately 500x500 pixels).
FR-008 A visitor can click the "Reserve It" button beside any painting to place the painting on reserve for seven days. When the visitor clicks the "Reserve It" button, he or she will be required to enter his or her name and driver's license number. While the painting is on reserve, the driver's license number of the reserving party will be recorded in the gallery's inventory database record for the painting; gallery staff will require a customer to show that driver's license to purchase the painting. If the painting has not been purchased after seven days, the reserve will automatically expire.
FR-009 While a painting is on reserve by one visitor, its "Reserve It" button will be disabled so it cannot be reserved by any other visitor.
FR-010 Only one painting at a time can be reserved under a single driver's license number. If a visitor attempts to reserve an additional painting using the same driver's license number before the first reservation has expired, the message "Only one reservation at a time is allowed" will be displayed and the reservation will not be recorded.