Skip to content

Commit

Permalink
GH #344.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Apr 15, 2024
1 parent 36b0f96 commit f013e52
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
Binary file modified Data/BiblioteQ.sqlite
Binary file not shown.
1 change: 1 addition & 0 deletions Documentation/Release-Notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<body>
<p><u>April 30, 2024.</u></p>
<ul>
<li>676 Dewey Number and Z39.50 Unimarc. <b>GitHub ticket #344.</b></li>
<li>Added sslcompression=1 to connection_options in biblioteq.conf.</li>
<li>Completed C++ enumerator classes. Please discover errors.</li>
<li>Database Enumerations Browser: replaced combination box widgets
Expand Down
22 changes: 22 additions & 0 deletions Source/biblioteq_marc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,28 @@ void biblioteq_marc::parseBookZ3950Unimarc(void)
}
}
}
else if(str.startsWith("676 "))
{
str = str.mid(4);

/*
** $a - Number
** $v - Edition
*/

if(str.indexOf("$a") > -1)
str = str.mid(str.indexOf("$a") + 2).trimmed();

QStringList subfields;

subfields << "$v";

for(int i = 0; i < subfields.size(); i++)
if(str.contains(subfields.at(i)))
str = str.mid(0, str.indexOf(subfields.at(i))).trimmed();

m_deweynum = str.trimmed();
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion biblioteq.conf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ url_isbn = "http://catalogue.bnf.fr/api/SRU?version=1.2&operation=searchRetrieve

format = UTF-8
hostname = sigb.bne.es
name = Biblioteca Nacional de España
name = Biblioteca Nacional de España (Spain)
password =
port = 2200
proxy_host =
Expand Down

0 comments on commit f013e52

Please sign in to comment.