From: Allen P. <al...@cl...> - 2013-05-24 19:21:40
|
Hi Demian web/index.php file the code I added start on line 116 and is as follows. $interface->assign('locationList', $configArray['Locations']); // setting up chosen library display name alpat 08/15/2012 if (isset($_POST['mylocn'])) { $location = $_POST['mylocn']; if ($location == 'All') { setcookie('location', "", 1, '/'); unset($_COOKIE['location']); } else { setcookie('location', $location, null, '/'); $_COOKIE['location'] = $location; } error_log(__FILE__ . __LINE__ . ' found cookie',0); } else { // error_log(__FILE__ . __LINE__ . ' found no cookie is that ok?',0); } $interface->assign('userLocn', isset($_COOKIE['location']) ? $_COOKIE['location'] : ''); On Fri, May 24, 2013 at 12:08 PM, Demian Katz [via vufind] < ml-...@n4...> wrote: > That's an unusual bug. I see that the cookie value is changing after the > search is performed -- in one example, my location cookie was 007 until I > clicked on "Dickens, Charles, 1812-1870." At that point, the cookie > changed to 812. Since "812" is part of the author string, it seems that > the code that sets the cookie is picking that up for some reason and using > it. I assume that's some sort of local customization, so I'm not sure how > best to troubleshoot it... but if you want to share the lines involved in > the cookie-setting, I can take a look and see if I have any ideas. > > - Demian > ________________________________________ > From: Allen Patrick [[hidden email]<http://user/SendEmail.jtp?type=node&node=4662549&i=0>] > > Sent: Friday, May 24, 2013 10:58 AM > To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4662549&i=1> > Subject: [VuFind-Tech] Problem When clicking on an Author Link with Author > Date Included > > Hello > When I do a search and then click on the Author it shows the Author info > from wikapedia, with their works below. However when that Author link > includes Tag 100 Subfield d The Author Date field. It shows the Wikapedia > info for that author and no works. From then on though all subsequent > searches fail. This also happens in the *Narrow search sidebar* on any > Author that has a date field included in it. *Please Note* I have this > site > serving muliple libraries based upon a library location code. It seems > that > when one of these links is clicked all the home library information gets > wiped out which is kept in a cookie. I am not sure what to do about it. > This can be seen at the following domain. > http://www.mylibrarybooks.org/ > > Thanks > > > > -- > View this message in context: > http://vufind.2307425.n4.nabble.com/Problem-When-clicking-on-an-Author-Link-with-Author-Date-Included-tp4662547.html > Sent from the vufind-tech mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring > service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Vufind-tech mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=4662549&i=2> > https://lists.sourceforge.net/lists/listinfo/vufind-tech > > > ------------------------------------------------------------------------------ > > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring > service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may > _______________________________________________ > Vufind-tech mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=4662549&i=3> > https://lists.sourceforge.net/lists/listinfo/vufind-tech > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://vufind.2307425.n4.nabble.com/Problem-When-clicking-on-an-Author-Link-with-Author-Date-Included-tp4662547p4662549.html > To unsubscribe from Problem When clicking on an Author Link with Author > Date Included, click here<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4662547&code=YWxAY2xvdWRsaWJyYXJpZXMubmV0fDQ2NjI1NDd8MTQzMzcyMTk0MA==> > . > NAML<http://vufind.2307425.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://vufind.2307425.n4.nabble.com/Re-Problem-When-clicking-on-an-Author-Link-with-Author-Date-Included-tp4662550.html Sent from the vufind-tech mailing list archive at Nabble.com. |