Warning: Big Commit. Fixing Virtual Shelves

* prior to this commit, virtual shelvesn't did not function in
    the OPAC! Now they do, except for deletion from virtual shelves
    in list form
  * I've re-named 'Virtual Shelves' to 'Lists' as per our agreed
    upon convention

  * while vshelves aren't perfect yet, they're in enough of a working
    state for the RC1 now

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Joshua Ferraro 2007-12-23 15:29:54 -05:00
parent 9b14c385cc
commit 85092daa56
30 changed files with 592 additions and 700 deletions

View file

@ -177,9 +177,16 @@ Option 1: run the Zebra processes from the command line:
(note that the path to koha-conf.xml may be different depending on your
installation choices)
Note: the user you run Zebra as will be the only user with write permission
on the Zebra index; in development mode, you may wish to use your system
user.
Zebraqueue Daemon:
$ sudo -u ${KOHA_USER} misc/bin/zebraqueue_daemon.pl
Note: if you are running in this mode, you may wish to defer starting the
zebraqueue until you've run the web installer (see below).
Option 2: run the Zebra processes as daemons, and add to startup process:
Note that references to $SCRIPT_DIR refer to the directory where
@ -218,7 +225,17 @@ Uninstall Instructions
$ sudo rm /etc/init.d/koha-zebra-daemon
$ sudo rm /etc/init.d/koha-zebraqueue-daemon
2. Remove Koha Install Directories
2) Remove Koha Database
# MySQL
$ mysql -u<kohauser> -p<kohapassword>
> drop database koha;
# Zebra Indexes
$ zebraidx -c <prefix>/etc/zebradb/zebra-biblios.cfg -g iso2709 -d biblios init
$ zebraidx -c <prefix>/etc/zebradb/zebra-authorities.cfg -g iso2709 -d authorities init
3) Remove Koha Install Directories
Tested on the following operating environments
==============================================

View file

@ -48,7 +48,7 @@ melm 152$b Authority/format-id
############ HEADINGS ##################
melm 100$a Heading:w,Heading:p,Heading:s, personal-heading,personal-heading:w,personal-heading:s,personal-heading:p
melm 100$a Heading:w,Heading:p,Heading:s,personal-heading,personal-heading:w,personal-heading:s,personal-heading:p
melm 110$a Heading:w,Heading:p,Heading:s,corporate-heading
melm 110$a Heading:w,Heading:p,Heading:s,Conference-heading
melm 115$a Heading:w,Heading:p,Heading:s,Name-geographic
@ -56,9 +56,9 @@ melm 115$a Heading:w,Heading:p,Heading:s,Name-geographic
melm 120$a Heading:w,Heading:p,Heading:s,personal-heading,personal-heading:w,personal-heading:s,personal-heading:p
melm 130$a Heading:w,Heading:p,Heading:s,Title-Uniform,Title-Uniform:w,Title-Uniform:s,Title-Uniform:p
melm 135$a Heading:w,Heading:p,Heading:s,Title-Uniform,Title-Uniform:w,Title-Uniform:s,Title-Uniform:p
melm 150$a Heading:w,Heading:p,Heading:s,Subject-heading, Subject-heading:w,Subject-heading:s,Subject-heading:p
melm 150$a Heading:w,Heading:p,Heading:s,Subject-heading,Subject-heading:w,Subject-heading:s,Subject-heading:p
melm 100 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s, personal-Heading-Entity,personal-Heading-Entity:w,personal-Heading-Entity:s,personal-Heading-Entity:p
melm 100 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,personal-Heading-Entity,personal-Heading-Entity:w,personal-Heading-Entity:s,personal-Heading-Entity:p
melm 110 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,corporate-Heading-Entity
melm 110 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,Conference-Heading-Entity
melm 115 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,Name-geographic-Entity

View file

