Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Implement links into opac

2005-08-05
2013-05-30
  • hallo,

    i have implement 2 links into opac.

    1. all key words
    2. all articles

    You must change 3 Files:

    locale/de/navbars.php (line 97):

    < $trans["catalogSearchAll"]         = "\$text = 'Alle Artikel';";
    < $trans["catalogSearchAllKeyWords"]  = "\$text = 'Alle Schlagwrter';";

    locale/en/navbars.php (line 97):

    < $trans["catalogSearchAll"]         = "\$text = 'All Articles';";
    < $trans["catalogSearchAllKeyWords"]  = "\$text = 'All Key Words';";

    navbars/ opac.php (line 10):

    <script language="JavaScript" type="text/javascript">
    <!--

    <?php if ($nav == "home") { ?>
    function pageAll()
    {
      document.phrasesearch.submit();
    }
    function pageAllSubject()
    {
      document.browsesubject.submit();
    }
    <?php } else { ?>
    function pageAll()
    {
      document.pageAllForm.submit();
    }
    function pageAllSubject()
    {
      document.pageAllSubjectForm.submit();
    }
    <?php } ?>
    -->
    </script>

    navbars/ opac.php (line 10):

    <?php if ($nav != "home") { ?>
    <form name="pageAllForm" method="POST" action="../shared/biblio_search.php">
      <input type="hidden" name="searchType" value="title">
      <input type="hidden" name="searchText" value="">
      <input type="hidden" name="sortBy" value="default">
      <input type="hidden" name="lookup" value="N">
      <input type="hidden" name="tab" value="opac">
    <?php } ?>
      <a href="javascript:pageAll()"><?php echo $navLoc->getText("catalogSearchAll"); ?></a><br>
    <?php if ($nav != "home") { ?>
    </form>
    <?php } ?>

    <?php if ($nav != "home") { ?>
    <form name="pageAllSubjectForm" method="POST" action="../shared/biblio_browse.php">
      <input type="hidden" name="searchText" value="">
      <input type="hidden" name="lookup" value="N">
      <input type="hidden" name="page" value="1">
      <input type="hidden" name="tab" value="opac">
    <?php } ?>
      <a href="javascript:pageAllSubject()"><?php echo $navLoc->getText("catalogSearchAllKeyWords"); ?></a><br>
    <?php if ($nav != "home") { ?>
    </form>
    <?php } ?>

    Have fun ;)

    greetings from Germany
    Gordon Franke