Re: [Dspace-tech] Adding advanced-search to collection view in mirage
On Fri, Jun 15, 2012 at 11:03 PM, Jose Blanco wrote: > helix84, Thanks for your help with this. I'm going to show the librarian > here on Monday what we can do with discovery. But I wanted to get your > opinion of actually getting the advanced page in the collection page. I > tried to do it by starting to make some changes to the CollectionViewer.java > and I had to copy a lot of code from AdvanceSearch.java and did not quite > finish, because I'm hoping discovery will give us what we need, but it did > seem like it's not an easy thing to add the actual advance search option to > the collection page. Any thoughts on this? Oh, so you actually want the advanced search _form_ in the collection page, not just a link to the advanced search form? I think the code is in SearchFacetFilter.java, but I haven't looked at how hard it might be. Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Adding advanced-search to collection view in mirage
helix84, Thanks for your help with this. I'm going to show the librarian here on Monday what we can do with discovery. But I wanted to get your opinion of actually getting the advanced page in the collection page. I tried to do it by starting to make some changes to the CollectionViewer.java and I had to copy a lot of code from AdvanceSearch.java and did not quite finish, because I'm hoping discovery will give us what we need, but it did seem like it's not an easy thing to add the actual advance search option to the collection page. Any thoughts on this? Thanks! Jose On Thu, Jun 14, 2012 at 11:32 AM, helix84 wrote: > On Thu, Jun 14, 2012 at 5:06 PM, Jose Blanco wrote: > > Yes I did not have solr deployed. That should really be in the > > instructions. I had a hunch that's what needed to be done but not > knowing > > really how it works, kept thinking the instructions would have pointed it > > out. Thank you! It's running now. > > OK, I'll add it. > > > I have another question. When I looked at the interface it gives me a > > widget from which I could add filters. But is there a way to make it > look > > more like the advance search page. You mentioned doing this: > > > > You can restrict search by adding a scope parameter: > > /discover?scope=123456789/123 > > > > (Where do I do this?) > > It's an URL, just add it to your server name in your browser. > > > So you have 2 options: > > 1) Add a link like this > > 2) Add 2 radio buttons and a submit button > > > > (WHere do I do this? ) > > Make a link (xyz). > > Please keep dspace-tech in CC (Reply to all). > > Regards, > ~~helix84 > > > -- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > ___ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech > -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Adding advanced-search to collection view in mirage
On Wed, Jun 13, 2012 at 6:42 PM, Jose Blanco wrote: > helix84, > I followed the instructions to enable discovery: > > https://wiki.duraspace.org/display/DSPACE/Discovery+Configuration > > But when I run: > ./dspace update-discovery-index > > > I get and error, it does not seem to be able to access the solr search > engine: > > Caused by: org.apache.solr.common.SolrException: Unauthorized > > Unauthorized > > request: > http://blancoj.dev.deepblue.lib.umich.edu:8080/solr/search/select?q=search.resourcetype:2 > AND search.resourceid:1&wt=javabin&version=2 > > > WHen I go to the page via the url, I get page not found. I know I have it > set up so that the user has to auth into > blancoj.dev.deepblue.lib.umich.edu:8080, so I can see where the > unauthorized error is coming from, but why am I getting the page not found > error when I try to access the url directly. I have never used discovery > before so I may be missing something in my setup. > > -Jose Hi Jose, I really don't know what to make of SolrException: Unauthorized... I could understand Internal System Error and such, but Unauthorized? Did you configure a context for Solr in Tomcat? That is not described in those instructions, probably it should be. Here's an example: Are you running update-discovery-index it as your dspace user? Do you have a separate user for tomcat or are both owned by the same system user? Regarding accessing the /solr/ URL from your browser, by default it's configured to allow access only from localhost. I described this in detail at https://wiki.duraspace.org/display/DSPACE/Solr#Solr-ConnectingtoSolr Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Adding advanced-search to collection view in mirage
On Thu, Jun 14, 2012 at 5:06 PM, Jose Blanco wrote: > Yes I did not have solr deployed. That should really be in the > instructions. I had a hunch that's what needed to be done but not knowing > really how it works, kept thinking the instructions would have pointed it > out. Thank you! It's running now. OK, I'll add it. > I have another question. When I looked at the interface it gives me a > widget from which I could add filters. But is there a way to make it look > more like the advance search page. You mentioned doing this: > > You can restrict search by adding a scope parameter: > /discover?scope=123456789/123 > > (Where do I do this?) It's an URL, just add it to your server name in your browser. > So you have 2 options: > 1) Add a link like this > 2) Add 2 radio buttons and a submit button > > (WHere do I do this? ) Make a link (xyz). Please keep dspace-tech in CC (Reply to all). Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Adding advanced-search to collection view in mirage
On Tue, Jun 12, 2012 at 10:38 PM, helix84 wrote: > On a related note - if you notice, there already is an Advanced search > link in the sidebar. But when you choose the "This collection" radio > button and click the "Advanced search" link, it will present "All of > DSpace" in the listbox by default. I think I'll fix this by converting > the link to a submit button. Never mind this, it's a customization I made, not a part of DSpace out of the box. Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Adding advanced-search to collection view in mirage
On Tue, Jun 12, 2012 at 5:43 PM, Jose Blanco wrote: > I'm working on adding the advanced search option to the collection and > community view in Mirage. I don't see a real easy way to do this. If > anyone has done it or has a few clues, please pass them on. Hi Jose, I just tested it with Discovery turned on. It can be done. You can restrict search by adding a scope parameter: /discover?scope=123456789/123 So you have 2 options: 1) Add a link like this 2) Add 2 radio buttons and a submit button The first option will force users to do advanced search only within the current container. They'll still be able to use the sidebar link for site-wide search. The second option gives them choice of search scope. On a related note - if you notice, there already is an Advanced search link in the sidebar. But when you choose the "This collection" radio button and click the "Advanced search" link, it will present "All of DSpace" in the listbox by default. I think I'll fix this by converting the link to a submit button. Regards, ~~helix84 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech