Widget: Adlib simple search: verschil tussen versies

Uit MediaWikiGids
Ga naar: navigatie, zoeken
 
(12 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
<noinclude>Ontwikkeling om eenvoudig zoekformulier voor Adlib te maken</noinclude>
+
<noinclude>Ontwikkeling om eenvoudig zoekformulier voor Adlib te maken.
<includeonly>
+
 
 +
This widget allows you to add a simple search form to your wiki page, which enable you to search in Adlib (UvA).
 +
 
 +
== Using this widget ==
 +
To insert this widget, use the following code:
 +
 
 +
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
 +
 
 +
== Parameters ==
 +
* No parameters required
 +
 
 +
 
 +
== Copy to your site ==
 +
To use this widget on your site, just install the [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''.
  
    <input id="ais-base-url" type="hidden" value="http://theatercollectie.uva.nl:80/" />
+
Source: Proprietary development
  
 +
Changes to  v 01:
 +
* ...
  
    <form action="http://theatercollectie.uva.nl/search/simple" class="" method="post">
 
    <fieldset>
 
  
  <div class="row">
+
Versie: 1
    <div class="col">
+
Author: [[Gebruiker:bmulckhu|Bart Mulckhuijse]]
  <label class="form-label">Zoek in</label></div>
 
  
  <div class="form-check">
+
[[Categorie:Alle Widgets]]</noinclude>
    <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required." id="DatabaseChoices_0__Selected" name="DatabaseChoices[0].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[0].Selected" type="hidden" value="false" />
+
<includeonly>
    <label class="form-check-label" for="Museumcollectie">
+
    <input id="ais-base-url" type="hidden" value="http://theatercollectie.uva.nl:80/" />
      Museumcollectie
+
    <form action="http://theatercollectie.uva.nl/search/simple" class="" method="post" style="width:100%;">
    </label>
+
    <fieldset>
    <input id="DatabaseChoices_0__Name" name="DatabaseChoices[0].Name" type="hidden" value="collect" />
+
<div class="container-fluid">
 +
      <div class="row">
 +
        <div class="col-sm-3">
 +
        <label class="form-label">Zoek in:</label></div>
 +
        <div class="col-sm-9">
 +
        <div class="form-check">
 +
        <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required." id="DatabaseChoices_0__Selected" name="DatabaseChoices[0].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[0].Selected" type="hidden" value="false" />
 +
        <label class="form-check-label" for="Museumcollectie">Museumcollectie</label>
 +
        <input id="DatabaseChoices_0__Name" name="DatabaseChoices[0].Name" type="hidden" value="collect" />
 
   </div>
 
   </div>
 
 
   <div class="form-check">
 
   <div class="form-check">
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_1__Selected" name="DatabaseChoices[1].Selected" type="checkbox" value="true"><input name="DatabaseChoices[1].Selected" type="hidden" value="false" />
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_1__Selected" name="DatabaseChoices[1].Selected" type="checkbox" value="true"><input name="DatabaseChoices[1].Selected" type="hidden" value="false" />
     <label class="form-check-label" for="Bibliotheekcatalogus">
+
     <label class="form-check-label" for="Bibliotheekcatalogus">Bibliotheekcatalogus</label>
      Bibliotheekcatalogus
 
    </label>
 
 
     <input id="DatabaseChoices_1__Name" name="DatabaseChoices[1].Name" type="hidden" value="fullCatalogue" />
 
     <input id="DatabaseChoices_1__Name" name="DatabaseChoices[1].Name" type="hidden" value="fullCatalogue" />
 
   </div>
 
   </div>
 
 
   <div class="form-check">
 
   <div class="form-check">
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_2__Selected" name="DatabaseChoices[2].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[2].Selected" type="hidden" value="false" />
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_2__Selected" name="DatabaseChoices[2].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[2].Selected" type="hidden" value="false" />
     <label class="form-check-label" for="Audiovisueel">
+
     <label class="form-check-label" for="Audiovisueel">Audiovisueel</label>
      Audiovisueel
 
    </label>
 
 
     <input id="DatabaseChoices_2__Name" name="DatabaseChoices[2].Name" type="hidden" value="audioVisuals" />
 
     <input id="DatabaseChoices_2__Name" name="DatabaseChoices[2].Name" type="hidden" value="audioVisuals" />
 
   </div>
 
   </div>
 
 
   <div class="form-check">
 
   <div class="form-check">
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_3__Selected" name="DatabaseChoices[3].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[3].Selected" type="hidden" value="false" />
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_3__Selected" name="DatabaseChoices[3].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[3].Selected" type="hidden" value="false" />
     <label class="form-check-label" for="Archieven">
+
     <label class="form-check-label" for="Archieven">Archieven</label>
      Archieven
 
    </label>
 
 
     <input id="DatabaseChoices_3__Name" name="DatabaseChoices[3].Name" type="hidden" value="archive" />
 
     <input id="DatabaseChoices_3__Name" name="DatabaseChoices[3].Name" type="hidden" value="archive" />
 
   </div>
 
   </div>
 
 
   <div class="form-check">
 
   <div class="form-check">
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_4__Selected" name="DatabaseChoices[4].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[4].Selected" type="hidden" value="false" />
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_4__Selected" name="DatabaseChoices[4].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[4].Selected" type="hidden" value="false" />
     <label class="form-check-label" for="Producties">
+
     <label class="form-check-label" for="Producties">Producties</label>
      Producties
 
    </label>
 
 
     <input id="DatabaseChoices_4__Name" name="DatabaseChoices[4].Name" type="hidden" value="productions" />
 
     <input id="DatabaseChoices_4__Name" name="DatabaseChoices[4].Name" type="hidden" value="productions" />
 
   </div>
 
   </div>
 
 
   <div class="form-check">
 
   <div class="form-check">
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_5__Selected" name="DatabaseChoices[5].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[5].Selected" type="hidden" value="false" />
 
     <input checked="checked" class="form-check-input" data-val="true" data-val-required="The Selected field is required."  id="DatabaseChoices_5__Selected" name="DatabaseChoices[5].Selected" type="checkbox" value="true" ><input name="DatabaseChoices[5].Selected" type="hidden" value="false" />
     <label class="form-check-label" for="Circussen_1765-2010">
+
     <label class="form-check-label" for="Circussen_1765-2010">Circussen 1765-2010</label>
      Circussen 1765-2010
 
    </label>
 
 
     <input id="DatabaseChoices_5__Name" name="DatabaseChoices[5].Name" type="hidden" value="circus" />
 
     <input id="DatabaseChoices_5__Name" name="DatabaseChoices[5].Name" type="hidden" value="circus" />
 
   </div>
 
   </div>
Regel 62: Regel 67:
 
</div> <!-- Eof column -->
 
</div> <!-- Eof column -->
 
</div>  <!-- Eof Row -->
 
</div>  <!-- Eof Row -->
 +
</div> <!-- Eof Container -->
  
<div class="row">
+
<div class="row" style="display:flex;">
   <div class="col-auto">
+
   <div class="col-sm" style="flex-grow: 8;">
  
 
     <input data-val="true" data-val-required="The SearchInField field is required." id="Fields_0__SearchInField" name="Fields[0].SearchInField" type="hidden" value="False" />
 
     <input data-val="true" data-val-required="The SearchInField field is required." id="Fields_0__SearchInField" name="Fields[0].SearchInField" type="hidden" value="False" />
 
     <input id="Fields_0__FieldName" name="Fields[0].FieldName" type="hidden" value="Search_SearchSimple_FieldLabel" />
 
     <input id="Fields_0__FieldName" name="Fields[0].FieldName" type="hidden" value="Search_SearchSimple_FieldLabel" />
     <input class="form-control mb-2" placeholder="Voer trefwoorden in" type="text" autocomplete="off" value="" name="Fields[0].Value" id="Fields_0__Value" aria-autocomplete="list" aria-haspopup="true">
+
     <input class="form-control mb-2" style="width:100%;" placeholder="Voer trefwoorden in" type="text" autocomplete="off" value="" name="Fields[0].Value" id="Fields_0__Value" aria-autocomplete="list" aria-haspopup="true">
 
   </div>
 
   </div>
   <div class="col-auto">
+
   <div class="col-sm" style="flex: none; width: 10px;"></div>
     <button type="submit" class="btn btn-primary" title="Zoeken" value="Zoeken">Submit</button>
+
  <div class="col-sm" style="flex: none;">
 +
     <button type="submit" class="btn btn-primary" title="Zoeken" value="Zoeken">Zoeken</button>
 
   </div>
 
   </div>
 
</div>
 
</div>
Regel 77: Regel 84:
  
 
     </form>
 
     </form>
 
 
</includeonly>
 
</includeonly>

Huidige versie van 23 apr 2020 om 12:18

Ontwikkeling om eenvoudig zoekformulier voor Adlib te maken.

This widget allows you to add a simple search form to your wiki page, which enable you to search in Adlib (UvA).

Using this widget

To insert this widget, use the following code:

 {{#widget:Adlib simple search}}

Parameters

  • No parameters required


Copy to your site

To use this widget on your site, just install the MediaWiki Widgets extension and the copy full source code of this page to your wiki, as an article called Widget:Adlib simple search.

Source: Proprietary development

Changes to v 01:

  • ...


Versie: 1
Author: Bart Mulckhuijse