# determine audience from the collection, only show if the item is not for general release my $collection = hcc_getcollectionname($item{collectionid}); if ($collection ne 'Main') { print ''."\n"; }; if ($item{'district'} or $item{'location'} or $item{'settlement'}) { my $place = $item{'settlement'}; if (($item{'settlement'} and $item{'settlement'} ne '' ) and ($item{'location'} and $item{'location'} eq '' )) { $place = $place.', '; }; $place = $place.$item{'location'}; if (($item{'district'} and $item{'district'} ne '' ) and ($item{'location'} and $item{'location'} ne '' )) { $place = $place.', '; }; $place = $place.$item{'district'}; print ''."\n"; } else { print ''."\n"; }; ##Don't show RON name to public (DC.Creator is required by SiteMorse though, so include as just HCC) : ##my $rondetails; ##if ($item{'rontitle'} or $item{'ronorganisation'}) { ## $rondetails = $item{'rontitle'}.', '.$item{'ronorganisation'}.', '; ## print ''."\n"; ##}; print ''."\n"; use HTTP::Date; if ($item{'datecreated'}) { print ''."\n"; }; print ''."\n"; #CH 25/04/2008: strapline not used here any more: #my $strapline=''; #if (defined $item{strapline}) { # # Trim the strapline down to 80 characters : # $strapline = substr($item{strapline},0,80); # # and find the last whole word : # $strapline =~ s/(.*)\s\w+?$/$1/; # if (length($item{strapline}) > length($strapline)) { # $strapline=$strapline.'...'; # }; # $strapline=' - '.hcc_string_to_xhtml(fnc_striphtml($strapline)); #}; #FEMG - description built seperately for each item type May 2006 # print ''."\n"; #CH 25/04/2008: don't output DC.Description - we have a normal meta tag description already: #my $dc_desc = fnc_dc_description(); #if ($dc_desc) { # print ''."\n"; #}; if ($item{'abstract'}) { print ''."\n"; }; if ($item{'at_a_glance_xml'}) { my @entry = split(/<\/page>.*?/si,$item{'at_a_glance_xml'}); #split on anything at all # ie put each contents entry into a seperate line of the array my $contents; foreach my $bit (@entry) { my $cont_pageno = $bit; my $cont_title = $bit; my $cont_text = $bit; $cont_pageno =~ s/.*?//si; $cont_pageno =~ s/<\/pageno>.*//si; $cont_title =~ s/.*?//si; $cont_title =~ s/<\/title>.*//si; $cont_text =~ s/.*?<text>//si; $cont_text =~ s/<\/text>.*//si; if ($cont_text) { $cont_text = ' - '.$cont_text; }; $contents = $contents.$cont_pageno.' '.$cont_title.$cont_text.', '; }; print '<meta name="DC.Description.TableOfContents" '; print 'content="'.hcc_string_to_xhtml(fnc_striphtml($contents)).'" />'."\n"; }; my %thisitem = getitem($item{'itemid'},0); #get access to all the item hash my $revdate=($thisitem{'signoffdate'} || $item{'ReviewDate'}); if (defined $revdate) { print '<meta name="DC.Disposal.Review" scheme="ISO8601" '; print 'content="'.HTTP::Date::time2iso(str2time($revdate)).'" />'."\n"; }; print '<meta name="DC.Format" scheme="IMT" content="Text/html" />'."\n"; my $idurl; if ($client{localaddress} eq $client{remoteaddress}) { $idurl='http://'.$client{localhost}.$request{path}; } else { $idurl='http://www.hertsdirect.org'.$request{path}; }; print '<meta name="DC.Identifier" scheme="URI" content="'.$idurl.'" />'."\n"; print '<meta name="DC.Language" scheme="ISO 639-2/T" content="eng" />'."\n"; print '<meta name="DC.Publisher" content="Hertfordshire County Council, County Hall, Pegs Lane, Hertford, SG13 8DQ, knowledge.management@hertscc.gov.uk" />', "\n"; print '<meta name="DC.rights.copyright" content="Hertfordshire County Council" />', "\n"; # Subject category and keywords made more useful for hyperwave search #CH 25/04/2008: DC.Subject.Category is deprecated #if ($item{'subjectcategory'}) { # print '<meta name="DC.Subject.Category" content="'.hcc_string_to_xhtml(fnc_striphtml($item{'subjectcategory'})).'" />'."\n"; #} #else { # print '<meta name="DC.Subject.Category" content="Local government, Public services" />'. "\n"; #}; # print '<meta name="DC.Subject.Keywords" content="hertfordshire county council, hcc, local government, public services, '.$item{'keywords'}.'" />'. "\n"; #CH 25/04/2008: DC.Subject.Keywords are deprecated - but see after title below: #my $kkeywords = fnc_keywords(); #if ($kkeywords) { # print '<meta name="DC.Subject.Keywords" content="'.$kkeywords.'" />'. "\n"; #}; #CH 25/04/2008: DC.title and subject are still mandatory: my $title=hcc_string_to_xhtml(fnc_striphtml($item{branchtitle} || $item{name})); print '<meta name="DC.title" content="hertsdirect.org '.$title.'" />'."\n"; #use title as subject? DC.subject IS reauired - can't think what else to use: print '<meta name="DC.subject" content="'.$title.'" />'. "\n"; ######################################################################################### sub fnc_striphtml ($){ # Strip out any HTML tags that have been embedded in the field text my ($line) = @_; $line =~ s/<br>/, /gs; $line =~ s/<br \/>/, /gs; #CH 25/04/2008: convert HTML tags to a space, not null: #$line =~ s/<.*?>//gs; $line =~ s/<.*?>/ /gs; $line = hcc_string_to_xhtml($line); return $line; }; #------------------------------------------------------------------------------------------------------------------------ # keywords function #--------------------------------------------------------------------------------- # everything that needs to be seached on that isn't shown on the page sub fnc_keywords { # build keywords my $mkeywords; if ($item{keywords}) { $mkeywords = $item{keywords}.', '; }; if ($item{altspell}) { $mkeywords = $mkeywords.$item{altspell}.', '; }; if ($item{extrasearchterms}) { $mkeywords = $mkeywords.$item{extrasearchterms}.', '; }; if ($item{district}) { $mkeywords = $mkeywords.$item{district}.', '; }; if ($item{location} and ($item{itemtypename} ne 'Staff')) { $mkeywords = $mkeywords.$item{location}.', '; }; if ($item{settlement}) { $mkeywords = $mkeywords.$item{settlement}.', '; }; $mkeywords =~ s/(, )$//; # remove trailing comma $mkeywords =~ s/,+/,/; # remove duplicate commas $mkeywords = hcc_string_to_xhtml($mkeywords); return $mkeywords; };# description function #------------------------------------------------------------------------------------------------------------------------ sub fnc_dc_description { # build best description for each item type - FEMG May 2006 # this function can by used for any view my $dc_description = ""; my $typename = $item{itemtypename}; if (($typename eq "Article") || ($typename eq "Feature")) { $dc_description = fnc_descstriphtml($item{'strapline'}); if (length($dc_description) < 40) { $dc_description = $dc_description.' '.fnc_descstriphtml($item{'bodytxt1'}); } if (length($dc_description) > 150) { $dc_description = fnc_shorten($dc_description); } } elsif ($typename eq "Document") { $dc_description = fnc_shorten(fnc_descstriphtml($item{'abstract'})); } elsif ($typename eq "School") { $dc_description = fnc_descstriphtml($item{'type'}.', '.$item{'address4'}); # $dc_description = fnc_descstriphtml('Address: '.fnc_stripcolons($item{'address1'}). # '; Town: '.fnc_stripcolons($item{'address4'}).'; Postcode: '.fnc_stripcolons($item{'postcode'}). # '; Head: '.fnc_stripcolons($item{'headteachersurname'}).'; Phone: '.fnc_stripcolons($item{'phone'}). # '; Comnet: '.fnc_stripcolons($item{'comnetphone'}).';'); } # Organisation search results might well be simplified so next few lines are hopefully redundant # elsif ($typename eq "Organisation") { # my $org_address = $item{'address1'}; # $org_address =~ s/\n/, /g; # $dc_description = fnc_shorten($item{summary} || $item{maintext} || $item{Description}); # $dc_description = fnc_descstriphtml('Summary: '.fnc_stripcolons($dc_description). # '; Name: '.fnc_stripcolons($item{'name1'}).'; Position: '.fnc_stripcolons($item{'position1'}). # '; Address: '.fnc_stripcolons($org_address).'; Postcode: '.fnc_stripcolons($item{'postcode1'}). # '; Phone: '.fnc_stripcolons($item{'phone1'}).';'); # } elsif ($typename eq "Organisation") { $dc_description = fnc_shorten(fnc_descstriphtml($item{summary} || $item{maintext} || $item{Description})); } #CH 25/04/2008: don't do this - NewsBranches do have a description field: #elsif ($typename eq "Newsbranch") { # $dc_description = "News and Contents"; #} elsif ($typename eq "Unit") { $dc_description = fnc_shorten($dc_description.fnc_descstriphtml($item{'summary'} || $item{'description'})); } elsif ($typename eq "Staff") { if ($item{type} && (length($item{type}) > 3)) { $dc_description = $item{type}.' - '; }; $dc_description =+ fnc_shorten($dc_description.fnc_descstriphtml($item{'summary'})); $dc_description =~ s/( - )$//; # remove hyphen at end of line if there is no summary #$dc_description = fnc_descstriphtml('Name: '.fnc_stripcolons($dc_description). # '; Summary: '.fnc_shortest(fnc_stripcolons($item{'summary'})). # '; Type: '.fnc_stripcolons($item{'type'}).';'); #$dc_description =~ s/(Name\: \;|Summary\: \;|Type\: \;)//g; #remove empty elements } elsif ($typename eq "Phones" && (length($item{type}) > 3)) { $dc_description = fnc_descstriphtml($item{type}); #$dc_description = fnc_descstriphtml('Type: '.fnc_stripcolons($item{'type'}). #'; Name: '.fnc_stripcolons($item{'name'}).'; Phone: '.fnc_stripcolons($item{'phonenumber'}). #'; Comnet: '.fnc_stripcolons($item{'comnetphone'}).';'); } else { $dc_description = fnc_shorten(fnc_descstriphtml($item{'description'})); #CH 25/04/2008: don't use header Introduction if no description - the GSA will extract its own snippet from page contents: #if ($dc_description eq "") { # $dc_description = fnc_shorten(fnc_descstriphtml($item{'header'})); #}; }; #CH 25/04/2008: don't default to using item typename (we don't want that in the GSA) # if ($dc_description eq "") { # $dc_description = $typename; # }; return $dc_description; }; #------------------------------------------------------------------------------------------------------------------------ sub fnc_shorten ($) { local ($/) = ""; my ($line) = @_; # Trim the line down to 140 characters my $newline = substr($line,0,140); $newline =~ s/\n/ /g; # and find the last whole word. $newline =~ s/(.*)\s.+?$/$1.../ if (length($newline) == 140); return $newline; }; #------------------------------------------------------------------------------------------------------------------------ sub fnc_descstriphtml ($) { # Strip out all HTML tags that have been embedded in the field text e.g. images, that would come out in the search results. my ($line) = @_; #CH 25/04/2008: convert HTML tags to a space, not null: #$line =~ s/<.*?>//gs; $line =~ s/<.*?>/ /gs; $line = hcc_string_to_xhtml($line); #encodes things like ampersands within results, so as to validate as XHTML. return $line; }; #------------------------------------------------------------------------------------------------------------------------ # stripcolons function not currently in use #sub fnc_stripcolons ($) { ## Strip out all colons and semicolons embedded in the field text, to make parsing easier. # my ($line) = @_; # $line =~ s/[;:]//gs; # return $line; #}; </server> <script src="/infobase/docs/javascript/hertsdirect_headdate.js" type="text/javascript"></script> <script src="/infobase/docs/javascript/cookies.js" type="text/javascript"></script> <link rel="stylesheet" href="/infobase/docs/hdcss/simple.css" type="text/css" /> <style type="text/css" media="screen">@import "/infobase/docs/hdcss/main.css";</style> <!--[if gte IE 5]><style type="text/css" media="screen">@import "/infobase/docs/hdcss/ieonly.css";</style><![endif]--> <style type="text/css" media="screen">@import "/infobase/docs/hdcss/headcss/comdirectory_hdr.css";</style> <style type="text/css" media="screen">@import "/infobase/docs/hdcss/branch.css";</style> <link rel="stylesheet" href="/infobase/docs/hdcss/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="/infobase/docs/hdcss/handheld.css" type="text/css" media="handheld" /> </head> <body onload="typeof(txtSize)=='undefined'?'':txtSize(); window.defaultStatus='hertsdirect.org : Hertfordshire County Council\'s website';"> <!-- Page wrapper --> <div class="pagewrapper"> <!-- Header --> <div class="header"> <a href="/" class="header_welcome hiddenheader" title="Return to hertsdirect.org homepage"> <img src="/infobase/docs/hdimages/hcc_weblogo.gif" width="95" height="61" alt="Return to hertsdirect.org homepage" /> </a> <h1 class="hiddenelement">Community directory</h1> <h2 class="hiddenelement">Find organisations and business info</h2> <div class="header_centre"></div> <div class="header_image"> <p id="date"> <script type="text/javascript">typeof(hdrDate)=="undefined" ? '' : hdrDate();</script> </p><noscript></noscript> </div> </div> <!-- Content wrapper --> <div class="contentwrapper"> <!-- Centre column container --> <div class="column_centre_container"> <div class="intro"> <h3>Housing associations</h3> </div> <ul class="level1"> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/12886003">Advance Housing and Support Ltd</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/423491">Aldwyck Housing Association Ltd</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/11296082">Aldwyck Housing Charity Floating Support Service</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/428005">Anchor </a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/433312">Ashwell Housing Association Ltd</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/464971">Braughing Housing Association Ltd</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/12885558">Broxbourne Housing Association</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/12885675">Carr Gomm Society</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/495595">Cherry Tree Housing Association Ltd</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/559828">Firbank Housing Society Ltd</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/12885692">Granta Housing Society Ltd</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/11281595">Griffin Homes</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/582032">Guinness Trust</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/585387">Hanover Housing Association. Midland East Office</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/592158">Hastoe Housing Association Ltd</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/806552">Hightown Praetorian and Churches Housing Association </a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/12886070">Home Farm Trust Ltd</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/acreshom3y/shelhoubish/634065">Housing 21</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/634431">Howard Cottage Housing Association</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/699884">Jewish Community Housing Association Ltd</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/10476439">John Grooms Housing Association</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/775592">Metropolitan Housing Trust</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/12885761">North Hertfordshire Homes</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/827170">Papworth Trust, The</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/10812724">Paradigm Housing Group</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/875702">Places for People Homes (Chilterns)</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/875598">Riversmead Housing Association</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/11658423">Sanctuary Housing Association </a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/826377">South Anglia Housing</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/665114">South Anglia Housing Association</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/11076608">Springboard Housing Association Ltd</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/12886927">St Pancras and Humanist Housing Association</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/acresasn3y/11223880">TP Herts</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/actemp3y/homelessnessadvice/876226">Watford New Hope Trust</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/acreshom3y/shelhouwgc/876476">Welwyn Garden City Housing Association (Head Office)</a></li> <li class="bullet dark"><a href="/comdirectory/comvol/accom2y/housassoc3/12235377">Welwyn Hatfield Tenants Panel</a></li> <li class="bullet light"><a href="/comdirectory/comvol/accom2y/housassoc3/876762">William Sutton Housing Association (London & South Region)</a></li> </ul> <!-- Language --> <div class="footer"> </div><!-- Crumb trail --> <div id="crumbtrail"> <h2 class="hiddenelement">Navigate back to...</h2> <ul> <li><a href="/comdirectory/comvol/accom2y/" title="Navigate up to: Accommodation and housing">« Accommodation and housing</a></li> </ul> </div> </div><!-- / Close centre column container --> <div class="column_left"> <!-- Site functions --> <div id="sitefunctions"> <div id="sitetools"> <h2>Site tools</h2> </div> <!-- Search --> <div id="form_search"> <form method="get" action="/public_search_results" onsubmit="if(this.searchinput.value=='Enter keywords') return false;"> <fieldset> <label for="keywords">Search</label> <input type="text" name="searchinput" id="keywords" value="Enter keywords" maxlength="255" onfocus="if(this.value=='Enter keywords')this.value=''" onblur="if(this.value=='')this.value='Enter keywords'" /> <input type="submit" name="Submit" id="go" value="Go" /> <input type="hidden" name="word" value="stem" /> <input type="hidden" name="comb" value="all" /> </fieldset> </form> <h2><a href="/advsearch" accesskey="4" title="Make your search more precise with Advanced Search">Advanced Search »</a></h2> </div> <h2 class="hiddenelement">Site Functions</h2> <ul> <li class="light"><a href="/atozofservices/" accesskey="A" title="Find the service you need by A to Z">A-Z of hertsdirect</a></li> <li class="dark"><a href="/sitemap/" accesskey="3" title="An overall view of the site layout">Sitemap</a></li> <li class="light"><a href="/contact/" accesskey="7" title="How to contact us by telephone, email or post">Contact us</a></li> </ul> </div> <!-- Help / home footer --> <ul class="menufoot"> <li class="lft"><a href="/help/" accesskey="6" title="hertsdirect help">Help</a></li> <li class="rght"><a href="/" accesskey="1" title="Go to hertsdirect homepage">Home</a></li> </ul> <!-- Information panel --> <div id="information"> <h2>Information</h2> <ul> <li class="light"><a href="/yourbus/" title="Business and consumer">Business and consumer</a></li> <li class="dark"><a href="/caresupport/" title="Care and support">Care and support</a></li> <li class="light"><a href="/comdirectory/" title="Community and living">Community and living</a></li> <li class="dark"><a href="/yrccouncil/" title="Council and democracy">Council and democracy</a></li> <li class="light"><a href="/disability/" title="Disability">Disability</a></li> <li class="dark"><a href="/envroads/" title="Environment and roads">Environment and roads</a></li> <li class="light"><a href="/atozoflinks/" title="Guide to other websites">Guide to other websites</a></li> <li class="dark"><a href="/havesay/" title="Have your say">Have your say</a></li> <li class="light"><a href="/jobs/" title="Jobs">Jobs</a></li> <li class="dark"><a href="/libsleisure/" title="Libraries and leisure">Libraries and leisure</a></li> <li class="light"><a href="/scholearn/" title="Schools and learning">Schools and learning</a></li> <li class="dark"><a href="/whatson/" title="What's on">What's on</a></li> <li class="light"><a href="/yngpeople/" title="Young people">Young people</a></li> </ul> </div> <!-- Copyright notices --> <ul class="menufoot"> <li class="lft"><a href="/legal/copy/" accesskey="k" title="Copyright statement"><acronym title="HCC Copyright Statement">©HCC</acronym></a></li> <li class="rght"><a href="/yrccouncil/work/foi/" accesskey="f" title="Freedom of Information"><acronym title="Freedom of Information">FoI</acronym></a></li> </ul> </div> <!-- / Close left column --> <!-- Right column --> <div class="column_right"> <!-- Accessibility & Emergencies --> <div id="accessibility"> <h2><a href="/accessibility/" accesskey="0" title="How to use this site more easily">Accessibility »</a></h2> <p class="hiddenelement">Tips and advice on using hertsdirect.</p><!-- HCC text-resizer buttons : --> <script src="/infobase/docs/javascript/txtsize.js" type="text/javascript"></script><noscript></noscript> </div> <!-- Online services panel --> <div id="onlineservices"> <h2><a href="/interactive/" accesskey="i" title="All our Online services">Online services »</a></h2> </div> <!-- Also on hertsdirect --> <div id="int_signposts"> <h2>Also on hertsdirect</h2> <ul> <li class="talksign_light"><a href="/comdirectory/comvol/accom2y/housassoc3/?view=Printlist" title="View all the records in this section ">View all the records in this section </a> Ideal for printing</li> </ul> </div> <!-- Privacy and legal footer --> <div class="menufoot"> <h2 class="hiddenelement">HCC Privacy Policy</h2> <ul> <li class="lft"><a href="/legal/privacy/" accesskey="t" title="hertsdirect Privacy Policy"><abbr title="HCC Privacy policy">Privacy</abbr></a></li> <li class="rght"><a href="/legal/legal/" accesskey="8" title="hertsdirect Legal statement"><abbr title="HCC Legal Statement">Legal</abbr></a></li> </ul> </div> </div> <!-- / Close right column --> </div><!-- / Close content wrapper --> </div><!-- / Close page wrapper --> </body> </html>