About the IUSM news feed
Basic | Advanced
Basic features
This icon
denotes an XML news feed -- in this case, the feed for IU School of Medicine news.
- Add the feed to your Web site for automatically
updated headlines throughout the week. Simply add the following code to your
HTML page:
<script language="JavaScript" src= "http://www.medicine.indiana.edu/pmr-rss.php4"></script>
- If you use an aggregator to read news, subscribe with the following
URL:
http://medicine.indiana.edu/pmrxml.php4
- "What's an aggregator?" Aggregator software reads and
displays news and blurb-type articles that have been formatted into an
XML-based feed. Aggregators typically provide lists of feeds and make it
simple to subscribe to them. For a good list of aggregators, see Dave Winer's
site.
- To find out more about IUSM news or the news feed, contact Marti LaChance: medschl@iupui.edu
Advanced features
Number of headlines: The news feed will show the four most recent headlines by default. To customize the number of headlines displayed, you may do one of the following:
- If you add the feed to your Web site with the JavaScript code above, use
this code on your HTML page instead:
<script language="JavaScript" src="http://www.medicine.indiana.edu/pmr-rss.php4?n=X"></scriptChange X to the number of headlines to display, such as 3 or 5.
- If you use an aggregator to read news, subscribe with
the following URL: http://medicine.indiana.edu/pmrxml.php4?n=X
Change X to the number of headlines to display, for example 3 or 5.
Story dates: By default, the news feed will not display story dates. To show the publication date for each headline on your Web site, use this JavaScript code:
<script language= "JavaScript"src="http://www.medicine.indiana.edu/pmr-rss.php4?date=true"></script>
Shorten long headlines: The news feed will display complete story headlines by default. However, you have the option to set a maximum headline length. This can be helpful if you have space constraints on your Web site. Headlines exceeding the length you specify will be truncated at the end of the closest word, and end in an ellipsis.
For example, in a news feed with a maximum length of 58, the headline: Biotechnology, Assisted Reproduction on This Week's Sound Medicine would be listed as: Biotechnology, Assisted Reproduction on This Week's...
To specify a maximum headline length to be displayed on your Web site, use this JavaScript code:
<script language= "JavaScript"src="http://www.medicine.indiana.edu/pmr-rss.php4?trunc=X"><script>
Change X to the maximum headline length, for example 52 or 61.
Combining advanced features: You may use more than one of these advanced features on your Web site. To find out how, email: medschl @ iupui.edu.






