monperrus / bibtexbrowser

Beautiful publication lists with bibtex and PHP (standalone or in Wordpress)
http://www.monperrus.net/martin/bibtexbrowser/
84 stars 54 forks source link

Button for getting the standard-view (no results) #104

Open LukasCBossert opened 4 years ago

LukasCBossert commented 4 years ago

I am wondering if there is the possibility to have a button which will delete all the search results and the page is shown with all entries as it is when you would refresh it.

Bildschirmfoto 2020-05-14 um 13 42 30

This is what I am playing around with:

  function searchView() {
    ?>
    <!-- added 2020 -->
    <form>
      <INPUT class="input_box" TYPE="button" onClick="" VALUE="see all entries">
    </form>
    <!-- ^^ added 2020 -->
    <form action="?" method="get" target="<?php echo BIBTEXBROWSER_MENU_TARGET;?>">
      <input type="text" name="<?php echo Q_SEARCH; ?>" class="input_box" size="12"/>
      <input type="hidden" name="<?php echo Q_FILE; ?>" value="<?php echo @$_GET[Q_FILE]; ?>"/>
      <!-- <br/> -->
      <input type="submit" value="search" class="input_box"/>
    </form>
    <?php
  }
monperrus commented 4 years ago

It's a great idea! Would you do a pull request? Thanks!

LukasCBossert commented 4 years ago

Just did : https://github.com/monperrus/bibtexbrowser/pull/105