Ticket #770 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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

Changed 8 years ago by ak19

  • milestone set to 3.05 Release

Changed 8 years ago by ak19

  • status changed from new to closed
  • resolution set to fixed

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

Changed 8 years ago by ak19

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 8 years ago by ak19

  • owner changed from nobody to ak19
  • status changed from reopened to new

Changed 8 years ago by ak19

  • status changed from new to closed
  • resolution set to fixed

Changed 8 years ago by ak19

Note: See TracTickets for help on using tickets.