From: Alan R. <ala...@mn...> - 2008-06-25 18:46:32
|
Hello, I've found a problem with the use of url as a field name in web/xsl/solr-convert.xsl and as a variable in the templates, especially the Record/templates/view.tpl. If the Record you are looking at contains only 1 856 field the web/xsl/solr-convert.xsl seems to overwrite the value of $url with whatever subfield u contains. If there are multiple 856 fields it is not a problem, because then web/xsl/solr-convert.xsl creates an array. If you change the name of the field that is created by web/xsl/solr-convert.xsl to something else, there is no problem. The bad url occurs in the links to Holdings, Description, TOC, UserComments, Reviews, and Details where they do not link back to the home site. al -- Alan Rykhus PALS, A Program of the Minnesota State Colleges and Universities (507)389-1975 ala...@mn... |
From: Andrew N. <and...@vi...> - 2008-06-25 19:44:44
|
Al - I just checked a record and did not see this problem. Could you give us an example of this problem occurring? Here is an example from the VuFind demo site: http://vufind.org/demo/Record/544565/Details This record has only 1 856 link and is displayed properly. All other links on this page are also displayed properly. Thanks Andrew > -----Original Message----- > From: vuf...@li... [mailto:vufind-tech- > bo...@li...] On Behalf Of Alan Rykhus > Sent: Wednesday, June 25, 2008 2:47 PM > To: vuf...@li... > Subject: [VuFind-Tech] Use of variable url in solr-convert.xsl and in > templates. > > Hello, > > I've found a problem with the use of url as a field name in > web/xsl/solr-convert.xsl and as a variable in the templates, especially > the Record/templates/view.tpl. > > If the Record you are looking at contains only 1 856 field the > web/xsl/solr-convert.xsl seems to overwrite the value of $url with > whatever subfield u contains. If there are multiple 856 fields it is > not > a problem, because then web/xsl/solr-convert.xsl creates an array. > > If you change the name of the field that is created by > web/xsl/solr-convert.xsl to something else, there is no problem. > > The bad url occurs in the links to Holdings, Description, TOC, > UserComments, Reviews, and Details where they do not link back to the > home site. > > al > -- > Alan Rykhus > PALS, A Program of the Minnesota State Colleges and Universities > (507)389-1975 > ala...@mn... > > > ----------------------------------------------------------------------- > -- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Vufind-tech mailing list > Vuf...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-tech |
From: Alan R. <ala...@mn...> - 2008-06-25 20:21:01
|
Hello Andrew, It must be from a localization I've done. I have no problem fixing it on my site. al On Wed, 2008-06-25 at 14:44 -0500, Andrew Nagy wrote: > Al - I just checked a record and did not see this problem. Could you give us an example of this problem occurring? > > Here is an example from the VuFind demo site: > http://vufind.org/demo/Record/544565/Details > This record has only 1 856 link and is displayed properly. All other links on this page are also displayed properly. > > Thanks > Andrew > > > -----Original Message----- > > From: vuf...@li... [mailto:vufind-tech- > > bo...@li...] On Behalf Of Alan Rykhus > > Sent: Wednesday, June 25, 2008 2:47 PM > > To: vuf...@li... > > Subject: [VuFind-Tech] Use of variable url in solr-convert.xsl and in > > templates. > > > > Hello, > > > > I've found a problem with the use of url as a field name in > > web/xsl/solr-convert.xsl and as a variable in the templates, especially > > the Record/templates/view.tpl. > > > > If the Record you are looking at contains only 1 856 field the > > web/xsl/solr-convert.xsl seems to overwrite the value of $url with > > whatever subfield u contains. If there are multiple 856 fields it is > > not > > a problem, because then web/xsl/solr-convert.xsl creates an array. > > > > If you change the name of the field that is created by > > web/xsl/solr-convert.xsl to something else, there is no problem. > > > > The bad url occurs in the links to Holdings, Description, TOC, > > UserComments, Reviews, and Details where they do not link back to the > > home site. > > > > al > > -- > > Alan Rykhus > > PALS, A Program of the Minnesota State Colleges and Universities > > (507)389-1975 > > ala...@mn... > > > > > > ----------------------------------------------------------------------- > > -- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Vufind-tech mailing list > > Vuf...@li... > > https://lists.sourceforge.net/lists/listinfo/vufind-tech -- Alan Rykhus PALS, A Program of the Minnesota State Colleges and Universities (507)389-1975 ala...@mn... |