From c200377bbb3bc881b88bc69972495ee1df1d87e9 Mon Sep 17 00:00:00 2001
From: tipaul
Date: Thu, 2 Dec 2004 16:37:12 +0000
Subject: [PATCH] cataloguing, in isbnsearch, after searching a title/ISBN, the
librarian can choose the framework (+ it's a cataloguing screen, not an
acquisition one)
---
acqui.simple/isbnsearch.pl | 15 ++++++--
.../default/en/acqui.simple/addbooks.tmpl | 5 +--
.../default/en/acqui.simple/isbnsearch.tmpl | 34 +++++++++++--------
3 files changed, 36 insertions(+), 18 deletions(-)
diff --git a/acqui.simple/isbnsearch.pl b/acqui.simple/isbnsearch.pl
index 742d2563dc..8955080ebd 100755
--- a/acqui.simple/isbnsearch.pl
+++ b/acqui.simple/isbnsearch.pl
@@ -20,12 +20,12 @@
use strict;
use CGI;
use C4::Auth;
-# use C4::Catalogue;
use C4::Biblio;
use C4::Search;
use C4::Output;
use C4::Interface::CGI::Output;
use HTML::Template;
+use C4::Koha;
my $input = new CGI;
my $isbn = $input->param('isbn');
@@ -151,6 +151,16 @@ else {
}
+ # get framework list
+ my $frameworks = getframeworks;
+ my @frameworkcodeloop;
+ foreach my $thisframeworkcode (keys %$frameworks) {
+ my %row =(value => $thisframeworkcode,
+ frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'},
+ );
+ push @frameworkcodeloop, \%row;
+ }
+
$template->param(
isbn => $isbn,
title => $title,
@@ -162,7 +172,8 @@ else {
numbers => \@numbers,
term => $term,
value => $value,
- NOTMARC => !$marc_p
+ NOTMARC => !$marc_p,
+ frameworkcodeloop => \@frameworkcodeloop,
);
print $input->header(
diff --git a/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbooks.tmpl b/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbooks.tmpl
index d8f7924c2e..cf49e2892a 100644
--- a/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbooks.tmpl
+++ b/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbooks.tmpl
@@ -27,7 +27,8 @@
-
+
+
@@ -37,4 +38,4 @@
Otherwise, a biblio can be added from scratch.
-
+
diff --git a/koha-tmpl/intranet-tmpl/default/en/acqui.simple/isbnsearch.tmpl b/koha-tmpl/intranet-tmpl/default/en/acqui.simple/isbnsearch.tmpl
index 7f0bfab52a..15234b27a9 100644
--- a/koha-tmpl/intranet-tmpl/default/en/acqui.simple/isbnsearch.tmpl
+++ b/koha-tmpl/intranet-tmpl/default/en/acqui.simple/isbnsearch.tmpl
@@ -1,21 +1,21 @@
-
+
-
Biblio Search Results
+
Biblio Search Results
-
You searched on ISBN title
+
You searched on ISBN title
results found
Results to displayed
-
Biblios in koha
+
Biblios in koha