@@ -244,7 +244,7 @@ <h1 style="padding-left:1em; color:white; margin-top:3em;">Advanced Search</h1>
244244 < div class ="form-group ">
245245 < div class ="col-sm-9 col-md-10 col-sm-offset-3 col-md-offset-2 ">
246246 Limit search to place of origin:
247- < input type ="checkbox " id ="origPlaceLimit " name ="origPlaceLimit " value ="true ">
247+ < input type ="checkbox " id ="origPlace " name ="origPlace " value ="true ">
248248 </ div >
249249 </ div >
250250
@@ -339,7 +339,8 @@ <h2 style="margin-bottom: 20px;">Search Results</h2>
339339 if ( urlParams . get ( 'shelfmark' ) ) $ ( '#shelfmark' ) . val ( urlParams . get ( 'shelfmark' ) ) ;
340340 if ( urlParams . get ( 'decorations' ) ) $ ( '#decorations' ) . val ( urlParams . get ( 'decorations' ) ) ;
341341 if ( urlParams . get ( 'decorationsType' ) ) $ ( '#decorationsType' ) . val ( urlParams . get ( 'decorationsType' ) ) ;
342-
342+ if ( urlParams . get ( 'origPlace' ) ) $ ( '#placeName' ) . val ( urlParams . get ( 'origPlace' ) ) ;
343+
343344 $ ( '#toggleSearch' ) . on ( 'click' , function ( ) {
344345 $ ( '#advancedSearch' ) . slideToggle ( ) ;
345346 } ) ;
@@ -360,7 +361,8 @@ <h2 style="margin-bottom: 20px;">Search Results</h2>
360361 persName : $ ( '#persName' ) . val ( ) ,
361362 shelfmark : $ ( '#shelfmark' ) . val ( ) ,
362363 decorations : $ ( '#decorations' ) . val ( ) ,
363- decorationsType : $ ( '#decorationsType' ) . val ( )
364+ decorationsType : $ ( '#decorationsType' ) . val ( ) ,
365+ origPlace : $ ( '#origPlace' ) . is ( ':checked' ) ? $ ( '#placeName' ) . val ( ) : ''
364366 } ;
365367 const params = new URLSearchParams ( ) ;
366368 Object . keys ( searchParams ) . forEach ( key => {
0 commit comments