[Koha-patches] [PATCH 02/54] MT4588: Adds coins informations to intranet

Chris Cormack chrisc at catalyst.net.nz
Thu Dec 16 12:02:36 CET 2010


This patch reverts the updated FSF address statement in catalogue/MARCdetail.pl.

While fixing that, you could update the copyright statement also :)

Chris


* paul.poulain at biblibre.com (paul.poulain at biblibre.com) wrote:
> From: Paul Poulain <paul.poulain at biblibre.com>
> 
> (written by Matthias Meusburger)
> ---
>  catalogue/ISBDdetail.pl                            |    1 +
>  catalogue/MARCdetail.pl                            |   11 +++--
>  catalogue/detail.pl                                |    2 +
>  .../prog/en/modules/catalogue/ISBDdetail.tmpl      |    6 +++
>  .../prog/en/modules/catalogue/MARCdetail.tmpl      |   44 ++++++++++++++++++-
>  .../prog/en/modules/catalogue/detail.tmpl          |    6 +++
>  6 files changed, 62 insertions(+), 8 deletions(-)
> 
> diff --git a/catalogue/ISBDdetail.pl b/catalogue/ISBDdetail.pl
> index 7ebe8e0..3a4fdc8 100755
> --- a/catalogue/ISBDdetail.pl
> +++ b/catalogue/ISBDdetail.pl
> @@ -90,6 +90,7 @@ $template->param (
>  	isbdview => 1,
>  	z3950_search_params	=> C4::Search::z3950_search_args(GetBiblioData($biblionumber)),
>  	C4::Search::enabled_staff_search_views,
> +    ocoins => GetCOinSBiblio($biblionumber),
>  );
>  
>  output_html_with_http_headers $query, $cookie, $template->output;
> diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl
> index 2dc7b1d..7188a5c 100755
> --- a/catalogue/MARCdetail.pl
> +++ b/catalogue/MARCdetail.pl
> @@ -13,9 +13,9 @@
>  # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
>  # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
>  #
> -# You should have received a copy of the GNU General Public License along
> -# with Koha; if not, write to the Free Software Foundation, Inc.,
> -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
> +# You should have received a copy of the GNU General Public License along with
> +# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
> +# Suite 330, Boston, MA  02111-1307 USA
>  
>  =head1 NAME
>  
> @@ -43,7 +43,6 @@ the items attached to the biblio
>  =cut
>  
>  use strict;
> -#use warnings; FIXME - Bug 2505
>  
>  use C4::Auth;
>  use C4::Context;
> @@ -84,6 +83,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
>      }
>  );
>  
> +$template->param( ocoins => GetCOinSBiblio($biblionumber) );
> +
>  #count of item linked
>  my $itemcount = GetItemsCount($biblionumber);
>  $template->param( count => $itemcount,
> @@ -118,7 +119,7 @@ for ( my $tabloop = 0 ; $tabloop <= 10 ; $tabloop++ ) {
>  
>      # deal with leader
>      unless ( $tagslib->{'000'}->{'@'}->{tab} ne $tabloop )
> -    {    #  or ($tagslib->{'000'}->{'@'}->{hidden} =~ /-7|-4|-3|-2|2|3|5|8/ )) {
> +    {    #  
>          my %subfield_data;
>          $subfield_data{marc_lib}      = $tagslib->{'000'}->{'@'}->{lib};
>          $subfield_data{marc_value}    = $record->leader();
> diff --git a/catalogue/detail.pl b/catalogue/detail.pl
> index abf71ad..10b58da 100755
> --- a/catalogue/detail.pl
> +++ b/catalogue/detail.pl
> @@ -65,6 +65,8 @@ if (C4::Context->preference("XSLTDetailsDisplay") ) {
>  }
>  
>  $template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") );
> +$template->param( ocoins => GetCOinSBiblio($biblionumber) );
> +
>  
>  # some useful variables for enhanced content;
>  # in each case, we're grabbing the first value we find in
> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl
> index 1516268..af16cea 100644
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl
> @@ -16,6 +16,12 @@
>  	<div class="yui-b">
>  <!-- TMPL_INCLUDE NAME="cat-toolbar.inc" -->
>  
> +    <!-- TMPL_IF NAME="ocoins" -->
> +    <!-- COinS / OpenURL -->
> +    <span class="Z3988" title="<!-- TMPL_VAR NAME="ocoins" -->"></span>
> +    <!-- /TMPL_IF -->      
> +
> +
>  	<div id="catalogue_ISBDdetail">
>  		<!-- TMPL_VAR NAME="ISBD" -->
>  	</div>
> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tmpl
> index 8880f8b..7781b6b 100644
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tmpl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tmpl
> @@ -1,6 +1,21 @@
>  <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
>  <title>Koha &rsaquo; Catalog &rsaquo; MARC Details for <!-- TMPL_VAR NAME="bibliotitle" --></title>
>  <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
> +<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
> +<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
> +<script type="text/javascript" id="js">$(document).ready(function() {
> +	$("#table_MARCdetail").tablesorter({
> +		sortList: [[0,0]]
> +	}).tablesorterPager({container: $("#pagertable_MARCdetail"),positionFixed: false,size: 20});
> +}); </script>
> +<style type="text/css">
> + at media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */
> +    .ui-tabs-hide {
> +        display: block;  
> +    }
> +}
> +ul.ui-tabs-nav {display:none;}
> +</style>
>  <script type="text/javascript">
>  //<![CDATA[
>  
> @@ -43,6 +58,11 @@ function Changefwk(FwkList) {
>                              <!-- /TMPL_LOOP -->
>              </select> </b></p>
>  
> +    <!-- TMPL_IF NAME="ocoins" -->
> +    <!-- COinS / OpenURL -->
> +    <span class="Z3988" title="<!-- TMPL_VAR NAME="ocoins" -->"></span>
> +    <!-- /TMPL_IF -->      
> +
>  <div id="bibliotabs" class="toptabs numbered">
>  	<ul>
>              <!-- TMPL_IF name="0XX" -->
> @@ -381,14 +401,32 @@ function Changefwk(FwkList) {
>  
>       <!-- TMPL_IF name="10XX" -->
>      <div id="tab10XX">
> -        <table>
> -                <tr>
> +    <span id="pagertable_MARCdetail" class="pager">
> +	<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
> +		<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
> +		<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
> +		<input type="text" size="5" class="pagedisplay"/>
> +		<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
> +		<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
> +		, entries/page : 
> +		<select class="pagesize">
> +        	<option value="10">10</option>
> +			<option selected="selected" value="20">20</option>
> +			<option value="30">30</option>
> +			<option value="40">40</option>
> +			<option value="50">50</option>
> +			<option value="100">100</option>
> +		</select>
> +	</form>
> +</span>
> +        <table id="table_MARCdetail">
> +                <thead>
>                      <!-- TMPL_LOOP NAME="item_header_loop" -->
>                          <th>
>                              <!-- TMPL_VAR NAME="header_value" -->
>                          </th>
>                      <!-- /TMPL_LOOP -->
> -                </tr>
> +                </thead>
>                  <!-- TMPL_LOOP NAME="item_loop" -->
>                      <tr>
>                          <!-- TMPL_VAR NAME="item_value" -->
> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
> index 273150a..dd3b7ab 100644
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
> @@ -146,6 +146,12 @@ function verify_images() {
>  <!-- TMPL_IF NAME="AmazonEnabled" --><!-- TMPL_IF NAME="AmazonCoverImages" --><div class="yui-u" id="bookcoverimg">
>  <a href="http://www.amazon<!-- TMPL_VAR NAME="AmazonTld" -->/gp/reader/<!-- TMPL_VAR NAME="normalized_isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="normalized_isbn" -->.01.MZZZZZZZ.jpg" alt="" /></a></div><!-- /TMPL_IF --><!-- /TMPL_IF -->
>          
> +    <!-- TMPL_IF NAME="ocoins" -->
> +    <!-- COinS / OpenURL -->
> +    <span class="Z3988" title="<!-- TMPL_VAR NAME="ocoins" -->"></span>
> +    <!-- /TMPL_IF -->
> +   
> + 
>          <div class="yui-u" style="margin-top: 1em;">
>          <ul>
>          <!-- TMPL_IF name="normalized_isbn" -->
> -- 
> 1.7.1
> 
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/

-- 
Chris Cormack
Catalyst IT Ltd.
+64 4 803 2238
PO Box 11-053, Manners St, Wellington 6142, New Zealand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: </pipermail/koha-patches/attachments/20101217/4467bf2b/attachment.pgp>


More information about the Koha-patches mailing list