@ -36,253 +36,253 @@ xpath enable
# pubdate [yyyy] (008/7-10, indexed in year,word,num,sort indexes)
all any
# melm 000 rtype:n:range(data,06,1),Bib-level:w:range(data,07,01)
# melm 000 rtype:n:range(data,06,1),Bib-level:w:range(data,07,01)
xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)
# example: xelm /record/leader l1:w:range(data,0,5),l2:w:range(data,10,2)
melm 001 Control-number
melm 005 Date/time-last-modified
melm 007 Microform-generation:n:range(data,11,1),Material-type,ff7-00:w:range(data,0,1),ff7-01:w:range(data,1,1),ff7-02:w:range(data,2,1),ff7-01-02:w:range(data,0,2)
melm 001 Control-number
melm 005 Date/time-last-modified
melm 007 Microform-generation:n:range(data,11,1),Material-type,ff7-00:w:range(data,0,1),ff7-01:w:range(data,1,1),ff7-02:w:range(data,2,1),ff7-01-02:w:range(data,0,2)
melm 008 date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:n:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)
melm 008 date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:n:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)
melm 010 LC-card-number,Identifier-standard
melm 011 LC-card-number,Identifier-standard
melm 015 BNB-card-number,BGF-number,Number-db,Number-natl-biblio,Identifier-standard
melm 017 Number-legal-deposit,Identifier-standard
melm 018 Identifier-standard
melm 010 LC-card-number,Identifier-standard
melm 011 LC-card-number,Identifier-standard
melm 015 BNB-card-number,BGF-number,Number-db,Number-natl-biblio,Identifier-standard
melm 017 Number-legal-deposit,Identifier-standard
melm 018 Identifier-standard
melm 020$a ISBN:w,Identifier-standard:w
melm 020 ISBN,Identifier-standard
melm 020 ISBN,Identifier-standard
melm 022$a ISSN:w,ISBN:w
melm 022 ISSN,Identifier-standard
melm 023 Identifier-standard
melm 024 Identifier-standard
melm 025 Identifier-standard
melm 027 Report-number,Identifier-standard
melm 028 Number-music-publisher,Identifier-standard
melm 030 CODEN,Identifier-standard
#melm 033 Date
melm 022 ISSN,Identifier-standard
melm 023 Identifier-standard
melm 024 Identifier-standard
melm 025 Identifier-standard
melm 027 Report-number,Identifier-standard
melm 028 Number-music-publisher,Identifier-standard
melm 030 CODEN,Identifier-standard
#melm 033 Date
melm 034 Map-scale
#melm 035 Local-number,Identifier-standard
melm 037 Identifier-standard,Stock-number
#melm 035 Local-number,Identifier-standard
melm 037 Identifier-standard,Stock-number
melm 040 Code-institution,Record-source
melm 041 ln
melm 043 Code-geographic
#melm 046 pubdate
melm 050$b LC-call-number:w, LC-call-number:p, LC-call-number:s
melm 050 LC-call-number:w, LC-call-number:p, LC-call-number:s
melm 052 Geographic-class
melm 060 NLM-call-number
melm 070 NAL-call-number
melm 080 UDC-classification
#melm 046 pubdate
melm 050$b LC-call-number:w,LC-call-number:p,LC-call-number:s
melm 050 LC-call-number:w,LC-call-number:p,LC-call-number:s
melm 052 Geographic-class
melm 060 NLM-call-number
melm 070 NAL-call-number
melm 080 UDC-classification
melm 082 Dewey-classification:w,Dewey-classification:s
melm 086 Number-govt-pub
#melm 942$k LC-card-number:s
#melm 942$k LC-card-number:s
## KOHA SPECIFIC
#melm 090$c Local-number:w
#melm 090$c Local-number:w
#Identifier-standard:w
melm 100$9 Cross-Reference:w,Koha-Auth-Number
melm 100$a Author,Author:p,Author:s,Editor,Author-personal-bibliography,Author-personal-bibliography:p,Author-personal-bibliography:s
melm 100 Author,Author-title,Author-name-personal,Name,Name-and-title,Personal-name
melm 100$9 Cross-Reference:w,Koha-Auth-Number
melm 100$a Author,Author:p,Author:s,Editor,Author-personal-bibliography,Author-personal-bibliography:p,Author-personal-bibliography:s
melm 100 Author,Author-title,Author-name-personal,Name,Name-and-title,Personal-name
melm 110$9 Koha-Auth-Number
melm 110 Author,Author-title,Author-name-corporate,Name,Name-and-title,Corporate-name
melm 110 Author,Author-title,Author-name-corporate,Name,Name-and-title,Corporate-name
melm 111$9 Koha-Auth-Number
melm 111 Author,Author-title,Author-name-corporate,Name,Name-and-title,Conference-name
melm 130$n Thematic-number
melm 130$r Music-key
melm 111 Author,Author-title,Author-name-corporate,Name,Name-and-title,Conference-name
melm 130$n Thematic-number
melm 130$r Music-key
melm 130$9 Koha-Auth-Number
melm 130 Title,Title-uniform
melm 130 Title,Title-uniform
melm 210 Title,Title-abbreviated
melm 211 Title,Title-abbreviated
melm 212 Title,Title-other-variant
melm 214 Title,Title-expanded
melm 222 Title,Title-key
melm 240$r Music-key
melm 240$n Thematic-number
melm 240 Title:w,Title:p,Title-uniform
melm 243$n Thematic-number
melm 243$r Music-key
melm 243 Title:w,Title:p,Title-collective
melm 245$a Title-cover:w,Title-cover:p,Title-cover:s,Title:w,Title:p,Title:s
melm 245$c Author,Author-in-order:w,Author-in-order:p,Author-in-order:s
melm 245$9 Cross-Reference:w,Koha-Auth-Number
melm 245 Title:w,Title:p
melm 246 Title,Title:p,Title-abbreviated,Title-expanded,Title-former
melm 247 Title,Title:p,Title-former,Title-other-variant,Related-periodical
melm 260$a pl:w,pl:p
melm 260$b Publisher:w,Publisher:p
melm 260$c copydate,copydate:s
melm 260 pl
melm 300 Extent:w,Extent:p
melm 400$a Name-and-title
melm 210 Title,Title-abbreviated
melm 211 Title,Title-abbreviated
melm 212 Title,Title-other-variant
melm 214 Title,Title-expanded
melm 222 Title,Title-key
melm 240$r Music-key
melm 240$n Thematic-number
melm 240 Title:w,Title:p,Title-uniform
melm 243$n Thematic-number
melm 243$r Music-key
melm 243 Title:w,Title:p,Title-collective
melm 245$a Title-cover:w,Title-cover:p,Title-cover:s,Title:w,Title:p,Title:s
melm 245$c Author,Author-in-order:w,Author-in-order:p,Author-in-order:s
melm 245$9 Cross-Reference:w,Koha-Auth-Number
melm 245 Title:w,Title:p
melm 246 Title,Title:p,Title-abbreviated,Title-expanded,Title-former
melm 247 Title,Title:p,Title-former,Title-other-variant,Related-periodical
melm 260$a pl:w,pl:p
melm 260$b Publisher:w,Publisher:p
melm 260$c copydate,copydate:s
melm 260 pl
melm 300 Extent:w,Extent:p
melm 400$a Name-and-title
melm 400$t Author-title,Name-and-title,Title,Title-series
melm 400$9 Koha-Auth-Number
melm 400$9 Koha-Auth-Number
melm 400 Author,Author-name-personal,Name,Personal-name
melm 410 Author,Corporate-name
melm 410$a Name-and-title
melm 410 Author,Corporate-name
melm 410$a Name-and-title
melm 410$t Author-title,Title,Title-series
melm 410$9 Koha-Auth-Number
melm 410$9 Koha-Auth-Number
melm 410 Author-name-corporate,Name
melm 411 Author,Conference-name
melm 411$a Name-and-title
#melm 411$t title,author,Author-title,Title-series
melm 411 Author,Conference-name
melm 411$a Name-and-title
#melm 411$t title,author,Author-title,Title-series
melm 411$t Author-title,Title-series
#melm 411 author,Author-name-corporate,Name
#melm 411 author,Author-name-corporate,Name
melm 411 Author-name-corporate,Name
melm 440$a Title-series:w,Title-series:p
melm 440$9 Koha-Auth-Number
melm 440 Title-series:w,Title-series:p,Title,Title-series
melm 490$a Title-series:w,Title-series:p
melm 490 Title,Title-series
melm 490$9 Koha-Auth-Number
melm 440$a Title-series:w,Title-series:p
melm 440$9 Koha-Auth-Number
melm 440 Title-series:w,Title-series:p,Title,Title-series
melm 490$a Title-series:w,Title-series:p
melm 490 Title,Title-series
melm 490$9 Koha-Auth-Number
melm 502 Material-type
melm 505 Note:w,Note:p
melm 510 Indexed-by
melm 520 Abstract:w,Abstract:p
#melm 533$d pubdate,pubdate:s
#melm 541$d Date-of-acquisition,Date-of-acquisition:s
melm 502 Material-type
melm 505 Note:w,Note:p
melm 510 Indexed-by
melm 520 Abstract:w,Abstract:p
#melm 533$d pubdate,pubdate:s
#melm 541$d Date-of-acquisition,Date-of-acquisition:s
melm 600$a Name-and-title,Name,Personal-name,Subject-name-personal,Subject
melm 600$t Name-and-title,Title,Subject
melm 600$a Name-and-title,Name,Personal-name,Subject-name-personal,Subject
melm 600$t Name-and-title,Title,Subject
melm 600$9 Koha-Auth-Number
#melm 600 Name,Personal-name,Subject-heading,Subject-name-personal
#melm 600 Name,Personal-name,Subject-heading,Subject-name-personal
melm 600 Name,Personal-name,Subject-name-personal,Subject
melm 610$a Name-and-title
melm 610$t Name-and-title,Title
melm 610$a Name-and-title
melm 610$t Name-and-title,Title
melm 610$9 Koha-Auth-Number
melm 610 Name,Subject,Corporate-name
melm 611 Conference-name
melm 611$a Name-and-title
melm 611$t Name-and-title,Title
melm 610 Name,Subject,Corporate-name
melm 611 Conference-name
melm 611$a Name-and-title
melm 611$t Name-and-title,Title
melm 611$9 Koha-Auth-Number
melm 611 Name,Subject
melm 630$n Thematic-number
melm 630$r Music-key
melm 611 Name,Subject
melm 630$n Thematic-number
melm 630$r Music-key
melm 630$9 Koha-Auth-Number
melm 630 Subject
melm 650$9 Koha-Auth-Number
melm 650 Subject,Subject:p
melm 651$9 Koha-Auth-Number
melm 651 Name-geographic,Subject,Subject:p
melm 652$9 Koha-Auth-Number
#melm 652 subject-heading,subject-heading:p
melm 653$9 Koha-Auth-Number
melm 653 Subject,Subject:p
melm 654$9 Koha-Auth-Number
melm 654 Subject
melm 655$9 Koha-Auth-Number
melm 655 Subject
melm 656$9 Koha-Auth-Number
melm 656 Subject
melm 657$9 Koha-Auth-Number
melm 657 Subject
melm 690$9 Koha-Auth-Number
melm 690 Subject,Subject:p
melm 630 Subject
melm 650$9 Koha-Auth-Number
melm 650 Subject,Subject:p
melm 651$9 Koha-Auth-Number
melm 651 Name-geographic,Subject,Subject:p
melm 652$9 Koha-Auth-Number
#melm 652 subject-heading,subject-heading:p
melm 653$9 Koha-Auth-Number
melm 653 Subject,Subject:p
melm 654$9 Koha-Auth-Number
melm 654 Subject
melm 655$9 Koha-Auth-Number
melm 655 Subject
melm 656$9 Koha-Auth-Number
melm 656 Subject
melm 657$9 Koha-Auth-Number
melm 657 Subject
melm 690$9 Koha-Auth-Number
melm 690 Subject,Subject:p
melm 700$9 Cross-Reference,Koha-Auth-Number
melm 700$9 Cross-Reference,Koha-Auth-Number
melm 700$a Author,Author:p
melm 700$n Thematic-number
melm 700$r Music-key
#melm 700$t author,Author-title,Name-and-title,Title,Title-uniform
melm 700$n Thematic-number
melm 700$r Music-key
#melm 700$t author,Author-title,Name-and-title,Title,Title-uniform
melm 700$t Author-title,Name-and-title,Title,Title-uniform
melm 700 Author,Author-name-corporate,Author-name-personal,Name,Editor,Personal-name
melm 710 Author,Corporate-name
#melm 710$t author,Author-title,Name-and-title,Title,Title-uniform
melm 710 Author,Corporate-name
#melm 710$t author,Author-title,Name-and-title,Title,Title-uniform
melm 710$t Author-title,Name-and-title,Title,Title-uniform
#melm 710$a author,author:p,Name-and-title
#melm 710$a author,author:p,Name-and-title
melm 710$a Name-and-title
melm 710$9 Koha-Auth-Number
#melm 710 author,Name
melm 710$9 Koha-Auth-Number
#melm 710 author,Name
melm 710 Author,Name
melm 711$a Name-and-title
#melm 711$t author,Author-title,Title,Title-uniform
melm 711$a Name-and-title
#melm 711$t author,Author-title,Title,Title-uniform
melm 711$t Author-title,Title,Title-uniform
melm 711$9 Koha-Auth-Number
#melm 711 author,Author-name-corporate,Name,Conference-name
melm 711$9 Koha-Auth-Number
#melm 711 author,Author-name-corporate,Name,Conference-name
melm 711 Author-name-corporate,Name,Conference-name
melm 730$n Thematic-number
melm 730$r Music-key
melm 730$9 Koha-Auth-Number
melm 730 Title,Title-uniform
melm 740 Title,Title-other-variant
melm 773$t Host-item
melm 780 Title-former,Related-periodical
melm 785 Related-periodical
melm 730$n Thematic-number
melm 730$r Music-key
melm 730$9 Koha-Auth-Number
melm 730 Title,Title-uniform
melm 740 Title,Title-other-variant
melm 773$t Host-item
melm 780 Title-former,Related-periodical
melm 785 Related-periodical
melm 800$a Name-and-title
#melm 800$t author,Author-title,Name-and-title,Title,Title-series
melm 800$a Name-and-title
#melm 800$t author,Author-title,Name-and-title,Title,Title-series
melm 800$t Author-title,Name-and-title,Title,Title-series
melm 800$9 Koha-Auth-Number
melm 800$9 Koha-Auth-Number
melm 800 Author,Author-name-personal,Name,Personal-name
melm 810$a Name-and-title
melm 810$a Name-and-title
melm 810$t Author-title,Name-and-title,Title,Title-series
melm 810$9 Koha-Auth-Number
melm 810$9 Koha-Auth-Number
melm 810 Author,Corporate-name,Author-name-corporate,Name
melm 811$a Name-and-title
melm 811$9 Koha-Auth-Number
#melm 811$t author,Author-title,Name-and-title,Title,Title-series
melm 811$a Name-and-title
melm 811$9 Koha-Auth-Number
#melm 811$t author,Author-title,Name-and-title,Title,Title-series
melm 811$t Author-title,Name-and-title,Title,Title-series
melm 811 Author,Author-name-corporate,Name,Conference-name
melm 830$9 Koha-Auth-Number
melm 830 Title,Title-series
melm 840 Title,Title-series
melm 811 Author,Author-name-corporate,Name,Conference-name
melm 830$9 Koha-Auth-Number
melm 830 Title,Title-series
melm 840 Title,Title-series
###############################
# Koha Local-Use Biblio Indexes
melm 999$c Local-Number:n,Local-Number:w,Local-Number:s
melm 999$d biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s
melm 942$0 totalissues:n,totalissues:s
melm 942$2 cn-bib-source
melm 942$6 cn-bib-sort:n,cn-bib-sort:s
melm 942$c itemtype:w
melm 942$n Suppress:w,Suppress:n
melm 999$c Local-Number:n,Local-Number:w,Local-Number:s
melm 999$d biblioitemnumber:n,biblioitemnumber:w,biblioitemnumber:s
melm 942$0 totalissues:n,totalissues:s
melm 942$2 cn-bib-source
melm 942$6 cn-bib-sort:n,cn-bib-sort:s
melm 942$c itemtype:w
melm 942$n Suppress:w,Suppress:n
# need to check bib1
melm 942$h cn-class
melm 942$i cn-item
melm 942$k cn-prefix
melm 942$m cn-suffix
melm 942$h cn-class
melm 942$i cn-item
melm 942$k cn-prefix
melm 942$m cn-suffix
# Items Indexes
melm 952$0 withdrawn:n,withdrawn:w
melm 952$1 lost,lost:n
melm 952$2 classification-source
melm 952$3 materials-specified
melm 952$4 damaged:n,damaged:w
melm 952$5 restricted:n,restricted:w
melm 952$6 cn-sort:n,cn-sort:s
melm 952$7 notforloan:n,notforloan:w
melm 952$8 ccode
melm 952$9 itemnumber:n,itemnumber:s
melm 952$a homebranch
melm 952$b holdingbranch
melm 952$c location
melm 952$0 withdrawn:n,withdrawn:w
melm 952$1 lost,lost:n
melm 952$2 classification-source
melm 952$3 materials-specified
melm 952$4 damaged:n,damaged:w
melm 952$5 restricted:n,restricted:w
melm 952$6 cn-sort:n,cn-sort:s
melm 952$7 notforloan:n,notforloan:w
melm 952$8 ccode
melm 952$9 itemnumber:n,itemnumber:s
melm 952$a homebranch
melm 952$b holdingbranch
melm 952$c location
#dateaccessioned
melm 952$d Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s
melm 952$e acqsource
melm 952$f coded-location-qualifier
melm 952$g price
#melm 952$h
#melm 952$i
melm 952$j stack:n,stack:w
#melm 952$k
melm 952$l issues:n,issues:w,issues:s
melm 952$m renewals:n,renewals:w
melm 952$n reserves:n,reserves:w
melm 952$o Local-classification:w,Local-classification:p,Local-classification:s
melm 952$p barcode,barcode:n
melm 952$q onloan:n,onloan:w
melm 952$r datelastseen
melm 952$s datelastborrowed
melm 952$t copynumber
melm 952$u uri:u
melm 952$v replacementprice
melm 952$w replacementpricedate
melm 952$d Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s
melm 952$e acqsource
melm 952$f coded-location-qualifier
melm 952$g price
#melm 952$h
#melm 952$i
melm 952$j stack:n,stack:w
#melm 952$k
melm 952$l issues:n,issues:w,issues:s
melm 952$m renewals:n,renewals:w
melm 952$n reserves:n,reserves:w
melm 952$o Local-classification:w,Local-classification:p,Local-classification:s
melm 952$p barcode,barcode:n
melm 952$q onloan:n,onloan:w
melm 952$r datelastseen
melm 952$s datelastborrowed
melm 952$t copynumber
melm 952$u uri:u
melm 952$v replacementprice
melm 952$w replacementpricedate
#melm 952$x
melm 952$y itype:w
melm 952$y itype:w
#melm 952$z

