View | Details | Raw Unified | Return to bug 5791
Collapse All | Expand All

(-)a/C4/Biblio.pm (+1 lines)
Lines 751-756 Return the ISBD view which can be included in opac and intranet Link Here
751
sub GetISBDView {
751
sub GetISBDView {
752
    my ( $biblionumber, $template ) = @_;
752
    my ( $biblionumber, $template ) = @_;
753
    my $record   = GetMarcBiblio($biblionumber);
753
    my $record   = GetMarcBiblio($biblionumber);
754
    return undef unless defined $record;
754
    my $itemtype = &GetFrameworkCode($biblionumber);
755
    my $itemtype = &GetFrameworkCode($biblionumber);
755
    my ( $holdingbrtagf, $holdingbrtagsubf ) = &GetMarcFromKohaField( "items.holdingbranch", $itemtype );
756
    my ( $holdingbrtagf, $holdingbrtagsubf ) = &GetMarcFromKohaField( "items.holdingbranch", $itemtype );
756
    my $tagslib = &GetMarcStructure( 1, $itemtype );
757
    my $tagslib = &GetMarcStructure( 1, $itemtype );
(-)a/catalogue/ISBDdetail.pl (+9 lines)
Lines 70-75 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
70
# my @fields = $record->fields();
70
# my @fields = $record->fields();
71
my $res = GetISBDView($biblionumber, "intranet");
71
my $res = GetISBDView($biblionumber, "intranet");
72
72
73
if ( not defined $res ) {
74
	# biblionumber invalid -> report and exit
75
	$template->param( unknownbiblionumber => 1,
76
				biblionumber => $biblionumber
77
	);
78
	output_html_with_http_headers $query, $cookie, $template->output;
79
	exit;
80
}
81
73
# count of item linked with biblio
82
# count of item linked with biblio
74
my $itemcount = GetItemsCount($biblionumber);
83
my $itemcount = GetItemsCount($biblionumber);
75
$template->param( count => $itemcount);
84
$template->param( count => $itemcount);
(-)a/catalogue/MARCdetail.pl (-4 / +14 lines)
Lines 68-77 my $popup = Link Here
68
  ;    # if set to 1, then don't insert links, it's just to show the biblio
68
  ;    # if set to 1, then don't insert links, it's just to show the biblio
69
my $subscriptionid = $query->param('subscriptionid');
69
my $subscriptionid = $query->param('subscriptionid');
70
70
71
my $tagslib = &GetMarcStructure(1,$frameworkcode);
72
73
my $record = GetMarcBiblio($biblionumber);
74
my $biblio = GetBiblioData($biblionumber);
75
# open template
71
# open template
76
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
72
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
77
    {
73
    {
Lines 84-89 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
84
    }
80
    }
85
);
81
);
86
82
83
my $record = GetMarcBiblio($biblionumber);
84
85
if ( not defined $record ) {
86
    # biblionumber invalid -> report and exit
87
    $template->param( unknownbiblionumber => 1,
88
                biblionumber => $biblionumber
89
    );
90
    output_html_with_http_headers $query, $cookie, $template->output;
91
    exit;
92
}
93
94
my $tagslib = &GetMarcStructure(1,$frameworkcode);
95
my $biblio = GetBiblioData($biblionumber);
96
87
#count of item linked
97
#count of item linked
88
my $itemcount = GetItemsCount($biblionumber);
98
my $itemcount = GetItemsCount($biblionumber);
89
$template->param( count => $itemcount,
99
$template->param( count => $itemcount,
(-)a/catalogue/labeledMARCdetail.pl (-3 / +12 lines)
Lines 37-45 my $popup = Link Here
37
  $query->param('popup')
37
  $query->param('popup')
38
  ;    # if set to 1, then don't insert links, it's just to show the biblio
38
  ;    # if set to 1, then don't insert links, it's just to show the biblio
39
39
40
my $tagslib = GetMarcStructure(1,$frameworkcode);
41
my $record = GetMarcBiblio($biblionumber);
42
my $biblio = GetBiblioData($biblionumber);
43
# open template
40
# open template
44
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
41
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
45
    {
42
    {
Lines 52-57 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
52
    }
49
    }
53
);
50
);
54
51
52
my $record = GetMarcBiblio($biblionumber);
53
if ( not defined $record ) {
54
    # biblionumber invalid -> report and exit
55
    $template->param( unknownbiblionumber => 1,
56
                biblionumber => $biblionumber
57
    );
58
    output_html_with_http_headers $query, $cookie, $template->output;
59
    exit;
60
}
61
my $tagslib = GetMarcStructure(1,$frameworkcode);
62
my $biblio = GetBiblioData($biblionumber);
63
55
#count of item linked
64
#count of item linked
56
my $itemcount = GetItemsCount($biblionumber);
65
my $itemcount = GetItemsCount($biblionumber);
57
$template->param( count => $itemcount,
66
$template->param( count => $itemcount,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl (-4 / +7 lines)
Lines 1-5 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
<title>Koha &rsaquo; Catalog &rsaquo; ISBD Details for <!-- TMPL_VAR NAME="title" --></title>
2
<title>Koha &rsaquo; Catalog &rsaquo; <!-- TMPL_IF NAME="unknownbiblionumber" -->Unknown record<!-- TMPL_ELSE -->ISBD Details for <!-- TMPL_VAR NAME="title" --><!-- /TMPL_IF --></title>
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
</head>
4
</head>
5
<body>
5
<body>
Lines 7-16 Link Here
7
<!-- TMPL_INCLUDE NAME="header.inc" -->
7
<!-- TMPL_INCLUDE NAME="header.inc" -->
8
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
8
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
9
9
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; ISBD Details for <i><!-- TMPL_VAR NAME="biblionumber" --></i></div>
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; <!-- TMPL_IF NAME="unknownbiblionumber" -->Unknown record<!-- TMPL_ELSE --> ISBD Details for <i><!-- TMPL_VAR NAME="biblionumber" --></i><!-- /TMPL_IF --></div>
11
11
12
<div id="doc3" class="yui-t2">
12
<div id="doc3" class="yui-t2">
13
   
13
14
<!-- TMPL_IF NAME="unknownbiblionumber" -->
15
	<div class="dialog message">The record you requested does not exist (<!-- TMPL_VAR NAME="biblionumber" -->).</div>
16
<!-- TMPL_ELSE -->
14
   <div id="bd">
17
   <div id="bd">
15
	<div id="yui-main">
18
	<div id="yui-main">
16
	<div class="yui-b">
19
	<div class="yui-b">
Lines 20-30 Link Here
20
		<!-- TMPL_VAR NAME="ISBD" -->
23
		<!-- TMPL_VAR NAME="ISBD" -->
21
	</div>
24
	</div>
22
25
23
24
</div>
26
</div>
25
</div>
27
</div>
26
<div class="yui-b">
28
<div class="yui-b">
27
<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
29
<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
28
</div>
30
</div>
31
<!-- /TMPL_IF -->
29
</div>
32
</div>
30
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
33
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tmpl (-3 / +6 lines)
Lines 1-5 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
<title>Koha &rsaquo; Catalog &rsaquo; MARC Details for <!-- TMPL_VAR NAME="bibliotitle" --></title>
2
<title>Koha &rsaquo; Catalog &rsaquo; <!-- TMPL_IF NAME="unknownbiblionumber" -->Unknown record<!-- TMPL_ELSE -->MARC Details for <!-- TMPL_VAR NAME="bibliotitle" --><!-- /TMPL_IF --></title>
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
<script type="text/javascript">
4
<script type="text/javascript">
5
//<![CDATA[
5
//<![CDATA[
Lines 21-30 function Changefwk(FwkList) { Link Here
21
<!-- TMPL_INCLUDE NAME="header.inc" -->
21
<!-- TMPL_INCLUDE NAME="header.inc" -->
22
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
22
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
23
23
24
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; MARC Details for <i><!-- TMPL_VAR NAME="bibliotitle" ESCAPE="html" --></i></div>
24
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>  &rsaquo; <!-- TMPL_IF NAME="unknownbiblionumber" -->Unknown record<!-- TMPL_ELSE -->MARC Details for <i><!-- TMPL_VAR NAME="bibliotitle" ESCAPE="html" --></i><!-- /TMPL_IF --></div>
25
25
26
<div id="doc3" class="yui-t2">
26
<div id="doc3" class="yui-t2">
27
27
<!-- TMPL_IF NAME="unknownbiblionumber" -->
28
    <div class="dialog message">The record you requested does not exist (<!-- TMPL_VAR NAME="biblionumber" -->).</div>
29
<!-- TMPL_ELSE -->
28
   <div id="bd">
30
   <div id="bd">
29
	<div id="yui-main">
31
	<div id="yui-main">
30
	<div class="yui-b">
32
	<div class="yui-b">
Lines 404-408 function Changefwk(FwkList) { Link Here
404
<div class="yui-b">
406
<div class="yui-b">
405
<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
407
<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
406
</div>
408
</div>
409
<!-- /TMPL_IF -->
407
</div>
410
</div>
408
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
411
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tmpl (-3 / +8 lines)
Lines 1-6 Link Here
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
1
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2
2
3
	<title>Koha &rsaquo; Catalog &rsaquo; Labeled MARC Details for <!-- TMPL_VAR NAME="bibliotitle" --></title>
3
	<title>Koha &rsaquo; Catalog &rsaquo; <!-- TMPL_IF NAME="unknownbiblionumber" -->Unknown record<!-- TMPL_ELSE -->Labeled MARC Details for <!-- TMPL_VAR NAME="bibliotitle" --><!-- /TMPL_IF --></title>
4
4
5
	<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5
	<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6
6
Lines 22-31 Link Here
22
	<div id="breadcrumbs">
22
	<div id="breadcrumbs">
23
		<a href="/cgi-bin/koha/mainpage.pl">Home</a>
23
		<a href="/cgi-bin/koha/mainpage.pl">Home</a>
24
		&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
24
		&rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
25
		&rsaquo; MARC Details for <i><!-- TMPL_VAR NAME="bibliotitle" --></i>
25
		&rsaquo; <!-- TMPL_IF NAME="unknownbiblionumber" -->Unknown record
26
				<!-- TMPL_ELSE -->MARC Details for <i><!-- TMPL_VAR NAME="bibliotitle" --></i>
27
				<!-- /TMPL_IF -->
26
	</div>
28
	</div>
27
29
28
	<div id="doc3" class="yui-t2">
30
	<div id="doc3" class="yui-t2">
31
<!-- TMPL_IF NAME="unknownbiblionumber" -->
32
		<div class="dialog message">The record you requested does not exist (<!-- TMPL_VAR NAME="biblionumber" -->).</div>
33
<!-- TMPL_ELSE -->
29
		<div id="bd">
34
		<div id="bd">
30
			<div id="yui-main">
35
			<div id="yui-main">
31
				<div class="yui-b">
36
				<div class="yui-b">
Lines 54-58 Link Here
54
				<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
59
				<!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
55
60
56
		</div>
61
		</div>
62
<!-- /TMPL_IF -->
57
	</div>
63
	</div>
58
	<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
64
	<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
59
- 

Return to bug 5791