Widget: Adlib simple search: verschil tussen versies

Uit MediaWikiGids
Ga naar: navigatie, zoeken
(Nieuwe pagina aangemaakt met '<noinclude>Ontwikkeling om eenvoudig zoekformulier voor Adlib te maken</noinclude> <includeonly> <div id="ais-master"> <input id="ais-base-url" type="hidden" va...')
 
 
(13 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>
 
<div id="ais-master">
 
    <input id="ais-base-url" type="hidden" value="http://theatercollectie.uva.nl:80/" />
 
<div id="ais-main-content">
 
  
  <div id="ais-search-simple" class="ais-form">
+
This widget allows you to add a simple search form to your wiki page, which enable you to search in Adlib (UvA).
    <form action="http://theatercollectie.uva.nl/search/simple" class="ais-top-border" method="post">
 
    <fieldset>
 
      <ul>
 
        <li class="form-row first-row">
 
          <div class="all">
 
            <div class="ais-float-dynamic"><label class="form-label ais-float-dynamic">Zoek in</label></div>
 
  
<ul class="ais-float-dynamic" title="Selecteer de database(s) waarin u wilt zoeken">
+
== Using this widget ==
 +
To insert this widget, use the following code:
  
   <li>
+
   <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
    <input checked="checked" class="" 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 for="Museumcollectie">Museumcollectie</label>
 
    <input id="DatabaseChoices_0__Name" name="DatabaseChoices[0].Name" type="hidden" value="collect" />
 
  
  </li>
+
== Parameters ==
 +
* No parameters required
  
  <li>
 
    <input checked="checked" class="" 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 for="Bibliotheekcatalogus">Bibliotheekcatalogus</label>
 
    <input id="DatabaseChoices_1__Name" name="DatabaseChoices[1].Name" type="hidden" value="fullCatalogue" />
 
  
  </li>
+
== 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}}'''.
  
  <li>
+
Source: Proprietary development
    <input checked="checked" class="" 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 for="Audiovisueel">Audiovisueel</label>
 
    <input id="DatabaseChoices_2__Name" name="DatabaseChoices[2].Name" type="hidden" value="audioVisuals" />
 
  
  </li>
+
Changes to  v 01:
 +
* ...
  
  <li>
 
    <input checked="checked" class="" 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 for="Archieven">Archieven</label>
 
    <input id="DatabaseChoices_3__Name" name="DatabaseChoices[3].Name" type="hidden" value="archive" />
 
  
  </li>
+
Versie: 1
 +
Author: [[Gebruiker:bmulckhu|Bart Mulckhuijse]]
  
   <li>
+
[[Categorie:Alle Widgets]]</noinclude>
     <input checked="checked" class="" 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" />
+
<includeonly>
     <label for="Producties">Producties</label>
+
    <input id="ais-base-url" type="hidden" value="http://theatercollectie.uva.nl:80/" />
 +
    <form action="http://theatercollectie.uva.nl/search/simple" class="" method="post" style="width:100%;">
 +
    <fieldset>
 +
<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 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" />
 +
    <label class="form-check-label" for="Bibliotheekcatalogus">Bibliotheekcatalogus</label>
 +
    <input id="DatabaseChoices_1__Name" name="DatabaseChoices[1].Name" type="hidden" value="fullCatalogue" />
 +
  </div>
 +
  <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" />
 +
    <label class="form-check-label" for="Audiovisueel">Audiovisueel</label>
 +
    <input id="DatabaseChoices_2__Name" name="DatabaseChoices[2].Name" type="hidden" value="audioVisuals" />
 +
  </div>
 +
  <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" />
 +
    <label class="form-check-label" for="Archieven">Archieven</label>
 +
    <input id="DatabaseChoices_3__Name" name="DatabaseChoices[3].Name" type="hidden" value="archive" />
 +
  </div>
 +
  <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" />
 +
     <label class="form-check-label" for="Producties">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>
   </li>
+
   <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" />
   <li>
+
     <label class="form-check-label" for="Circussen_1765-2010">Circussen 1765-2010</label>
     <input checked="checked" class="" 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 for="Circussen_1765-2010">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>
  
  </li>
+
</div> <!-- Eof column -->
 +
</div>  <!-- Eof Row -->
 +
</div> <!-- Eof Container -->
  
</ul><span class="field-validation-valid" data-valmsg-for="DatabaseChoices" data-valmsg-replace="true"></span>
+
<div class="row" style="display:flex;">
          </div>
+
  <div class="col-sm" style="flex-grow: 8;">
        </li>
 
  
<li class="form-row">
 
  <div class="all">
 
 
     <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" 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 class="col-sm" style="flex: none; width: 10px;"></div>
     <div class="search-group group">
+
  <div class="col-sm" style="flex: none;">
 
+
     <button type="submit" class="btn btn-primary" title="Zoeken" value="Zoeken">Zoeken</button>
 
 
      <div class="search-group input">
 
        <input placeholder="Voer trefwoorden in" type="text" class="simplesearchbox" autocomplete="off" value="" name="Fields[0].Value" id="Fields_0__Value" aria-autocomplete="list" aria-haspopup="true">
 
      </div>
 
    </div>
 
     <input type="submit" value="Zoeken" title="Zoeken" class="ais-button-cursor" />
 
 
 
 
   </div>
 
   </div>
</li>
+
</div>
 
 
      </ul>
 
 
     </fieldset>
 
     </fieldset>
  
 
     </form>
 
     </form>
 
+
</includeonly>
<!-- -->
 
</div>
 
</div>
 
</div>
 
</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