Bugzilla – Attachment 98005 Details for
Bug 23856
Split author and ISBN/ISSN out of citation in staged MARC record management
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23856: Split author and ISBN/ISSN out of citation in staged MARC record management
Bug-23856-Split-author-and-ISBNISSN-out-of-citatio.patch (text/plain), 4.61 KB, created by
Katrin Fischer
on 2020-01-27 22:01:30 UTC
(
hide
)
Description:
Bug 23856: Split author and ISBN/ISSN out of citation in staged MARC record management
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-01-27 22:01:30 UTC
Size:
4.61 KB
patch
obsolete
>From 9693bf51b3743fe116b0c2746603835586e1c0c8 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 21 Oct 2019 17:01:06 +0000 >Subject: [PATCH] Bug 23856: Split author and ISBN/ISSN out of citation in > staged MARC record management > >This patch modifies the way data is passed to the staged MARC record >management template, splitting author, ISBN, and ISSN out of the >"citation" variable and passing them separately. > >The DataTables configuration for the staged MARC record management page >is modified so that those now-separate variables are conditionally >displayed. > >Unrelated minor change: Added a class to the MARC preview modal so that >it displays wider. > >To test, apply the patch and view the "Staged MARC management" page for >both batches of bibliographic records and batches of authority records. > >In each case the title or authority heading should be displayed as a >link while author, ISBN, and ISSN (if any) should not. > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/tools/manage-marc-import.tt | 17 +++++++++++++++-- > tools/batch_records_ajax.pl | 9 +++------ > 2 files changed, 18 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >index 277e1bfe24..79c169ec10 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >@@ -393,7 +393,7 @@ > </table> > > <div id="marcPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true"> >- <div class="modal-dialog"> >+ <div class="modal-dialog modal-wide"> > <div class="modal-content"> > <div class="modal-header"> > <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">Ã</button> >@@ -474,8 +474,21 @@ > var record_details_url = "/cgi-bin/koha/catalogue/detail.pl?biblionumber="; > [% END %] > >+ var additional_details = ""; >+ if( aData['author'] ){ >+ additional_details += " " + aData['author'] + " "; >+ } >+ >+ if( aData['isbn'] ){ >+ additional_details += " (" + aData['isbn'] + ") "; >+ } >+ >+ if( aData['issn'] ){ >+ additional_details += " (" + aData['issn'] + ") "; >+ } >+ > $('td:eq(1)', nRow).html( >- '<a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=' + aData['import_record_id'] + '&viewas=html" class="previewMARC">' + aData['citation'] + '</a>' >+ '<a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=' + aData['import_record_id'] + '&viewas=html" class="previewMARC">' + aData['citation'] + '</a> ' + additional_details > ); > > $('td:eq(2)', nRow).html( >diff --git a/tools/batch_records_ajax.pl b/tools/batch_records_ajax.pl >index 17e8236d32..b8ca76c24a 100755 >--- a/tools/batch_records_ajax.pl >+++ b/tools/batch_records_ajax.pl >@@ -68,12 +68,6 @@ my $records = > my @list = (); > foreach my $record (@$records) { > my $citation = $record->{'title'} || $record->{'authorized_heading'}; >- $citation .= " $record->{'author'}" if $record->{'author'}; >- $citation .= " (" if $record->{'issn'} or $record->{'isbn'}; >- $citation .= $record->{'isbn'} if $record->{'isbn'}; >- $citation .= ", " if $record->{'issn'} and $record->{'isbn'}; >- $citation .= $record->{'issn'} if $record->{'issn'}; >- $citation .= ")" if $record->{'issn'} or $record->{'isbn'}; > > my $match = GetImportRecordMatches( $record->{'import_record_id'}, 1 ); > my $match_citation = ''; >@@ -99,6 +93,9 @@ foreach my $record (@$records) { > DT_RowId => $record->{'import_record_id'}, > import_record_id => $record->{'import_record_id'}, > citation => $citation, >+ author => $record->{'author'}, >+ issn => $record->{'issn'}, >+ isbn => $record->{'isbn'}, > status => $record->{'status'}, > overlay_status => $record->{'overlay_status'}, > match_citation => $match_citation, >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23856
:
94479
|
97953
| 98005