[Koha-bugs] [Bug 6874] File upload in MARC
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 26 06:21:09 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6874
--- Comment #123 from M. Tompsett <mtompset at hotmail.com> ---
$ giz bz apply 6874
Had to fix up installer/data/mysql/updatedatabase.pl
Had to install new dependency for this.
$ koha_perl_deps.pl -m -u
Listed new requirement (hence revised PerlDependencies.pm checked)
$ sudo apt-get install libtest-cgi-multipart-perl
Did the database upgrade by starting staff client.
$ prove -v t/db_dependent/UploadedFiles.t
everything passed.
$ ~/qa-test-tools/koha-qa.pl -v 2 -c 10
(I forgot how many patches were applied, so I just said 10)
No problems with this set of patches.
Noticed POD updates unrelated to patches (C4::Biblio)
Probably required to get C4::Biblio to pass QA tool tests.
New files include:
C4/UploadedFiles.pm
cataloguing/value_builder/upload.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/upload_delete_file.tt
opac/opac-retrieve-file.pl
t/db_dependent/UploadedFiles.t
Did a opac-detail view, which means the "use C4::Biblio" isn't broken.
There are 1,2,3,4,5,6,6a,6b,7,8,9 changes in C4::Biblio
$ perldoc C4::Biblio
This triggers 2,7,8,9
Refresh of opac-detail page triggers 3,4
Home -> administration -> Marc frameworks -> BKS framework structure -> tag 856
subfield structure -> edit subfields contraint -> advanced -> plugin =
upload.pl
Attempted to use plug in without configuring koha-conf.xml
Correctly gave feedback.
$ mkdir ~/uploads
$ sudo chown www-data.www-data ~/uploads
add in <upload_path>/home/mtompset/uploads</upload_path>
Link a file into some biblio entry.
Go to opac detail for it:
http://demo.library.kohasystem.ca/cgi-bin/koha/opac-detail.pl?biblionumber=14206
Triggers 1,3,4,5
In order to trigger 6, 6a, and 6b, GetMarcUrls needs to be called with
something other than MARC21. I couldn't figure out how to do that.
I'm attempting a UNIMARC installation.
I used https://www.dropbox.com/s/idw98d7jiy5e5xd/dump_unimarc.zip
as mentioned by Mathieu Saby in his August 20th email "pending bugs about
UNIMARC marc flavor".
Linked upload.pl
uploaded a dummy file for a known biblio record.
went to opac and did an opac detail view of it. (6, 6a)
unlinked upload.pl
refreshed opac detail page (6, 6b)
testing to continue later.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list