[SPT/CWIS] My Seaches links get "Metadatatool" incorrectly put intoURLs after edit/cancel
Kucera, Rich
Kucerar at hhmi.org
Fri Oct 6 11:56:10 CDT 2006
Put in a fix for this, just tests for MetadataTool and appends an up
directory to the URLs for saved searches.
In the file SPT--StandardPageEnd.html:
<?PHP
$metadata_directory_offset =
(strpos($_SERVER['REQUEST_URI'],"MetadataTool")!==false)?"../":"";
foreach ($Searches as $Search) {
?>
<div>· <a
href="<?=$metadata_directory_offset?>SPT--AdvancedSearch.php?Q=Y ...
HTH somebody, though starting to notice numerous other problems with
advanced search...
-Rich
> -----Original Message-----
> From: spt-cwis-users-bounces at scout.wisc.edu [mailto:spt-cwis-users-
> bounces at scout.wisc.edu] On Behalf Of Kucera, Rich
> Sent: Thursday, September 07, 2006 4:07 PM
> To: SPT / CWIS Users Discussion List
> Subject: [SPT/CWIS] My Seaches links get "Metadatatool" incorrectly put
> intoURLs after edit/cancel
>
> Hello,
>
> After edit/cancel, My Searches links get "Metadatatool" in the path.
> This
> leads to 404 NOT FOUND for the AdvancedSearch links in the left-hand side
> navs.
>
> For example:
> http:/.../database/MetadataTool/SPT--AdvancedSearch.php?Q=Y&F27=summer
>
> The URLS should not have Metadatatool in them, like this:
> http:/.../database/SPT--AdvancedSearch.php?Q=Y&F27=summer
>
> How can I correct this?
>
> Thanks,
>
> -----------------------------------------
> Rich Kucera
> Senior Web Applications Developer
> Howard Hughes Medical Institute
> 4000 Jones Bridge Road
> Chevy Chase, MD 20815
> (301) 215-8714
>
>
> > -----Original Message-----
> > From: spt-cwis-users-bounces at scout.wisc.edu [mailto:spt-cwis-users-
> > bounces at scout.wisc.edu] On Behalf Of Edward Almasy
> > Sent: Wednesday, September 06, 2006 3:33 PM
> > To: SPT / CWIS Users Discussion List
> > Subject: Re: [SPT/CWIS] new to the list, question about uploading images
> >
> > On Sep 1, 2006, at 11:08 AM, Sonya Norris wrote:
> > > My quandry is this: we can't seem to properly upload images to adjoin
> > > records. Or rather, we can upload them just fine but the php is
> > > messing
> > > with the image dimensions in such a way that the images don't display.
> > > The lines of code that seem to be causing the damage are in the
> > > SPT--SPTImage.php file and I've starred the lines below that are
> > > generating error messages.
> > > *******$this->PreviewWidth = ($MaxPreviewHeight *
> > > $SrcImage->XSize()) / $SrcImage->YSize();
> > > ******* $this->ThumbnailWidth =
> > > ($MaxThumbnailHeight
> > > * $SrcImage->XSize()) / $SrcImage->YSize();
> >
> > What error messages are these lines generating?
> >
> > The problem may stem from your PHP installation not
> > including the GD image library. (CWIS attempts to
> > make use of external utilities if it can't find the
> > needed internal GD support, but calling external
> > programs is a much less reliable solution.) To see
> > if you have GD, take a look at the phpinfo() display
> > (available via the Administration page in CWIS), and
> > look for a section titled "gd".
> >
> > Ed
> >
> >
> > ---
> > Edward Almasy
> > ealmasy at scout.wisc.edu
> > Co-Director 1210 W Dayton
> > Street
> > Internet Scout Madison
> > WI 53706
> > Computer Sciences Department 608-262-6606
> > (voice)
> > University of Wisconsin - Madison
> > 608-265-9296 (fax)
> >
> >
> >
> > _______________________________________________
> > SPT-CWIS-Users mailing list
> > SPT-CWIS-Users at scout.wisc.edu
> > http://scout.wisc.edu/mailman/listinfo/spt-cwis-users
> _______________________________________________
> SPT-CWIS-Users mailing list
> SPT-CWIS-Users at scout.wisc.edu
> http://scout.wisc.edu/mailman/listinfo/spt-cwis-users
More information about the SPT-CWIS-Users
mailing list