created: 20200321052332472 modified: 20200322113114896 tags: Skunkworks title: public health agency search bookmarks \define nhagooglesearch(suffix,linktitle) <$list filter="$linktitle$">$linktitle$<$reveal type="match" default="" text="$linktitle$">$suffix$ \end \define nhatext() HEALTH AGENCY LINKS: INTERNATIONAL: WHO (World Health Organization) link YOUR NATION: Type in the name of your nation, region (province/state/county) or city in the text edit box and click on "PAGE LINK FOR..." which will open a Google search for your nation/region/city public health agency(ies) in a new browser tab • IMPORTANT: no need to use quote marks around search terms, if you do, use %22 instead of " Once you find the public health agency of your nation/redion/city, you can copy the URL/web address of the website and paste it into the URL field in the Bookmarks section below to save it for future reference in this app. \end \define nhabookmList() <$view field=title/>: {{nha bookmarks##$(nhabookmIndex)$}}
\end \define nhabookmEditList() <$view field=title/>: {{nha bookmarks##$(nhabookmIndex)$}} <$button>Remove<$action-deletefield $tiddler='nha bookmarks' $field=$(nhabookmIndex)$ $value=''/>
\end \define nhabookmRegEx() $(nhabookmSearch)$(?i) \end \define nhabookmSearchmacro()
    <$list filter="[[nha bookmarks]indexes[]regexp:title[(?i)$(nhabookmSearch)$]]">
  1. <>: <$transclude tiddler="nha bookmarks" index=<>/>
\end \define nhabookmEdit()
    <$list filter="[[nha bookmarks]indexes[]regexp:title[(?i)$(nhabookmSearch)$]]"> <$set name=nhaItem value=<>>
  1. <> <> - <$transclude tiddler="nha bookmarks" index=<>/>
\end \define nhaDeleteButton() <$button set='nha bookmarks##$(nhaItem)$' tooltip='Delete'>{{$:/core/images/delete-button}} \end \define addTerm() <$action-setfield $tiddler='nha bookmarks' $index={{$:/temp/nhabmarks!!nhaname}} $value={{$:/temp/nhabmarks!!nhaurl}}/> <$action-setfield $tiddler='$:/temp/nhabmarks' nhaname='' nhaurl=''/> \end \define dataregex() $(searchterm)$(?i) \end \define nhadatatiddsearch() <$list filter="[[nha bookmarks]indexes[]regexp:title[(?i)$(searchterm)$]]" >
bookmark nameURL
<> <$transclude tiddler="nha bookmarks" index=<>/>
\end !!__HEALTH AGENCY LINKS__:   <$button message="tm-copy-to-clipboard" param=<> tooltip='Use Google Translate to translate tiddler and instructions'><$action-sendmessage $message="tm-open-external-window" $param="https://www.google.com/search?&q=translate%3A+%22paste+%28control-V%29+to+insert+instructions%22&oq=translate%3A+%22paste+%28control-V%29+to+insert+instructions%22 " windowName="_translate" windowFeatures="height=400, width=600"/>TRANSLATE __INTERNATIONAL__: WHO > https://www.who.int/ |YOUR NATION: |<$edit-text tiddler="$:/temp/nhasearch" placeholder="type in your nation" tag="input" type="text"/> |<$set name="gsearch" value={{$:/temp/nhasearch}}><> {{$:/temp/nhasearch}} | //Type in the name of your nation, region (province/state/county) or city in the text edit box and click on "__Page link for__ {{$:/temp/nhasearch}}" which will open a Google search for your nation/region/city public health agency(ies) in a new browser tab//
• __IMPORTANT__: no need to use quote marks around search terms, if you do, use ``%22`` instead of ``"`` Once you find the public health agency of your nation/redion/city, you can copy the URL/web address of the website and paste it into the URL field in the Bookmarks section below to save it for future reference in this app.
__BOOKMARKS EDITOR__: Bookmark name: <$edit-text tiddler='$:/temp/nhabmarks' field='nhaname' placeholder='' tag='input' type='text'/>
//each bookmark name must be unique to prevent a bookmark from being overwritten//

URL: <$edit-text tiddler='$:/temp/nhabmarks' field='nhaurl' placeholder='' tag='input' type='text'/>

<$reveal type='match' state='$:/temp/nhabmarks!!nhaname' text=''> <$button>Add bookmark <$reveal type='nomatch' state='$:/temp/nhabmarks!!nhaname' text=''> <$button actions=<> >Add bookmark <$reveal type='nomatch' state='$:/temp/nhabmarks/editreveal' text='edit'> <$button set='$:/temp/nhabmarks/editreveal' setTo='edit'>Edit bookmarks <$reveal type='match' state='$:/temp/nhabmarks/editreveal' text='edit'> <$button set='$:/temp/nhabmarks/editreveal' setTo='noedit'>Done Editing Search: <$edit-text tiddler='$:/temp/nhabmarks' field='search' placeholder='' tag='input' type='text'/><$button class="tc-btn-rounded" style="margin-left:10px;"><$action-setfield $tiddler="$:/temp/nhabmarks" search="" />{{$:/core/images/close-button}} <$reveal type='nomatch' state='$:/temp/nhabmarks/editreveal' text='edit'>
Type in full or partial wiki name of reference wiki to find its bookmark. <$reveal type='match' state='$:/temp/nhabmarks/editreveal' text='edit'> Click on the trashcan icon to remove a bookmark <$set name='nhabookmSearch' value={{$:/temp/nhabmarks!!search}}> <$reveal type='nomatch' state='$:/temp/nhabmarks/editreveal' text='edit'> <> <$reveal type='match' state='$:/temp/nhabmarks/editreveal' text='edit'> <>
__BOOKMARKS (with annotations)__:
//STILL TO BE DONE: Annotations to be added to Bookmark editor//
Search listing: full, partial name
<$edit-text tiddler='$:/temp/nhabmarkssearch2' field='searchterm' placeholder='a bookmark name' tag='input' type='text' size="16"/><$button class="tc-btn-rounded" style="margin-left:10px;"><$action-setfield $tiddler="$:/temp/nhabmarkssearch2" searchterm="" />{{$:/core/images/close-button}}
<$reveal type='match' state='$:/temp/nhabmarkssearch2!!searchterm' text=''> <$set name='searchterm' value={{$:/temp/nhabmarkssearch2!!searchterm}}> <$reveal type='nomatch' state='$:/temp/nhabmarkssearch2!!searchterm' text=''> <> <$reveal type="nomatch" state="$:/temp/nhabmarkssearch2!!showall2" text="show"> <$button set="$:/temp/nhabmarkssearch2!!showall2" setTo="show" style="margin:0px;">View all bookmarks / annotations <$reveal type="match" state="$:/temp/nhabmarkssearch2!!showall2" text="show"> <$button set="$:/temp/nhabmarkssearch2!!showall2" setTo="hide" class='tc-btn-rounded' style="border:solid 2px;">  X   <$list filter="[[nha bookmarks]indexes[]]" >
bookmark nameURLnotes
<> <$transclude tiddler="nha bookmarks" index=<>/> <$view tiddler="nha bookmarks notes" index=<>/>