View file

@ -1,3 +1,3 @@
<ul>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
</ul>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>

View file

@ -80,7 +80,7 @@ function confirm_deletion() {
var addtoshelfButton = new YAHOO.widget.Button({
id: "addtoshelf",
type: "button",
label: "Add to Shelf",
label: "Add to List",
container: "addtoshelfc",
onclick: {fn: addToShelf }
});

View file

@ -54,7 +54,7 @@ a.catalogue:hover {
<div id="submenu">
<span class="koha">options &gt;&gt;&nbsp;&nbsp;</span>
<a href="/cgi-bin/koha/catalogue/search.pl" class="submenu2">search</a>
<a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="submenu">Virtual shelves</a>
<a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="submenu">Lists</a>
<a href="/cgi-bin/koha/cataloguing/addbiblio.pl" class="submenu2">Add biblio</a>
<a href="/cgi-bin/koha/maint/catmaintain.pl" class="submenu">Cat maintenance</a>
</div>

View file

@ -7,7 +7,7 @@
<!-- TMPL_IF NAME="CAN_user_catalogue" --><li><a href="/cgi-bin/koha/catalogue/search.pl">Catalogue</a></li><!-- /TMPL_IF -->
<!-- TMPL_VAR name="IntranetNav" -->
<li class="more"><a href="/cgi-bin/koha/mainpage.pl">More</a><ul>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
<!-- TMPL_IF NAME="CAN_user_editcatalogue" --><li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloguing</a></li>
<li><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></li>
<li><a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a></li>

View file

@ -39,7 +39,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul></li>
<!-- /TMPL_IF -->

View file

@ -17,7 +17,7 @@
deleteshelfButton = new YAHOO.widget.Button({
id: "deleteshelf",
type: "button",
label: "Delete Shelf",
label: "Delete List",
container: "deleteshelfc",
onclick: {fn:function(){confirmDelete("Are you sure you want to delete this shelf?")}}
});
@ -28,6 +28,6 @@
<ul class="toolbar">
<li><a id="newshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1">New Shelf</a></li>
<!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_IF name="manageshelf" --><li><a id="editshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelfnumber" -->">Edit Shelf</a></li><li id="deleteshelfc"><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete Shelf</a></li><!-- /TMPL_IF --><!-- /TMPL_IF -->
<li><a id="newshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1">New List</a></li>
<!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_IF name="manageshelf" --><li><a id="editshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelfnumber" -->">Edit List</a></li><li id="deleteshelfc"><a id="deleteshelf" href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1">Delete List</a></li><!-- /TMPL_IF --><!-- /TMPL_IF -->
</ul></div>

View file

@ -62,7 +62,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

View file

@ -62,7 +62,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

View file

@ -62,7 +62,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

View file

@ -62,7 +62,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

View file

@ -62,7 +62,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

View file

@ -62,7 +62,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

View file

@ -62,7 +62,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

File diff suppressed because one or more lines are too long

View file

@ -90,7 +90,7 @@
<input type="submit" value=" OK " class="submit" />
</form>
</li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a></li>
<li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li>
</ul>
<!-- /TMPL_IF -->
</div>

View file

@ -1,5 +1,5 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Add to Virtual Shelf</title>
<title>Koha &rsaquo; Add to List</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<style type="text/css">
#custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; }
@ -15,15 +15,15 @@
<i><!-- TMPL_VAR NAME="title" --></i>
<!-- TMPL_IF NAME="author" -->
by <!-- TMPL_VAR NAME="author" -->
<!-- /TMPL_IF --> to a virtual shelf
<!-- /TMPL_IF --> to a list
</h3>
<!-- TMPL_IF NAME="CGIvirtualshelves" --><form name="f1" method="post" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
<fieldset class="rows">
<legend>Select an existing shelf</legend>
<legend>Select an existing list</legend>
<ol>
<li><label>Choose shelf</label><!-- TMPL_VAR NAME="CGIvirtualshelves" --></li>
<li><label>Choose list</label><!-- TMPL_VAR NAME="CGIvirtualshelves" --></li>
</ol>
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
<fieldset class="action"><input type="submit" value="Save" class="submit" /></fieldset>
@ -32,10 +32,10 @@
<h4>...or...</h4><!-- /TMPL_IF -->
<form name="f2" method="post" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl">
<fieldset class="rows"><legend>Add to a new shelf:</legend>
<fieldset class="rows"><legend>Add to a new list:</legend>
<ol><li>
<label for="newvirtualshelf">
Shelf name:
List name:
</label>
<input type="hidden" name="biblionumber" id="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />

View file

@ -1,79 +1,79 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; <!-- TMPL_IF NAME="viewshelf" -->Virtual Shelves &rsaquo; Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Virtual Shelves<!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New Virtual Shelf<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit virtual shelf <!-- TMPL_VAR name="shelfname"--><!-- /TMPL_IF --></title>
<title>Koha &rsaquo; <!-- TMPL_IF NAME="viewshelf" -->Lists &rsaquo; Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Lists<!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit List <!-- TMPL_VAR name="shelfname"--><!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.pack.js"></script>
<script type="text/javascript">
//<![CDATA[
//<![CDATA[
$(document).ready(function(){
$("th.checkall").html("<a href=\"/cgi-bin/koha/shelves.pl\" id=\"CheckAll\"><img src=\"<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif\" height=\"18\" width=\"18\" alt=\"Check All\" title=\"Check All\" border=\"0\" /></a>");
$("#CheckAll").click(function(){
$(".checkboxed").checkCheckboxes();
$("#CheckAll img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checknone.gif").attr("title","Check None").attr("alt","Check None");
$("#CheckAll").attr("id","CheckNone");
return false;
});
$("#CheckNone").click(function(){
$(".checkboxed").unCheckCheckboxes();
$("#CheckNone img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif").attr("title","Check All").attr("alt","Check All");
$("#CheckNone").attr("id","CheckAll");
return false;
});
$("th.checkall").html("<a href=\"/cgi-bin/koha/shelves.pl\" id=\"CheckAll\"><img src=\"<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif\" height=\"18\" width=\"18\" alt=\"Check All\" title=\"Check All\" border=\"0\" /></a>");
$("#CheckAll").click(function(){
$(".checkboxed").checkCheckboxes();
$("#CheckAll img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checknone.gif").attr("title","Check None").attr("alt","Check None");
$("#CheckAll").attr("id","CheckNone");
return false;
});
$("#CheckNone").click(function(){
$(".checkboxed").unCheckCheckboxes();
$("#CheckNone img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif").attr("title","Check All").attr("alt","Check All");
$("#CheckNone").attr("id","CheckAll");
return false;
});
});
function confirmDelete(s,n){
if (window.confirm(s)) {
location.href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1"; } else {
return false;
}
}
/**
* this function checks all checkbox
* or uncheck all if there are already checked.
*/
function CheckAll(){
var checkboxes = document.getElementsByTagName('input');
var nbCheckbox = checkboxes.length;
var check = areAllChecked();
check = !check;
for(var i=0;i<nbCheckbox;i++){
if(checkboxes[i].getAttribute('type') == "checkbox" ){
checkboxes[i].checked = check;
}
}
}
/**
* this function return true if all checkbox are checked
*/
function areAllChecked(){
var checkboxes = document.getElementsByTagName('input');
var nbCheckbox = checkboxes.length;
for(var i=0;i<nbCheckbox;i++){
if(checkboxes[i].getAttribute('type') == "checkbox" ){
if(checkboxes[i].checked == 0){
return false;
}
}
}
return true;
}
//]]>
if (window.confirm(s)) {
location.href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1"; } else {
return false;
}
}
/**
* this function checks all checkbox
* or uncheck all if there are already checked.
*/
function CheckAll(){
var checkboxes = document.getElementsByTagName('input');
var nbCheckbox = checkboxes.length;
var check = areAllChecked();
check = !check;
for(var i=0;i<nbCheckbox;i++){
if(checkboxes[i].getAttribute('type') == "checkbox" ){
checkboxes[i].checked = check;
}
}
}
/**
* this function return true if all checkbox are checked
*/
function areAllChecked(){
var checkboxes = document.getElementsByTagName('input');
var nbCheckbox = checkboxes.length;
for(var i=0;i<nbCheckbox;i++){
if(checkboxes[i].getAttribute('type') == "checkbox" ){
if(checkboxes[i].checked == 0){
return false;
}
}
}
return true;
}
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <!-- TMPL_IF NAME="viewshelf" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a> &rsaquo; Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i><!-- TMPL_ELSE --><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Virtual Shelves</a><!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New Virtual Shelf<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit virtual shelf <i><!-- TMPL_VAR name="shelfname"--></i><!-- /TMPL_IF --></div>
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <!-- TMPL_IF NAME="viewshelf" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> &rsaquo; Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i><!-- TMPL_ELSE --><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a><!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit List<i><!-- TMPL_VAR name="shelfname"--></i><!-- /TMPL_IF --></div>
<div id="doc" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div class="yui-g">
<!-- TMPL_INCLUDE NAME="virtualshelves-toolbar.inc" -->
</div>
<div id="yui-main">
<div class="yui-g">
<!-- TMPL_INCLUDE NAME="virtualshelves-toolbar.inc" -->
</div>
<!-- TMPL_IF NAME="viewshelf" -->
<div class="yui-g">
<!-- TMPL_IF NAME="itemsloop" -->
@ -91,14 +91,14 @@ function confirmDelete(s,n){
<th>&nbsp;</th>
<th>Title</th>
<th>Call No.</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
<!-- TMPL_LOOP NAME="itemsloop" -->
<!-- TMPL_IF name="color" -->
<!-- TMPL_IF name="color" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<td>
<input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
</td>
@ -124,18 +124,18 @@ function confirmDelete(s,n){
</p>
<p><!-- TMPL_VAR NAME="author" --></p></td>
<td><!-- TMPL_VAR NAME="classification" --></td>
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a></td>
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a></td>
</tr>
<!-- /TMPL_LOOP --><!-- /itemsloop -->
</table>
</fieldset>
<fieldset class="action">
<!-- TMPL_IF name="manageshelf" -->
</fieldset>
<fieldset class="action">
<!-- TMPL_IF name="manageshelf" -->
<!-- TMPL_IF NAME="itemsloop" -->
<input type="submit" value="Remove selected Items" onclick="return confirm('Are you sure you want to remove these items from the shelf?')" />
<!-- /TMPL_IF --><!-- /itemsloop -->
<!-- /TMPL_IF --><!-- /manageshelf -->
</fieldset>
</fieldset>
</form>
<!-- /TMPL_IF --><!-- /viewshelf -->
</div>
@ -154,8 +154,8 @@ function confirmDelete(s,n){
<input type="hidden" name="modifyshelfcontents" value="1" />
<input type="submit" value="Add" />
</li>
</ol>
</fieldset>
</ol>
</fieldset>
</form>
</div>
<!-- /TMPL_IF -->
@ -163,9 +163,9 @@ function confirmDelete(s,n){
<!-- TMPL_IF NAME="shelves" -->
<div class="yui-ge">
<div class="yui-u first">
<!-- TMPL_IF NAME="already" --><div class="dialog alert">A virtual shelf with that name already exists!</div><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="status1" -->
<div class="yui-u first">
<!-- TMPL_IF NAME="already" --><div class="dialog alert">A List with that name already exists!</div><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="status1" -->
<div class="dialog alert"><!-- TMPL_VAR NAME="string1" --></div>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="paramsloop" -->
@ -176,38 +176,38 @@ function confirmDelete(s,n){
<form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
<input type="hidden" name="shelves" value="1" />
<fieldset class="rows">
<legend>Create a new virtual shelf</legend>
<legend>Create a new List</legend>
<ol>
<li><label for="addshelf">Shelf name: </label> <input id="addshelf" type="text" name="addshelf" size="25" /></li>
<li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->" /><!-- TMPL_VAR name="loggedinusername" --></li>
<li><label for="category">Category: </label><select name="category" id="category">
<option value="1">Private</option>
<option value="2">Public</option>
<option value="3">Free</option></select></li></ol></fieldset>
<option value="3">Free</option></select></li></ol></fieldset>
<fieldset class="action"><input type="submit" value="Save" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
</form>
<fieldset class="action"><input type="submit" value="Save" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
</form>
</div>
<div class="yui-u">
<div class="help"><ul>
<li>A <b>private</b> virtual shelf is managed by you and can be seen only by you.</li>
<li> A <b>public</b> virtual shelf can be seen by everybody, but managed only by you.</li>
<li> An <b>open</b> virtual shelf can be seen and managed by everybody.</li>
<div class="yui-u">
<div class="help"><ul>
<li>A <b>Private</b> List is managed by you and can be seen only by you.</li>
<li> A <b>Public</b> List can be seen by everybody, but managed only by you.</li>
<li> An <b>Open</b> List can be seen and managed by everybody.</li>
</ul></div>
</div>
</div>
</div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF name="edit" -->
<div class="yui-ge">
<div class="yui-u first">
<!-- TMPL_IF NAME="already" --><div class="dialog alert">A virtual shelf with that name already exists!</div><!-- /TMPL_IF -->
<div class="yui-ge">
<div class="yui-u first">
<!-- TMPL_IF NAME="already" --><div class="dialog alert">A List with that name already exists!</div><!-- /TMPL_IF -->
<form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
<input type="hidden" name="op" value="modifsave" />
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->" />
<fieldset class="rows"><legend>Edit virtual shelf <i><!-- TMPL_VAR name="shelfname"--></i></legend>
<fieldset class="rows"><legend>Edit List <i><!-- TMPL_VAR name="shelfname"--></i></legend>
<ol>
<li><label for="shelfname">Shelf name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="<!-- TMPL_VAR name="shelfname"-->" /></li>
<li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /><!-- TMPL_VAR NAME="loggedinusername" --></li>
@ -222,23 +222,23 @@ function confirmDelete(s,n){
<!-- TMPL_ELSE -->
<option value="2">Public</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="category3" -->
<option value="3" selected="selected">Open</option>
<!-- TMPL_ELSE -->
<option value="3">Open</option>
<!-- TMPL_IF NAME="category3" -->
<option value="3" selected="selected">Open</option>
<!-- TMPL_ELSE -->
<option value="3">Open</option>
<!-- /TMPL_IF -->
</select></li>
</ol></fieldset>
<fieldset class="action"><input type="submit" value="Save changes" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
</form>
</div>
<div class="yui-u">
<ul><li>A <strong>private</strong> virtual shelf is managed by you and can be seen <strong>only</strong> by you.</li>
<li> A <strong>public</strong> virtual shelf can be seen by <strong>everybody</strong>, but managed only by you.</li>
<li> A <b>free</b> virtual shelf can be seen and managed by everybody.</li>
</div>
<div class="yui-u">
<ul><li>A <strong>Private</strong> List is managed by you and can be seen <strong>only</strong> by you.</li>
<li> A <strong>Public</strong> List can be seen by <strong>everybody</strong>, but managed only by you.</li>
<li> An <b>Open</b> List can be seen and managed by everybody.</li>
</ul></div>
</div>
</div>
<!-- /TMPL_IF -->
@ -246,7 +246,7 @@ function confirmDelete(s,n){
<!-- TMPL_IF NAME="shelves" --><!-- TMPL_ELSE -->
<!-- TMPL_IF name="edit" --><!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="shelvesloop" -->
<h3>Virtual shelves</h3>
<h3>Lists</h3>
<table>
<tr><th>Shelf name</th><th>Category</th><th>Items</th><th>&nbsp;</th></tr>
@ -260,7 +260,7 @@ function confirmDelete(s,n){
<!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
</td>
<td><!-- TMPL_VAR NAME="shelfvirtualcount" --> </td>
<td><!-- TMPL_IF name="mine" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a> <a href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelf" -->=1" onclick="return confirmDelete('Are you sure you want to remove this virtual shelf?')">Delete</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
<td><!-- TMPL_IF name="mine" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a> <a href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelf" -->=1" onclick="return confirmDelete('Are you sure you want to remove this List?')">Delete</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
<!-- /TMPL_LOOP -->
</table>
<!-- /TMPL_IF -->
@ -271,4 +271,4 @@ function confirmDelete(s,n){
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

View file

@ -5,7 +5,7 @@
<div id="members">
<ul>
<!--TMPL_IF NAME="virtualshelves" --><li><a href="/cgi-bin/koha/opac-shelves.pl">Virtual Shelves</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><span class="members">Logged in as <span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></span></li><li><a class="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li><!-- TMPL_ELSE --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF -->
<!--TMPL_IF NAME="virtualshelves" --><li><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><span class="members">Logged in as <span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></span></li><li><a class="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li><!-- TMPL_ELSE --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF -->
</ul>
</div>
@ -15,4 +15,4 @@
<h1 id="libraryname"><a href="/cgi-bin/koha/opac-main.pl"><!-- TMPL_IF NAME="LibraryName" --><!-- TMPL_VAR NAME="LibraryName" --><!-- TMPL_ELSE -->Koha Online Catalog<!-- /TMPL_IF --></a></h1>
</div>
</div>
</div>

View file

@ -5,7 +5,7 @@
<div id="members">
<ul>
<!--TMPL_IF NAME="virtualshelves" --><li><a href="/cgi-bin/koha/opac-shelves.pl">Virtual Shelves</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><span class="members">Logged in as <span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></span></li><li><a class="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li><!-- TMPL_ELSE --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF -->
<!--TMPL_IF NAME="virtualshelves" --><li><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF --><!-- TMPL_IF NAME="loggedinusername" --><li><span class="members">Logged in as <span class="loggedinusername"><!-- TMPL_LOOP NAME="USER_INFO" --><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --><!-- /TMPL_LOOP --></span></span></li><li><a class="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log Out</a></li><!-- TMPL_ELSE --><li><a href="/cgi-bin/koha/opac-user.pl">Your Account</a></li><!-- /TMPL_IF -->
</ul>
</div>

View file

@ -1,5 +1,5 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Add to My Virtual Shelf
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Add to Your List
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<style type="text/css">
#custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; }
@ -9,9 +9,9 @@
<div id="custom-doc" class="yui-t7">
<!-- TMPL_IF NAME="multiple"-->
<h1>Add <!-- TMPL_VAR NAME="total"--> items to a book list:</h1>
<h1>Add <!-- TMPL_VAR NAME="total"--> items to a list:</h1>
<!-- TMPL_ELSE -->
<h1>Add to a book list:</h1>
<h1>Add to a list:</h1>
<!-- /TMPL_IF -->
<ul> <!-- TMPL_LOOP NAME="biblios"-->
<li> <span class="title"><!-- TMPL_VAR NAME="title"--></span>
@ -21,7 +21,7 @@
</ul>
<!-- TMPL_IF NAME="CGIvirtualshelves"-->
<form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
<fieldset class="rows"><legend>Select an Existing List</legend>
<fieldset class="rows"><legend>Select a List</legend>
<ol><li> <label for="shelfnumber">Add to list:</label> <!-- TMPL_VAR NAME="CGIvirtualshelves" --></li></ol>
<!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
<input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>

View file

@ -28,9 +28,9 @@
<!-- TMPL_IF NAME="AmazonContent" -->
<div id="bookcover"> <!-- TMPL_IF NAME="isbn" -->
<a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link">
<img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01._PIdp-schmooS,TopRight,7,-26_SCMZZZZZZZ_.jpg" alt="Book Cover Image" />
<img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01._PIdp-schmooS,TopRight,7,-26_SCMZZZZZZZ_.jpg" alt="Cover Image" />
</a><!-- TMPL_ELSE -->
<img border="0" src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="Book Cover Image" />
<img border="0" src="http://g-images.amazon.com/images/G/01/x-site/icons/no-img-sm.gif" alt="Cover Image" />
<!-- /TMPL_IF --></div>
<!-- /TMPL_IF -->
<h1><!-- TMPL_VAR NAME="title" --> <!-- TMPL_IF NAME="subtitle" --> <span class="subtitle"><!-- TMPL_VAR NAME="subtitle" --></span><!-- /TMPL_IF --></h1>
@ -160,7 +160,7 @@
<!-- TMPL_IF name="virtualshelves" -->
<!-- TMPL_IF NAME="loggedinusername" -->
<li><a href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="Dopop('opac-addbybiblionumber.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->'); return false;">
Add to My Book List
Add to My List
</a></li>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->

View file

@ -111,7 +111,7 @@ href="/cgi-bin/koha/opac-rss.pl?q=<!-- TMPL_VAR name="query_cgi"--><!-- TMPL_VAR
<!-- TMPL_IF name="opacbookbag" --><a href="#" onclick="SelectAll()"><img src="/opac-tmpl/prog/images/checkall.gif" alt="Check All" border="0" /></a>
<input type="button" class="icon shelf" value="Add checked items to book bag" onclick="addMultiple(); return false;" />
<!-- TMPL_IF NAME="virtualshelves" --><input type="button" class="icon shelf" value="Add Checked Items to Virtual Shelf" onclick="<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());} <!-- TMPL_ELSE --> alert('You must be logged in to create or add to Virtual Shelves'); <!-- /TMPL_IF --> return false;" /><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="virtualshelves" --><input type="button" class="icon shelf" value="Add Checked Items to Lists" onclick="<!-- TMPL_IF NAME="loggedinusername" -->if (vShelfAdd()) {Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());} <!-- TMPL_ELSE --> alert('You must be logged in to create or add to Lists'); <!-- /TMPL_IF --> return false;" /><!-- /TMPL_IF -->
<input type="reset" value="Clear All" class="icon shelf" />
<!-- /TMPL_IF --></p></td></tr>
<!-- Actual Search Results -->

View file

@ -1,199 +1,175 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; <!-- TMPL_IF Name="viewshelf" -->Contents of <!-- TMPL_VAR Name="shelfname" --><!-- TMPL_ELSE -->My Virtual Shelves<!-- /TMPL_IF --><!-- TMPL_INCLUDE name="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; <!-- TMPL_IF NAME="viewshelf" -->Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->My Lists<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE name="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<div id="doc3" class="yui-t1">
<div id="bd">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<!-- TMPL_IF Name="viewshelf" -->
<h3><a href="/cgi-bin/koha/opac-shelves.pl">Virtual Shelves</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em><!-- TMPL_VAR Name="shelfname" --></em></h3>
<!-- TMPL_IF NAME="itemsloop" -->
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform">
<table>
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<!-- TMPL_IF NAME="viewshelf" -->
<h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em><!-- TMPL_VAR NAME="shelfname" --></em></h3>
<!-- TMPL_IF NAME="itemsloop" -->
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform">
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
<input type="hidden" name="modifyshelfcontents" value="1" />
<tr>
<!-- TMPL_IF name="manageshelf" --><th>
<a href="/cgi-bin/koha/opac-shelves.pl" onclick="CheckAll(); return false;"><img src="<!-- TMPL_VAR NAME="themelang" -->/../images/checkall.gif" alt="Check All" border="0" /></a>
</th><!-- /TMPL_IF -->
<th>&nbsp;</th>
<th>Title</th>
<th>Author</th>
<th>Copyright</th>
<th>Call No.</th>
</tr>
<!-- TMPL_LOOP Name="itemsloop" -->
<!-- TMPL_IF name="color" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr><!-- /TMPL_IF -->
<!-- TMPL_IF name="manageshelf" --><td>
<input type="checkbox" name="MOD-<!-- TMPL_VAR Name="biblionumber" -->" />
<input type="hidden" name="ModBiblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
</td><!-- /TMPL_IF -->
<td>
<img src="<!-- TMPL_VAR NAME="themelang" -->/../itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
</td>
<td>
<!-- TMPL_IF name="BiblioDefaultViewmarc" -->
<a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
<!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
</a>
<!-- TMPL_ELSE -->
<!-- TMPL_IF name="BiblioDefaultViewisbd" -->
<a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
<!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
</a>
<!-- TMPL_ELSE -->
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
<!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
</a>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</a>
</td>
<td><!-- TMPL_VAR Name="author" --></td>
<td><!-- TMPL_VAR Name="copyrightdate" --></td>
<td><!-- TMPL_VAR NAME="classification" --></td>
<table>
<tr>
<!-- TMPL_IF NAME="manageshelf" --><th><a href="/cgi-bin/koha/opac-shelves.pl" onclick="CheckAll(); return false;"><img src="<!-- TMPL_VAR NAME="themelang" -->/../images/checkall.gif" alt="Check All" border="0" /></a></th><!-- /TMPL_IF -->
<th>&nbsp;</th>
<th>Title</th>
<th>Author</th>
<th>Copyright</th>
<th>Call No.</th>
</tr>
<!-- /TMPL_LOOP -->
<!-- TMPL_LOOP NAME="itemsloop" -->
<!-- TMPL_IF NAME="toggle" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="manageshelf" -->
<td>
<input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
<input type="hidden" name="ModBiblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
</td>
<!-- /TMPL_IF -->
<td>
<img src="<!-- TMPL_VAR NAME="themelang" -->/../itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
</td>
<td>
<!-- TMPL_IF NAME="BiblioDefaultViewmarc" -->
<a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="BiblioDefaultViewisbd" -->
<a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a>
<!-- TMPL_ELSE -->
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</td>
<td><!-- TMPL_VAR NAME="author" --></td>
<td><!-- TMPL_VAR NAME="copyrightdate" --></td>
<td><!-- TMPL_VAR NAME="classification" --></td>
</tr>
<!-- /TMPL_LOOP --><!-- /itemsloop -->
</table>
<!-- TMPL_ELSE -->
<div class="message">This Virtual Shelf is empty.</div>
<!-- /TMPL_IF -->
</table>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="manageshelf" --><!-- TMPL_IF NAME="itemsloop" --><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
<input type="hidden" name="modifyshelfcontents" value="1" />
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete('Are you sure you want to remove these items from the list?')" /><!-- /TMPL_IF --><!-- /TMPL_IF --></form><!-- TMPL_IF name="manageshelf" --><!-- TMPL_UNLESS NAME="itemsloop" --><form method="get" action="/cgi-bin/koha/opac-shelves.pl"><input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="hidden" name="shelves" value="1" /><input type="submit" class="icon delete" value="Delete this Virtual Shelf" onclick="return confirmDelete('Are you sure you want to delete this Virtual Shelf?')" /></form><!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<!-- TMPL_IF Name="shelves" -->
<!-- TMPL_IF Name="status1" -->
<p class="error"><!-- TMPL_VAR Name="string1" --></p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP Name="paramsloop" -->
<!-- TMPL_IF Name="status" -->
<p class="error"><!-- TMPL_VAR Name="string" --></p>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<form method="post" action="/cgi-bin/koha/opac-shelves.pl">
<input type="hidden" name="shelves" value="1">
<div class="form"><table>
<caption>Create a New a Virtual Shelf</caption>
<tr><th><label for="addshelf">List Name:</label> </th><td> <input id="addshelf" type="text" name="addshelf" size="60"><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->"></td></tr>
</table></div>
<p><input type="hidden" name="category" value="1" /><input type="submit" value="Add New Shelf" class="icon add"></p>
</form>
<div id="right"><!-- TMPL_IF NAME="shelveslooppriv" -->
<form method="post" action="/cgi-bin/koha/opac-shelves.pl" name="mainform">
<input type="hidden" name="shelves" value="1" />
<table>
<caption>Delete Virtual Shelves</caption>
<tr><th>&nbsp;</th><th>Virtual Shelf Name</th><th>Contents</th></tr>
<!-- TMPL_LOOP Name="shelveslooppriv" -->
<tr>
<td>
<!-- TMPL_IF NAME="shelfbookcount" --> <input type="checkbox" name="DEL-<!-- TMPL_VAR Name="shelf" -->" disabled="disabled" readonly="readonly" /><!--TMPL_ELSE--><input type="checkbox" name="DEL-<!-- TMPL_VAR Name="shelf" -->" /><!-- /TMPL_IF --> </td><td><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)<!-- TMPL_IF NAME="shelfbookcount" --><sup>*</sup><!-- /TMPL_IF --></td></tr>
<!-- /TMPL_LOOP -->
</table><p><sup>*</sup>All items must be removed from Virtual Shelves prior to deletion.</p>
<input type="submit" value="Delete Selected Lists" onclick="return confirmDelete('Are you sure you want to delete this list?')" class="icon delete" /> </form>
<!-- /TMPL_IF -->
<p><form action="opac-shelves.pl" method="get"><input type="submit" class="icon back" value="Back to Virtual Shelves" /></form></p>
</div>
<!-- TMPL_ELSE -->
<!-- TMPL_IF name="edit" -->
<form method="post">
<input type="hidden" name="op" value="modifsave">
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
<div class="form"><table>
<caption>Edit Book List <em><!-- TMPL_VAR name="shelfname"--></em></caption>
<tr><th><label for="shelfname">List Name: </label></th><td><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR name="shelfname"-->" /></td></tr>
<tr><th><label for="sortfield" >Select sort field for this book list: </label></th>
<td><select name="sortfield">
<option value="title" <!-- TMPL_IF NAME="sort_title" -->selected="1"<!-- /TMPL_IF -->>title</option>
<option value="author" <!-- TMPL_IF NAME="sort_author" -->selected="1"<!-- /TMPL_IF -->>author</option>
<option value="copyrightdate" <!-- TMPL_IF NAME="sort_copyrightdate" -->selected="1"<!-- /TMPL_IF -->>copyrightdate</option>
</select></td></tr>
</table>
<p><input type="hidden" name="category" value="1" /><input type="submit" value="Save Changes" class="submit"></p></div>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<div class="message">This List is empty.</div>
<!-- /TMPL_IF --><!-- /itemsloop -->
<!-- /TMPL_IF --><!-- /viewshelf -->
<!-- TMPL_UNLESS NAME="viewshelf" -->
<h2>Virtual Shelves</h2>
<!-- TMPL_IF NAME="manageshelf" -->
<!-- TMPL_IF NAME="itemsloop" -->
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
<input type="hidden" name="modifyshelfcontents" value="1" />
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete('Are you sure you want to remove these items from the list?')" />
<!-- /TMPL_IF -->
</form>
<!-- /TMPL_IF -->
<ul class="link-tabs">
<!-- TMPL_IF name="showprivateshelves" -->
<li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Virtual Shelves</a> </li>
<!-- TMPL_ELSE -->
<li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Virtual Shelves</a> </li>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="showpublicshelves" -->
<li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Virtual Shelves</a></li>
<!-- TMPL_ELSE -->
<li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Virtual Shelves</a></li>
<!-- /TMPL_IF -->
</ul>
<!-- TMPL_IF NAME="manageshelf" -->
<!-- TMPL_UNLESS NAME="itemsloop" --><form method="get" action="/cgi-bin/koha/opac-shelves.pl"><input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="hidden" name="shelves" value="1" /><input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete('Are you sure you want to delete this List?')" /></form><!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<!-- TMPL_IF name="showprivateshelves" -->
<div id="privateshelves" class="tab-container" style="display:block;">
<!-- TMPL_ELSE -->
<div id="privateshelves" class="tab-container" style="display:none;">
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="shelves" -->
<!-- TMPL_IF NAME="status1" -->
<p class="error"><!-- TMPL_VAR NAME="string1" --></p>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="paramsloop" -->
<!-- TMPL_IF NAME="status" -->
<p class="error"><!-- TMPL_VAR NAME="string" --></p>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<form method="post" action="/cgi-bin/koha/opac-shelves.pl">
<input type="hidden" name="shelves" value="1">
<div class="form">
<table>
<caption>Create a New List</caption>
<tr><th><label for="addshelf">List Name:</label> </th><td> <input id="addshelf" type="text" name="addshelf" size="60"><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"></td></tr>
</table></div>
<p><input type="hidden" name="category" value="1" /><input type="submit" value="Add New Shelf" class="icon add"></p>
</form>
<!-- /TMPL_IF --><!-- /shelves -->
<!-- TMPL_IF NAME="loggedinusername" -->
<!-- TMPL_IF NAME="shelveslooppriv" --><table>
<tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>&nbsp;</th></tr>
<!-- TMPL_IF NAME="shelveslooppriv" --><!-- TMPL_LOOP Name="shelveslooppriv" -->
<!-- TMPL_IF name="color" --> <tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
<td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td>
<td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)</td>
<td><!-- TMPL_VAR Name="sortfield" --></td>
<td><!-- TMPL_IF name="mine" --><a href="opac-shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a> <a class="delete" href="opac-shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelf" -->=1">Delete</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE --><tr><td colspan="4">Click below to create a new Virtual Shelf!</td></tr><!-- /TMPL_IF --></table>
<!-- TMPL_ELSE -->No private shelves.<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<p><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create your own private Virtual Shelf</p>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_IF NAME="edit" -->
<form method="post">
<input type="hidden" name="op" value="modifsave">
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
<div class="form">
<table>
<caption>Edit List <em><!-- TMPL_VAR NAME="shelfname"--></em></caption>
<tr><th><label for="shelfname">List Name: </label></th><td><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR NAME="shelfname"-->" /></td></tr>
<tr><th><label for="sortfield" >Select sort field for this List: </label></th>
<td><select name="sortfield">
<option value="title" <!-- TMPL_IF NAME="sort_title" -->selected="1"<!-- /TMPL_IF -->>title</option>
<option value="author" <!-- TMPL_IF NAME="sort_author" -->selected="1"<!-- /TMPL_IF -->>author</option>
<option value="copyrightdate" <!-- TMPL_IF NAME="sort_copyrightdate" -->selected="1"<!-- /TMPL_IF -->>copyrightdate</option>
</select></td></tr>
</table>
<p><input type="hidden" name="category" value="1" /><input type="submit" value="Save Changes" class="submit"></p>
</div>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="showpublicshelves" -->
<div id="publicshelves" class="tab-container" style="display:block;">
<!-- TMPL_ELSE -->
<div id="publicshelves" class="tab-container" style="display:none;">
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="shelvesloop" -->
<table>
<tr><th>List Name</th><th>Contents</th></tr>
<!-- TMPL_LOOP Name="shelvesloop" -->
<!-- TMPL_IF name="color" --> <tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF --><td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)</td></tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE -->
No public shelves.
<!-- /TMPL_IF --></div>
<!-- /TMPL_IF -->
<!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<!-- TMPL_UNLESS NAME="viewshelf" -->
<h2>Lists</h2>
<ul class="link-tabs">
<!-- TMPL_IF NAME="showprivateshelves" -->
<li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
<!-- TMPL_ELSE -->
<li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a> </li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="showpublicshelves" -->
<li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
<!-- TMPL_ELSE -->
<li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
<!-- /TMPL_IF -->
</ul>
<!-- TMPL_IF NAME="showprivateshelves" --><div id="privateshelves" class="tab-container" style="display:block;"><!-- TMPL_ELSE --><div id="privateshelves" class="tab-container" style="display:none;"><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="loggedinusername" -->
<!-- TMPL_IF NAME="shelveslooppriv" -->
<table>
<tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>&nbsp;</th></tr>
<!-- TMPL_LOOP NAME="shelveslooppriv" -->
<!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
<td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
<td><!-- TMPL_VAR NAME="shelfvirtualcount" --> item(s)</td>
<td><!-- TMPL_VAR NAME="sortfield" --></td>
<td>
<!-- TMPL_IF NAME="mine" --><a href="opac-shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a> <a class="delete" href="opac-shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelf" -->=1">Delete</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->
<tr><td colspan="4">No Private Lists. Click below to create a new List!</td></tr>
<!-- /TMPL_IF --><!-- /shelveslooppriv -->
</table>
<!-- TMPL_ELSE --><!-- /loggedinusername -->
<div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create your Private Lists</div>
<!-- /TMPL_IF --><!-- /loggedinusername -->
</div>
<!-- TMPL_IF NAME="showpublicshelves" --><div id="publicshelves" class="tab-container" style="display:block;"><!-- TMPL_ELSE --><div id="publicshelves" class="tab-container" style="display:none;"><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="shelvesloop" -->
<table>
<tr><th>List Name</th><th>Contents</th></tr>
<!-- TMPL_LOOP NAME="shelvesloop" -->
<!-- TMPL_IF NAME"toggle" --> <tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF --><td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td><td><!-- TMPL_VAR NAME="shelfvirtualcount" --> item(s)</td></tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF --><!-- /shelvesloop -->
<!-- /TMPL_UNLESS -->
</div>
</div>
</div>
<div class="yui-b">
<!--TMPL_INCLUDE NAME="navigation.inc" -->
<!-- TMPL_INCLUDE name="usermenu.inc" -->
<!-- TMPL_INCLUDE NAME="usermenu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->

View file

@ -2,7 +2,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>LibLime Virtual Library Self Checkout</title>
<title>Koha Self Checkout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/sco.css" />
<script type="text/javascript" language="JavaScript">

View file

@ -2,7 +2,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>LibLime Virtual Library Self Checkout</title>
<title>Koha Self Checkout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/sco.css" />
<script type="text/javascript" language="JavaScript">

View file

@ -64,6 +64,7 @@
=cut
use strict;
use warnings;
use CGI;
use C4::Output;
use C4::VirtualShelves;
@ -87,27 +88,25 @@ if ( $query->param('modifyshelfcontents') ) {
my $shelfnumber = $query->param('viewshelf');
my $barcode = $query->param('addbarcode');
my ($item) = GetItemnumberFromBarcode($barcode);
my ($biblio) = GetBiblioFromItemNumber($item->{'itemnumber'});
my ($biblio) = GetBiblioFromItemNumber($item->{'itemnumber'});
if ( ShelfPossibleAction( $loggedinuser, $shelfnumber, 'manage' ) ) {
AddToShelf( $biblio->{'biblionumber'}, $shelfnumber );
foreach ( $query->param ) {
if (/MOD-(\d*)/) {
if (/REM-(\d*)/) {
my $biblionumber = $1;
if ( $query->param('remove') eq "on" ) {
DelFromShelf( $biblionumber, $shelfnumber );
}
DelFromShelf( $biblionumber, $shelfnumber );
}
}
}
}
# set the default tab, etc.
my $shelf_type = $query->param('display');
if ((!$shelf_type) || ($shelf_type eq 'privateshelves')) {
$template->param(showprivateshelves => 1);
} elsif ($shelf_type eq 'publicshelves') {
$template->param(showpublicshelves => 1);
}
# set the default tab, etc.
my $shelf_type = $query->param('display');
if ((!$shelf_type) || ($shelf_type eq 'privateshelves')) {
$template->param(showprivateshelves => 1);
} elsif ($shelf_type eq 'publicshelves') {
$template->param(showpublicshelves => 1);
}
# getting the Shelves list
my $shelflist = GetShelves( $loggedinuser, 2 );
@ -130,18 +129,17 @@ SWITCH: {
shelfnumber => $shelfnumber,
shelfname => $shelfname,
"category$category" => 1,
"sort_$sortfield" => 1,
"sort_$sortfield" => 1,
);
# editshelf($query->param('shelf'));
last SWITCH;
}
if ( $query->param('viewshelf') ) {
#check that the user can view the shelf
my $shelfnumber = $query->param('viewshelf');
if ( ShelfPossibleAction( $loggedinuser, $shelfnumber, 'view' ) ) {
my $items = GetShelfContents($shelfnumber);
$template->param(
$template->param(
shelfname => $shelflist->{$shelfnumber}->{'shelfname'},
shelfnumber => $shelfnumber,
viewshelf => $query->param('viewshelf'),
@ -167,141 +165,88 @@ SWITCH: {
}
);
}
}
my @paramsloop;
foreach ( $query->param() ) {
my %line;
if (/DEL-(\d+)/) {
my $delshelf = $1;
my ( $status, $count ) = DelShelf($delshelf);
if ($status) {
$line{'status'} = $status;
$line{'count'} = $count;
}
print $query->redirect("/cgi-bin/koha/opac-shelves.pl?viewshelf=$shelfnumber");
exit;
}
my @paramsloop;
foreach ( $query->param() ) {
my %line;
if (/DEL-(\d+)/) {
my $delshelf = $1;
my ( $status, $count ) = DelShelf($delshelf);
if ($status) {
$line{'status'} = $status;
$line{'count'} = $count;
}
print $query->redirect("/cgi-bin/koha/opac-shelves.pl");
exit;
}
#if the shelf is not deleted, %line points on null
push( @paramsloop, \%line );
}
$template->param( paramsloop => \@paramsloop );
my ($shelflist) = GetShelves( $loggedinuser, 2 );
my $color = '';
my @shelvesloop;
foreach my $element ( sort keys %$shelflist ) {
my %line;
( $color eq 1 ) ? ( $color = 0 ) : ( $color = 1 );
$line{'toggle'} = $color;
$line{'shelf'} = $element;
$line{'shelfname'} = $shelflist->{$element}->{'shelfname'};
$line{'shelfvirtualcount'} = $shelflist->{$element}->{'count'};
push( @shelvesloop, \%line );
}
$template->param(
shelvesloop => \@shelvesloop,
shelves => 1,
);
#if the shelf is not deleted, %line points on null
# push( @paramsloop, \%line );
}
$template->param( paramsloop => \@paramsloop );
my ($shelflist) = GetShelves( $loggedinuser, 2 );
my $color = '';
my @shelvesloop;
foreach my $element ( sort keys %$shelflist ) {
my %line;
( $color eq 1 ) ? ( $color = 0 ) : ( $color = 1 );
$line{'toggle'} = $color;
$line{'shelf'} = $element;
$line{'shelfname'} = $shelflist->{$element}->{'shelfname'};
$line{'shelfvirtualcount'} = $shelflist->{$element}->{'count'};
push( @shelvesloop, \%line );
}
$template->param(
shelvesloop => \@shelvesloop,
shelves => 1,
);
last SWITCH;
}
}
# rebuild shelflist in case a shelf has been added
($shelflist) = GetShelves( $loggedinuser, 2 ) ;
my $color='';
my @shelvesloop;
my @shelveslooppriv;
foreach my $element (sort { lc($shelflist->{$a}->{'shelfname'}) cmp lc($shelflist->{$b}->{'shelfname'}) } keys %$shelflist) {
my %line;
my %linepriv;
($color eq 0) ? ($color=1) : ($color=0);
if ($shelflist->{$element}->{'category'} eq 2) {
$line{'color'}= $color;
$line{'shelf'}=$element;
$line{'shelfname'}=$shelflist->{$element}->{'shelfname'};
$line{'sortfield'}=$shelflist->{$element}->{'sortfield'};
$line{"category".$shelflist->{$element}->{'category'}} = 1;
$line{'mine'} = 1 if $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'shelfbookcount'}=$shelflist->{$element}->{'count'};
$line{'canmanage'} = ShelfPossibleAction($loggedinuser,$element,'manage');
$line{'firstname'}=$shelflist->{$element}->{'firstname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'surname'}=$shelflist->{$element}->{'surname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
push (@shelvesloop, \%line);
} elsif ($shelflist->{$element}->{'category'} eq 1) {
$linepriv{'color'}= $color;
$linepriv{'shelf'}=$element;
$linepriv{'shelfname'}=$shelflist->{$element}->{'shelfname'};
$linepriv{'sortfield'}=$shelflist->{$element}->{'sortfield'};
$linepriv{"category".$shelflist->{$element}->{'category'}} = 1;
$linepriv{'mine'} = 1 if $shelflist->{$element}->{'owner'} eq $loggedinuser;
$linepriv{'shelfbookcount'}=$shelflist->{$element}->{'count'};
$linepriv{'canmanage'} = ShelfPossibleAction($loggedinuser,$element,'manage');
$linepriv{'firstname'}=$shelflist->{$element}->{'firstname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$linepriv{'surname'}=$shelflist->{$element}->{'surname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
push (@shelveslooppriv, \%linepriv);
}
my %line;
my %linepriv;
($color eq 0) ? ($color=1) : ($color=0);
if ($shelflist->{$element}->{'category'} eq 2) {
$line{'toggle'}= $color;
$line{'shelf'}=$element;
$line{'shelfname'}=$shelflist->{$element}->{'shelfname'};
$line{'sortfield'}=$shelflist->{$element}->{'sortfield'};
$line{"category".$shelflist->{$element}->{'category'}} = 1;
$line{'mine'} = 1 if $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'shelfvirtualcount'}=$shelflist->{$element}->{'count'};
$line{'canmanage'} = ShelfPossibleAction($loggedinuser,$element,'manage');
$line{'firstname'}=$shelflist->{$element}->{'firstname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'surname'}=$shelflist->{$element}->{'surname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
push (@shelvesloop, \%line);
} elsif ($shelflist->{$element}->{'category'} eq 1) {
$linepriv{'toggle'}= $color;
$linepriv{'shelf'}=$element;
$linepriv{'shelfname'}=$shelflist->{$element}->{'shelfname'};
$linepriv{'sortfield'}=$shelflist->{$element}->{'sortfield'};
$linepriv{"category".$shelflist->{$element}->{'category'}} = 1;
$linepriv{'mine'} = 1 if $shelflist->{$element}->{'owner'} eq $loggedinuser;
$linepriv{'shelfvirtualcount'}=$shelflist->{$element}->{'count'};
$linepriv{'canmanage'} = ShelfPossibleAction($loggedinuser,$element,'manage');
$linepriv{'firstname'}=$shelflist->{$element}->{'firstname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$linepriv{'surname'}=$shelflist->{$element}->{'surname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
push (@shelveslooppriv, \%linepriv);
}
}
$template->param(
shelveslooppriv => \@shelveslooppriv,
shelveslooppriv => \@shelveslooppriv,
shelvesloop => \@shelvesloop,
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1,
);
output_html_with_http_headers $query, $cookie, $template->output;
#
# Revision 1.12 2007/04/24 13:54:29 hdl
# functions that were in C4::Interface::CGI::Output are now in C4::Output.
# So this implies quite a change for files.
# Sorry about conflicts which will be caused.
# directory Interface::CGI should now be dropped.
# I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.
#
# Revision 1.11 2007/04/17 08:52:19 tipaul
# circulation cleaning continued: bufixing
#
# Revision 1.10 2007/04/04 16:46:23 tipaul
# HUGE COMMIT : code cleaning circulation.
#
# some stuff to do, i'll write a mail on koha-devel NOW !
#
# Revision 1.9 2007/03/09 15:12:54 tipaul
# rel_3_0 moved to HEAD
#
# Revision 1.8.2.12 2007/01/15 17:19:30 toins
# enable to add checked items to a shelf.
# Some display enhancements.
#
# Revision 1.8.2.11 2007/01/10 10:52:58 toins
# adding syspref directly to Auth.pm instead of to the template.
#
# Revision 1.8.2.10 2007/01/10 10:12:48 toins
# Adding OpacTopissue, OpacCloud, OpacAuthorithies to the template->param.
# + Some cleanup.
#
# Revision 1.8.2.9 2006/12/15 17:43:24 toins
# sync with intranet.
#
# Revision 1.8.2.8 2006/12/14 17:59:17 toins
# add the link to "BiblioDefaultView systempref" and not to opac-detail.pl
#
# Revision 1.8.2.7 2006/12/14 17:22:55 toins
# virtualshelves work perfectly with mod_perl and are cleaned.
#
# Revision 1.8.2.6 2006/12/14 16:04:25 toins
# sync with intranet.
#
# Revision 1.8.2.5 2006/12/11 17:10:06 toins
# fixing some bugs on virtualshelves.
#
# Revision 1.8.2.4 2006/12/07 15:42:15 toins
# synching opac & intranet.
# fix some broken link & bugs.
# removing warn compilation.
#
# Revision 1.8.2.3 2006/11/30 18:23:51 toins
# theses scripts don't need to use C4::Search.
#

View file

@ -86,7 +86,7 @@ if ( $query->param('modifyshelfcontents') ) {
my $shelfnumber = $query->param('viewshelf');
my $barcode = $query->param('addbarcode');
my ($item) = GetItem( 0, $barcode );
my ($biblio) = GetBiblioFromItemNumber($item->{'itemnumber'});
my ($biblio) = GetBiblioFromItemNumber($item->{'itemnumber'});
if ( ShelfPossibleAction( $loggedinuser, $shelfnumber, 'manage' ) ) {
AddToShelf( $biblio->{'biblionumber'}, $shelfnumber );
foreach ( $query->param ) {
@ -107,21 +107,20 @@ SWITCH: {
if ( $op && ( $op eq 'modifsave' ) ) {
ModShelf(
$query->param('shelfnumber'), $query->param('shelfname'),
$loggedinuser, $query->param('category')
$loggedinuser, $query->param('category'), $query->param('sortfield')
);
last SWITCH;
}
if ( $op && ( $op eq 'modif' ) ) {
my ( $shelfnumber, $shelfname, $owner, $category ) =
my ( $shelfnumber, $shelfname, $owner, $category, $sortfield ) =
GetShelf( $query->param('shelf') );
$template->param(
edit => 1,
shelfnumber => $shelfnumber,
shelfname => $shelfname,
"category$category" => 1
"category$category" => 1,
"sort_$sortfield" => 1,
);
# editshelf($query->param('shelf'));
last SWITCH;
}
if ( $query->param('viewshelf') ) {
@ -134,8 +133,7 @@ SWITCH: {
shelfname => $shelflist->{$shelfnumber}->{'shelfname'},
shelfnumber => $shelfnumber,
viewshelf => $query->param('viewshelf'),
manageshelf =>
&ShelfPossibleAction( $loggedinuser, $shelfnumber, 'manage' ),
manageshelf => &ShelfPossibleAction( $loggedinuser, $shelfnumber, 'manage' ),
itemsloop => $items,
);
}
@ -175,7 +173,7 @@ SWITCH: {
}
#if the shelf is not deleted, %line points on null
# push( @paramsloop, \%line );
# push( @paramsloop, \%line );
}
$template->param( paramsloop => \@paramsloop );
my ($shelflist) = GetShelves( $loggedinuser, 2 );
@ -198,6 +196,7 @@ SWITCH: {
}
}
# rebuild shelflist in case a shelf has been added
$shelflist = GetShelves( $loggedinuser, 2 );
my $color = '';
my @shelvesloop;
@ -209,15 +208,13 @@ foreach my $element ( sort keys %$shelflist ) {
$line{'toggle'} = $color;
$line{'shelf'} = $element;
$line{'shelfname'} = $shelflist->{$element}->{'shelfname'};
$line{'sortfield'}=$shelflist->{$element}->{'sortfield'};
$line{"viewcategory$shelflist->{$element}->{'category'}"} = 1;
$line{'mine'} = 1 if $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'shelfvirtualcount'} = $shelflist->{$element}->{'count'};
$line{'canmanage'} =
ShelfPossibleAction( $loggedinuser, $element, 'manage' );
$line{'firstname'} = $shelflist->{$element}->{'firstname'}
unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'surname'} = $shelflist->{$element}->{'surname'}
unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'canmanage'} = ShelfPossibleAction( $loggedinuser, $element, 'manage' );
$line{'firstname'} = $shelflist->{$element}->{'firstname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$line{'surname'} = $shelflist->{$element}->{'surname'} unless $shelflist->{$element}->{'owner'} eq $loggedinuser;
$numberCanManage++ if $line{'canmanage'};
push( @shelvesloop, \%line );
}
@ -280,46 +277,3 @@ sub shelves {
shelves => 1,
);
}
#
# Revision 1.13 2007/04/24 13:54:29 hdl
# functions that were in C4::Interface::CGI::Output are now in C4::Output.
# So this implies quite a change for files.
# Sorry about conflicts which will be caused.
# directory Interface::CGI should now be dropped.
# I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.
#
# Revision 1.12 2007/04/04 16:46:22 tipaul
# HUGE COMMIT : code cleaning circulation.
#
# some stuff to do, i'll write a mail on koha-devel NOW !
#
# Revision 1.11 2007/03/09 14:32:26 tipaul
# rel_3_0 moved to HEAD
#
# Revision 1.9.2.9 2007/02/05 15:54:30 toins
# don't display "remove selected shelves" if the user logged has no shelf.
#
# Revision 1.9.2.8 2006/12/15 17:36:57 toins
# - some change on the html param.
# - Writing directly the code of a sub called only once.
# - adding syspref: BiblioDefaultView.
#
# Revision 1.9.2.7 2006/12/14 17:22:55 toins
# virtualshelves work perfectly with mod_perl and are cleaned.
#
# Revision 1.9.2.6 2006/12/13 10:06:05 toins
# fix a mod_perl specific bug.
#
# Revision 1.9.2.5 2006/12/11 17:10:06 toins
# fixing some bugs on virtualshelves.
#
# Revision 1.9.2.4 2006/11/30 18:23:51 toins
# theses scripts don't need to use C4::Search.
#
# Revision 1.9.2.3 2006/10/30 09:50:45 tipaul
# better perl writting
#
# Revision 1.9.2.2 2006/10/17 07:59:35 toins
# ccode added.
#