Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#770 closed defect (fixed)

GS3: multiple titles assigned, first title repeats in browsing classifier

Reported by: ak19 Owned by: ak19
Priority: moderate Milestone: 3.05 Release
Component: Greenstone3 Runtime Severity: major
Keywords: Cc:

Description

When multiple titles are assigned to a doc, the titles browsing classifier wrongly shows up only the first title even though the document is correctly listed multiple times (once for each assigned title).

mdoffset and mdtype are not used.

Change History (6)

comment:1 by ak19, 13 years ago

Milestone: 3.05 Release

comment:2 by ak19, 13 years ago

Resolution: fixed
Status: newclosed

This was previously not implemented: Greenstone 3 did not consult the mdtype and mdoffset fields to work out which value is to be displayed for a metadata that had multiple values.

This problem is now fixed. Changeset 24254 is the revision with the commited changes for this fix.

Note that the changes required that the "multiple" attribute of a gsf:metadata no longer is a boolean field (no longer takes merely true or false) but also takes the value "offset" now.

Although consulting the "mdtype" field in the GS database does not appear necessary in the GS3 case (the user should know to specify multiple=offset for a metadata that contains multiple values and for which they want the value shown that is associated with its index in the Greenstone database's mdoffset field), the GS3 code now does consult the mdoffset field.

An example of its use:

<gsf:choose-metadata>

<gsf:metadata name="dc.Title" select="current" multiple="offset" />

<gsf:metadata name="Title"/>

<gsf:default>Untitled

</gsf:default>

</gsf:choose-metadata>

Commit message: Commits for ticket 770 concerning the display of multiple values for a metadata (like dc.Title) when classified by that metadata. So when the user browses by dc.Title, they no longer merely see a doc listed once for each dc.Title assigned but under the same (first retrieved) dc.Title, but they should now see the doc listed once for each dc.Title assigned to it with a different dc.Title value each time.

Committed files: web/interfaces/default/transform/config_format.xsl

src/java/org/greenstone/gsdl3/action/Action.java

src/java/org/greenstone/gsdl3/action/GS2BrowseAction.java

src/java/org/greenstone/gsdl3/service/AbstractBrowse.java

src/java/org/greenstone/gsdl3/service/AbstractDocumentRetrieve.java

src/java/org/greenstone/gsdl3/service/AbstractGS2DocumentRetrieve.java

src/java/org/greenstone/gsdl3/service/GS2Browse.java

src/java/org/greenstone/gsdl3/util/DBInfo.java

src/java/org/greenstone/gsdl3/util/GSXML.java

comment:3 by ak19, 13 years ago

Resolution: fixed
Status: closedreopened

comment:4 by ak19, 13 years ago

Owner: changed from nobody to ak19
Status: reopenednew

comment:5 by ak19, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.