I am using discovery.  Do I need to have something setup for the browse?  I
have versin 1.82 of Dspace.

Here is the diff ( from my cvs repository against the 182 )

RCS file:
/l1/dspace/cvsroot-1.5.1/dspace/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/ConfigurableBrowse.java,v
retrieving revision 1.1.1.6
diff -r1.1.1.6 ConfigurableBrowse.java
39a40
> import org.dspace.app.xmlui.wing.element.Label2;
123c124,125
<     private static final int[] RESULTS_PER_PAGE_PROGRESSION =
{5,10,20,40,60,80,100};
---
>     //private static final int[] RESULTS_PER_PAGE_PROGRESSION =
{5,10,20,40,60,80,100};
>     private static final int[] RESULTS_PER_PAGE_PROGRESSION =
{10,25,50,100};
270c272,283
<         addBrowseJumpNavigation(div, info, params);
---
>       // Only do this if you have a full list,
>
>       BrowseIndex bix = info.getBrowseIndex();
>
>       String value = "";
>       if (info.hasValue())
>         {
>       }
>       else
>       {
>            addBrowseJumpNavigation(div, info, params);
>       }
399,402c412,415
<             Select year = jumpForm.addSelect(BrowseParams.YEAR);
<             year.addOption(false, "-1", T_choose_year);
<             int currentYear = DCDate.getCurrent().getYear();
<             int i = currentYear;
---
>             //Select year = jumpForm.addSelect(BrowseParams.YEAR);
>             //year.addOption(false, "-1", T_choose_year);
>             //int currentYear = DCDate.getCurrent().getYear();
>             //int i = currentYear;
405,425c418,438
<             int oneYearBreak = ((currentYear - ONE_YEAR_LIMIT) / 5) * 5;
<             int fiveYearBreak = ((currentYear - FIVE_YEAR_LIMIT) / 10) *
10;
<             int tenYearBreak = (currentYear - TEN_YEAR_LIMIT);
<             do
<             {
<                 year.addOption(false, String.valueOf(i),
String.valueOf(i));
<
<                 if (i <= fiveYearBreak)
<                 {
<                     i -= 10;
<                 }
<                 else if (i <= oneYearBreak)
<                 {
<                     i -= 5;
<                 }
<                 else
<                 {
<                     i--;
<                 }
<             }
<             while (i > tenYearBreak);
---
>             //int oneYearBreak = ((currentYear - ONE_YEAR_LIMIT) / 5) * 5;
>             //int fiveYearBreak = ((currentYear - FIVE_YEAR_LIMIT) / 10)
* 10;
>             //int tenYearBreak = (currentYear - TEN_YEAR_LIMIT);
>             //do
>             //{
>             //    year.addOption(false, String.valueOf(i),
String.valueOf(i));
>
>             //    if (i <= fiveYearBreak)
>             //    {
>             //        i -= 10;
>             //    }
>             //    else if (i <= oneYearBreak)
>             //    {
>             //        i -= 5;
>             //    }
>             //    else
>             //    {
>             //        i--;
>             //    }
>             //}
>             //while (i > tenYearBreak);
428,429c441,446
<             jumpForm = jump.addPara();
<             jumpForm.addContent(T_jump_year);
---
>             //jumpForm = jump.addPara();
>             //jumpForm.addContent(T_jump_year);
>
//jumpForm.addText(BrowseParams.STARTS_WITH).setHelp(T_jump_year_help);
>
>
>             //jumpForm.addContent("");
431c448,449
<
---
>
>
502a521,522
>                     //controlsForm.addContent("<label for=\"sort_by\"
style=\"display:none\">Sort By:</label>");
>                     //Label2 sortLable =
controlsForm.addLabel2(BrowseParams.SORT_BY);
536a557
>         rppSelect.setOptionSelected("25");
714c735,736
<
params.scope.setStartsWith(decodeFromURL(request.getParameter(BrowseParams.STARTS_WITH)));
---
>
params.scope.setStartsWith(decodeFromURL(request.getParameter(BrowseParams.STARTS_WITH)));
>
989a1012
>     static final String STARTS_WITH_DATE = "starts_with_date";



On Thu, Nov 29, 2012 at 4:07 PM, helix84 <[email protected]> wrote:

> On Thu, Nov 29, 2012 at 9:34 PM, Jose Blanco <[email protected]> wrote:
> > Not sure I can get help on this.  I have made some changes to have the
> > number of results per page be different from the default Manakin values,
> and
> > now if I Update from one number to another, nothing changes, the same is
> > true if I change the order (asc/desc) - always goes back to the default.
> >
> > I know this is not a lot of information, but if someone could tell me
> what
> > file might make sense to take a look that would be great. I have been
> > checking ConfigurableBrowse.java and have not been able to figure it out.
> >
> > I don't see any hidden values in the page when I view the Page source.
>
> What chages did you make? Send a diff (diff -ur).
>
> What's your DSpace version? Do you have Discovery enabled?
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to