*cough* do it serverside *cough*
Tip: Make sure you order your terms by reverse string length in the
array, otherwise you get the link on BAR instead of BARROW (assuming BAR
were a monument type, which it is not, sadly).
TB
BAJRWebsite.ORG wrote:
> Thanks Crispin...
>
> here is the code... (anyone of a nervous disposition look away now)
>
> I have a table called Terms
>
> the fields are
>
> ID Keyword Description
>
> sample :
> 1 AGRICULTURAL BUILDING A building used for an agricultural
> and/or subsistence purpose.
> 2 ABATTOIR A building where animals
> are slaughtered.
> 3 ASH HOUSE A small outlying farm
> building, especially common in southern England, used to store ash
> (which was used as a fertilizer).
>
> Now what I have at the moment is the following javascript which seaches
> through a page and finds the words which are the *keywords* then
> replaces them with a tooltip code that shows the description in the tooltip.
>
> <style type="text/css">
> .descript {
> cursor: help;
> color: #666699;
> font-style: italic;
> font-variant: small-caps;
> text-transform: capitalize;
> }
> </style>
> <script type="text/javascript">
> function init() {
> //define the words
> words = new Array("AGRICULTURAL BUILDING","ABATTOIR","ASH
> HOUSE","BARN","BARN PLATFORM","TITHE BARN","Beasthouse","Brew
> House","Byre","CIDER HOUSE");
> //define the descriptions (the index must correspond with the word above)
> descrip = new Array("A building used for an agricultural and/or
> subsistence purpose. Use more specific type where known.","A building
> where animals are slaughtered.","A small outlying farm building,
> especially common in southern England, used to store ash (which was used
> as a fertilizer).","A building used primarily for storing hay, grain,
> farm equipment or as a shelter for livestock. Use more specific type
> where known.","A levelled area of ground on which a barn is built. A
> platform is often the sole surviving evidence for a barn.","A large barn
> used to store the tithe (a tenth part of the annual produce of
> agriculture etc.) which was paid by the tenants of ecclesiastical
> lands.","Beasthouse","Brew House","Byre","A building associated with the
> domestic production and storage of cider, especially on farms.");
> obj = document.getElementsByTagName("body")[0];
> //find words
> for (i in words) {
> re = new RegExp("\\b("+words[i]+")\\b <file://\\b("+words[i]+")\\b>", "gi");
> str = obj.innerHTML.replace(re,'<span title="'+descrip[i]+'"
> class="descript">$1</span>');
> document.getElementsByTagName("body")[0].innerHTML = str;
> }
> }
> </script>
> </head>
>
> <body onLoad="init();">
>
> etc etc.................
>
>
> Now what I want to do, is instead of having to create a massive string
> for the words array and another for the desrip array is to use
> something like getrows to populate the array with the fields from the
> Term table. Or am I asking too much of it! to see it in action go
> here http://www.bajr.org/BAJR06/tooltip/Untitled-3.asp
>
>
> David Connolly
> British Archaeological Jobs Resource
> BAJR - www.bajr.org <http://www.bajr.org>
> 5/2 Hamilton Terrace
> Edinburgh
> EH15 1NB
>
> T: 0131 669 2683
> M 0787 6528 498
> E [log in to unmask] <mailto:[log in to unmask]>
>
> ----- Original Message -----
> *From:* Crispin Flower <mailto:[log in to unmask]>
> *To:* [log in to unmask] <mailto:[log in to unmask]>
> *Sent:* Thursday, February 09, 2006 9:26 AM
> *Subject:* Re: HERs currently online in England
>
> Hi David
> re your js questions, can you clarify - database table or html
> table? What are you trying to put into the arrays? Why 2? etc
> cheers
> Crispin
>
> ------------------------------------------------------------------------
> *From:* BAJRWebsite.ORG [mailto:[log in to unmask]]
> *Sent:* 08 February 2006 18:45
> *To:* [log in to unmask] <mailto:[log in to unmask]>
> *Subject:* Re: HERs currently online in England
>
> I certainly will be contacting you as it seems you have hit the nail
> on the head... along with Sitelines (and others) where the Online
> SMR is only a part of the whole... only with additional backup,
> exhibitions, school outreach, leaflets, guides etc etc.... a joined
> up approach.
>
> So once again... a happy outcome... now .... how to get that
> size of project funding for my coooncil. ;-))
>
> ps.... anyone know javascript?? trying to get a table into a
> couple of arrays?
>
>
> David Connolly
> British Archaeological Jobs Resource
> BAJR - www.bajr.org <http://www.bajr.org>
> 5/2 Hamilton Terrace
> Edinburgh
> EH15 1NB
>
> T: 0131 669 2683
> M 0787 6528 498
> E [log in to unmask] <mailto:[log in to unmask]>
>
> ----- Original Message -----
> *From:* Eleanor Kingston
> <mailto:[log in to unmask]>
> *To:* [log in to unmask] <mailto:[log in to unmask]>
> *Sent:* Wednesday, February 08, 2006 11:31 AM
> *Subject:* Re: HERs currently online in England
>
> Hi Everyone,
>
>
>
> Many thanks for highlighting our successful bid. We’re obviously
> really pleased that we’ve been successful (although, it now
> means we’ve actually got to do it!).
>
>
>
> What I will say is that the online element is only a tiny part –
> we are aiming to improve the content of the archaeology pages of
> the Lake District National Park Authority’s website with
> information but actual access to search the HER will only be
> through ADS at this stage. We decided this approach would suit
> us more (for various technical and other reasons) and the main
> part of the bid is the outreach and education element. The new
> leaflets, education packs and exhibition modules will form part
> of an outreach strategy we have designed, which also includes
> workshops and events in local libraries and museums.
>
>
>
> If anyone wants to know more detail about the bid then do
> contact me – I’d be happy to help anyone who’s thinking of
> putting in a bid along these lines.
>
> Cheers,
>
>
>
> Eleanor
>
>
>
> Eleanor Kingston
>
> Archaeologist
>
> Lake District National Park Authority
>
> Direct Dial: 01539 792712
>
> www.lake-district.gov.uk
>
>
>
> -----Original Message-----
> *From:* HOWARD, Bruce [mailto:[log in to unmask]]
> *Sent:* 08 February 2006 10:54
> *To:* [log in to unmask]
> *Subject:* Re: HERs currently online in England
>
>
>
> David
>
>
>
> Thanks for drawing our attention to the successful HLF bid by
> the Lake District NP to put their HER online. This is good
> news, but one thing to highlight in terms of the shape of the
> bid is that putting the HER itself online is only one part of a
> bid which includes education and outreach activity. The HLF
> have already made it clear that they will not fund the creation
> of websites in isolation – bids need to include a wider
> programme drawing on the material from the HER as a resource.
>
>
>
> The Heritage Information Partnerships team here at English
> Heritage are happy to provide advice to English HERs who want
> pursue a lottery bid and I would encourage them to do so at the
> earliest possible time in their planning of any project. For
> HERs outside of England we can always put you in touch with HERs
> who have made successful bids or who have developed specific
> types of projects that we are aware of.
>
>
>
> We see giving advice to local authorities who are looking into
> making HLF (and other funding) bids as an important part of our
> role, so please do get in touch.
>
> Regards,
>
> Bruce
>
> ************************************************************************************
>
> **Bruce Howard**
>
> **Heritage Information Partnerships Supervisor (HER Liaison)**
>
> English Heritage
>
> National Monuments Record
>
> Kemble Drive
>
> Swindon
>
> SN2 2GZ
>
> Tel: 01793 414880 Fax: 01793 414770
>
> e-mail: [log in to unmask]
> <mailto:[log in to unmask]>
>
> Heritage Information Partnerships
> <http://www.english-heritage.org.uk/server/show/nav.8332>
>
> HER Forum email list <http://www.jiscmail.ac.uk/lists/HERFORUM.html>
>
> -----Original Message-----
> *From:* Issues related to Historic Environment Records
> [mailto:[log in to unmask]] *On Behalf Of *BAJRWebsite.ORG
> *Sent:* 06 February 2006 08:47
> *To:* [log in to unmask]
> *Subject:* Re: HERs currently online in England
>
>
>
> Glad to see/hear the news on the archaeology news podcast (
> http://news.stonepages.com - plug plug ;-)) that
>
> Lake District Historic Environment Record is going online, but
> integrated with an exhibition, education packs and leaflets. Is
> this the template we should all aim for rather than just getting
> the info online... and as such.... do you think the HLF would
> support every county in the UK?
>
>
>
> David Connolly
> British Archaeological Jobs Resource
> BAJR - www.bajr.org <http://www.bajr.org>
> 5/2 Hamilton Terrace
> Edinburgh
> EH15 1NB
>
>
>
> T: 0131 669 2683
> M 0787 6528 498
> E [log in to unmask] <mailto:[log in to unmask]>
>
> ----- Original Message -----
>
> *
> From: HOWARD, Bruce <mailto:[log in to unmask]>
>
> *To:* [log in to unmask] <mailto:[log in to unmask]>
>
> *Sent:* Tuesday, January 31, 2006 12:00 PM
>
> *Subject:* HERs currently online in England
>
>
>
> Dear All
>
>
>
> Here is a list of the HERs and SMRs who currently provide online
> access to their data in England. I make this a total of 14
> databases, including four hosted by ADS. This takes into
> account the details provided from the recent HER Content and
> Computing Survey (I have not made specific reference to those
> currently working towards online access). Any comments or
> additions/corrections would be welcomed (probably easier if you
> send these to me off list – [log in to unmask]
> <mailto:[log in to unmask]> ).
>
>
>
> I hope that this list comes across clearly by email, but if you
> have any problems reading it I have put a copy of the original
> file in the HER Forum file store – filename: *hers_online.xls*
> http://www.jiscmail.ac.uk/files/HERFORUM/
>
>
>
>
>
> *
>
> *
>
> */HER_database_URL/*
>
>
>
> */HER/*
>
>
>
>
>
> _http://www.esdm.no-ip.com/hbsmr/UBPlogin.aspx_
>
>
>
> Buckinghamshire County Council,
>
>
>
>
>
> _http://www2.cheshire.gov.uk/RCP/_
>
>
>
> Cheshire County Council,
>
>
>
>
>
> _http://www.keystothepast.info <http://www.keystothepast.info/>_
>
>
>
> Durham County Council
>
>
>
>
>
> _http://unlockingessex.essexcc.gov.uk
> <http://unlockingessex.essexcc.gov.uk/>_
>
>
>
> Essex County Council,
>
>
>
>
>
> _http://ads.ahds.ac.uk/catalogue/collections/blurbs/272.cfm_
>
>
>
> Greater London SMR
>
>
>
> ADS
>
> _http://historicenvironment.hants.gov.uk/_
>
>
>
> Hampshire County Council,
>
>
>
>
>
> _http://www.smr.herefordshire.gov.uk/db.php_
>
>
>
> Herefordshire Archaeology,
>
>
>
>
>
> _http://www.keystothepast.info <http://www.keystothepast.info/>_
>
>
>
> Northumberland County Council
>
>
>
>
>
> _http://ads.ahds.ac.uk/catalogue/collections/blurbs/343.cfm_
>
>
>
> Shropshire County Council,
>
>
>
> ADS
>
> _http://webapp1.somerset.gov.uk/her/sop.asp?flash=true_
>
>
>
> Somerset County Council,
>
>
>
>
>
> _http://ads.ahds.ac.uk/catalogue/collections/blurbs/321.cfm_
>
>
>
> South Gloucestershire Council,
>
>
>
> ADS
>
> _www.museums.ncl.ac.uk/sitelines
> <http://www.museums.ncl.ac.uk/sitelines>_
>
>
>
> Tyne & Wear HER
>
>
>
>
>
> _http://timetrail.warwickshire.gov.uk/_
>
>
>
> Warwickshire County Council,
>
>
>
>
>
> _http://ads.ahds.ac.uk/catalogue/collections/blurbs/420.cfm_
>
>
>
> Yorkshire Dales National Park Authority,
>
>
>
> ADS
>
> _http://www.outofoblivion.org.uk/
> <http://www.outofoblivion.org.uk/>_
>
>
>
> Yorkshire Dales National Park Authority,
>
>
>
>
>
> *
> * *
>
> * *
>
> * *
>
> * *
>
> * *
>
> * *
>
> * *
>
> *Regards,*
>
> * *
>
> *Bruce*
>
> * *
>
> **************************************************************************************
>
> * *
>
> ***Bruce Howard***
>
> * *
>
> ***Heritage Information Partnerships Supervisor (HER Liaison)***
>
> * *
>
> *English Heritage*
>
> * *
>
> *National Monuments Record*
>
> * *
>
> *Kemble Drive*
>
> * *
>
> *Swindon*
>
> * *
>
> *SN2 2GZ*
>
> * *
>
> *Tel: 01793 414880 Fax: 01793 414770*
>
> * *
>
> *e-mail: [log in to unmask]
> <mailto:[log in to unmask]> *
>
> * *
>
> *Heritage Information Partnerships
> <http://www.english-heritage.org.uk/server/show/nav.8332>*
>
> * *
>
> *HER Forum email list
> <http://www.jiscmail.ac.uk/lists/HERFORUM.html>*
>
> * *
>
> * *
>
> *
> This email contains information intended for the addressee only.
> It may be
> confidential and may be the subject of legal and/or professional
> privilege.
> Any dissemination, distribution, copyright or use of this
> communication
> without prior permission of the addressee is strictly
> prohibited. Any views
> or opinions presented are solely those of the author and do not
> necessarily
> represent those of the Lake District National Park Authority.
> Although this
> email and any attachments are believed to be free of any virus
> or other
> defects which might affect any computer or IT system into which
> they are
> received, no responsibility is accepted by the Lake District
> National Park
> Authority for any loss or damage arising in any way from the
> receipt or use
> thereof. Computer systems of this Authority may be monitored and
> communications carried out on them recorded, to secure the effective
> operation of the system and for other lawful purposes.
>
> *
|