Michael Jones Posted June 5, 2006 Report Share Posted June 5, 2006 I've noticed when you call up an individual, at the bottom the sources are listed by short title. However, if you browse documents and a document is linked to a source, the full source name shows up. I'd rather have it so that if you link a document to a source, it shows the short title under "linked to," rather than the full source title. My guess is that this shouldn't be too hard to change. Any of you coder wizards out there want to give this a shot?Thanks.Mike Quote Link to comment Share on other sites More sharing options...
rdmorss Posted June 5, 2006 Report Share Posted June 5, 2006 In browsedocs.phpchange line 131from$sources_table.title, $sources_table.sourceIDto$sources_table.shorttitle, $sources_table.sourceIDchange line 155from$sourcetext = $prow[title] ? $prow[title] : $prow[sourceID];to$sourcetext = $prow[shorttitle] ? $prow[shorttitle] : $prow[sourceID];i.e. You're changing title to shorttitle in three instances - once on line 131, twice on line 155. Quote Link to comment Share on other sites More sharing options...
Michael Jones Posted June 6, 2006 Author Report Share Posted June 6, 2006 In browsedocs.phpchange line 131from$sources_table.title, $sources_table.sourceIDto$sources_table.shorttitle, $sources_table.sourceIDchange line 155from$sourcetext = $prow[title] ? $prow[title] : $prow[sourceID];to$sourcetext = $prow[shorttitle] ? $prow[shorttitle] : $prow[sourceID];i.e. You're changing title to shorttitle in three instances - once on line 131, twice on line 155.Hmm... maybe I'm doing something wrong, but I did try this and it seemed to have no effect. Any ideas? Quote Link to comment Share on other sites More sharing options...
rdmorss Posted June 6, 2006 Report Share Posted June 6, 2006 We are talking about the page that starts out with the header "Browse All Histories", right? This is the browsedocs.php file which you access via the Histories link of your menu.Did you...- save the browsedocs.php file after making the edits?- upload the edited browsedocs.php file to the TNG directory of your web server?- click the refresh (or reload) button on your browser while viewing browsedocs.php?- clear your browser cache (so the old version of the page isn't just being reloaded from your local cache)? This may or may not be necessary, depending on your browser cache settings.My suggested edits pull and display shorttitle instead of title from the tng_sources table of the database. The three edits are the only three places in browsedocs.php where the word title appears. Quote Link to comment Share on other sites More sharing options...
Michael Jones Posted June 6, 2006 Author Report Share Posted June 6, 2006 We are talking about the page that starts out with the header "Browse All Histories", right? This is the browsedocs.php file which you access via the Histories link of your menu.Ah... I was actually talking about the Browse Documents Page --so I made the changes to browsephotos.php and it works... I'll probably keep the change on my histories page as well... Thanks so much!Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.