Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following are variables that will need to be passed into the Browse engine in order for appropriate results to be returned: *

  • type: the type of browse being undertaken. This will be used to identify the Browse Index from the config

...

  • sortBy: which of the available sort options in config is to be sorted by

...

  • order: which way to interpret the sortBy. ASC or DESC

...

  • value: a specific value to browse upon. For example "Jones, Richard" to view all items where I am the author (in conjunction with type=author, of course)

...

  • resultsperpage: number of results to display on the page at any one time

...

  • community: the community we are browsing in

...

  • collection: the collection we are browsing in

...

  • next: the id of the item to be at the top of the "next" page

...

  • prev: the id of the item to be at the top of the "previous" page

...

  • focus: the target point in the listing to point the browse. This will be utilised by the paging system

...

  • year: the year to use as a focus in date browse

...

  • month: the month to use as a focus in date browse

...

  • startsWith: the characters to use for a stem search. Will be used with the focus

...

  • vfocus: the string to form the focus for single browse contexts added 29-11-2006

NOTE: "next" and "prev" are not clearly defined as to what the best way to obtain them is, and exactly what their relationship to "focus" is. It may be that "next" and "prev" are only used in the Servlet/UI layer to represent the "focus" for the next and previous functionality.

...

Ongoing programmers notes

...

  • Here's an oddity which rings a bell from the last time I looked at the Browse code. It seems that the result of a SELECT COUNT(star) query, despite being a number can't be retrieved using the TableRow.getIntColumn() method. I'm trying TableRow.getStringColumn and Integer.parseInt, but I have a horrible feeling that won't work either.
    • Nope, as anticipated:
Code Block
    Exception:
    java.lang.IllegalArgumentException: Value for number is not an integer
        at org.dspace.storage.rdbms.TableRow.getIntColumn(TableRow.java:162)

...